diff --git a/packages/google-cloud-automl/google/cloud/automl.py b/packages/google-cloud-automl/google/cloud/automl.py index def01415d72c..4bf998b12ad2 100644 --- a/packages/google-cloud-automl/google/cloud/automl.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/__init__.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/__init__.py index 59d3df8458f2..aae6b72f5b6e 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/__init__.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/gapic/auto_ml_client.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/gapic/auto_ml_client.py index 72cecb1b0047..7c872854a67d 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/gapic/auto_ml_client.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/gapic/auto_ml_client_config.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/gapic/auto_ml_client_config.py index ce0e319ca99a..ce555cb08ebf 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/gapic/auto_ml_client_config.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/gapic/enums.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/gapic/enums.py index 51e477163662..b98cd0818972 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/gapic/enums.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/gapic/prediction_service_client.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/gapic/prediction_service_client.py index bc5ff579ec7f..8a7d01e61049 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/gapic/prediction_service_client.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/gapic/prediction_service_client_config.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/gapic/prediction_service_client_config.py index 225cbca85413..aee4b80446f8 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/gapic/prediction_service_client_config.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/gapic/transports/auto_ml_grpc_transport.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/gapic/transports/auto_ml_grpc_transport.py index 3f197157afad..fea046b8ca4e 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/gapic/transports/auto_ml_grpc_transport.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/gapic/transports/prediction_service_grpc_transport.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/gapic/transports/prediction_service_grpc_transport.py index e837dc2bc03b..68d95e9423a1 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/gapic/transports/prediction_service_grpc_transport.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/annotation_payload_pb2.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/annotation_payload_pb2.py index 5f602a2ee710..047ae237e8f4 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/annotation_payload_pb2.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/annotation_payload_pb2_grpc.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/annotation_payload_pb2_grpc.py index a89435267cb2..07cb78fe03a9 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/annotation_payload_pb2_grpc.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/classification_pb2.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/classification_pb2.py index ac949b202e35..1cd2b1989a3f 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/classification_pb2.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/classification_pb2_grpc.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/classification_pb2_grpc.py index a89435267cb2..07cb78fe03a9 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/classification_pb2_grpc.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/data_items_pb2.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/data_items_pb2.py index a57cad6d9d8f..76bfbee65c55 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/data_items_pb2.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/data_items_pb2_grpc.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/data_items_pb2_grpc.py index a89435267cb2..07cb78fe03a9 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/data_items_pb2_grpc.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/dataset_pb2.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/dataset_pb2.py index bdf0fd760dfd..3b81d270de56 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/dataset_pb2.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/dataset_pb2_grpc.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/dataset_pb2_grpc.py index a89435267cb2..07cb78fe03a9 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/dataset_pb2_grpc.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/image_pb2.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/image_pb2.py index 1f87ecf61b35..c2bf200ed948 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/image_pb2.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/image_pb2_grpc.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/image_pb2_grpc.py index a89435267cb2..07cb78fe03a9 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/image_pb2_grpc.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/io_pb2.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/io_pb2.py index 82813fba85fd..6f62d361c059 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/io_pb2.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/io_pb2_grpc.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/io_pb2_grpc.py index a89435267cb2..07cb78fe03a9 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/io_pb2_grpc.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/model_evaluation_pb2.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/model_evaluation_pb2.py index 49b1144aa8ff..6654cc28ef1a 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/model_evaluation_pb2.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/model_evaluation_pb2_grpc.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/model_evaluation_pb2_grpc.py index a89435267cb2..07cb78fe03a9 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/model_evaluation_pb2_grpc.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/model_pb2.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/model_pb2.py index 24c2d96b6797..ca4006e3ab75 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/model_pb2.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/model_pb2_grpc.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/model_pb2_grpc.py index a89435267cb2..07cb78fe03a9 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/model_pb2_grpc.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/operations_pb2.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/operations_pb2.py index 8aef0c4eca81..d202a2fae23e 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/operations_pb2.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/operations_pb2_grpc.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/operations_pb2_grpc.py index a89435267cb2..07cb78fe03a9 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/operations_pb2_grpc.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/prediction_service_pb2.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/prediction_service_pb2.py index 72bc73ca23d8..90ab3a7bc4b4 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/prediction_service_pb2.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/prediction_service_pb2_grpc.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/prediction_service_pb2_grpc.py index adfd74458e4e..09790c6924a8 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/prediction_service_pb2_grpc.py +++ b/packages/google-cloud-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/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/service_pb2.py b/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/service_pb2.py index 6b68d969a767..e35626383930 100644 --- a/packages/google-cloud-automl/google/cloud/automl_v1beta1/proto/service_pb2.py +++ b/packages/google-cloud-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\"