diff --git a/google/cloud/bigtable/cluster.py b/google/cloud/bigtable/cluster.py index edb5d261b..b573705c0 100644 --- a/google/cloud/bigtable/cluster.py +++ b/google/cloud/bigtable/cluster.py @@ -291,11 +291,11 @@ def update(self): update operation. """ client = self._instance._client - # We are passing `None` for second argument location. + # We are passing `None` for third argument location. # Location is set only at the time of creation of a cluster # and can not be changed after cluster has been created. return client.instance_admin_client.update_cluster( - self.name, self.serve_nodes, None + name=self.name, serve_nodes=self.serve_nodes, location=None ) def delete(self): diff --git a/google/cloud/bigtable_admin_v2/__init__.py b/google/cloud/bigtable_admin_v2/__init__.py index 876859fe0..9f72d4f53 100644 --- a/google/cloud/bigtable_admin_v2/__init__.py +++ b/google/cloud/bigtable_admin_v2/__init__.py @@ -27,8 +27,8 @@ if sys.version_info[:2] == (2, 7): message = ( - "A future version of this library will drop support for Python 2.7." - "More details about Python 2 support for Google Cloud Client Libraries" + "A future version of this library will drop support for Python 2.7. " + "More details about Python 2 support for Google Cloud Client Libraries " "can be found at https://cloud.google.com/python/docs/python2-sunset/" ) warnings.warn(message, DeprecationWarning) diff --git a/google/cloud/bigtable_admin_v2/gapic/bigtable_instance_admin_client.py b/google/cloud/bigtable_admin_v2/gapic/bigtable_instance_admin_client.py index 0724c3822..8edb3c168 100644 --- a/google/cloud/bigtable_admin_v2/gapic/bigtable_instance_admin_client.py +++ b/google/cloud/bigtable_admin_v2/gapic/bigtable_instance_admin_client.py @@ -287,19 +287,20 @@ def create_instance( >>> metadata = response.metadata() Args: - parent (str): The unique name of the project in which to create the new instance. - Values are of the form ``projects/``. - instance_id (str): The ID to be used when referring to the new instance within its project, - e.g., just ``myinstance`` rather than + parent (str): Required. The unique name of the project in which to create the new + instance. Values are of the form ``projects/{project}``. + instance_id (str): Required. The ID to be used when referring to the new instance + within its project, e.g., just ``myinstance`` rather than ``projects/myproject/instances/myinstance``. - instance (Union[dict, ~google.cloud.bigtable_admin_v2.types.Instance]): The instance to create. Fields marked ``OutputOnly`` must be left blank. + instance (Union[dict, ~google.cloud.bigtable_admin_v2.types.Instance]): Required. The instance to create. Fields marked ``OutputOnly`` must + be left blank. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.bigtable_admin_v2.types.Instance` - clusters (dict[str -> Union[dict, ~google.cloud.bigtable_admin_v2.types.Cluster]]): The clusters to be created within the instance, mapped by desired - cluster ID, e.g., just ``mycluster`` rather than + clusters (dict[str -> Union[dict, ~google.cloud.bigtable_admin_v2.types.Cluster]]): Required. The clusters to be created within the instance, mapped by + desired cluster ID, e.g., just ``mycluster`` rather than ``projects/myproject/instances/myinstance/clusters/mycluster``. Fields - marked ``OutputOnly`` must be left blank. Currently, at most two + marked ``OutputOnly`` must be left blank. Currently, at most four clusters can be specified. If a dict is provided, it must be of the same form as the protobuf @@ -383,8 +384,8 @@ def get_instance( >>> response = client.get_instance(name) Args: - name (str): The unique name of the requested instance. Values are of the form - ``projects//instances/``. + name (str): Required. The unique name of the requested instance. Values are of + the form ``projects/{project}/instances/{instance}``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -454,8 +455,8 @@ def list_instances( >>> response = client.list_instances(parent) Args: - parent (str): The unique name of the project for which a list of instances is - requested. Values are of the form ``projects/``. + parent (str): Required. The unique name of the project for which a list of + instances is requested. Values are of the form ``projects/{project}``. page_token (str): DEPRECATED: This field is unused and ignored. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will @@ -509,43 +510,37 @@ def list_instances( def update_instance( self, - name, display_name, - type_, - labels, + name=None, state=None, + type_=None, + labels=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None, ): """ - Updates an instance within a project. + Updates an instance within a project. This method updates only the display + name and type for an Instance. To update other Instance properties, such as + labels, use PartialUpdateInstance. Example: >>> from google.cloud import bigtable_admin_v2 - >>> from google.cloud.bigtable_admin_v2 import enums >>> >>> client = bigtable_admin_v2.BigtableInstanceAdminClient() >>> - >>> name = client.instance_path('[PROJECT]', '[INSTANCE]') - >>> >>> # TODO: Initialize `display_name`: >>> display_name = '' >>> - >>> # TODO: Initialize `type_`: - >>> type_ = enums.Instance.Type.TYPE_UNSPECIFIED - >>> - >>> # TODO: Initialize `labels`: - >>> labels = {} - >>> - >>> response = client.update_instance(name, display_name, type_, labels) + >>> response = client.update_instance(display_name) Args: - name (str): (``OutputOnly``) The unique name of the instance. Values are of the form - ``projects//instances/[a-z][a-z0-9\\-]+[a-z0-9]``. - display_name (str): The descriptive name for this instance as it appears in UIs. + display_name (str): Required. The descriptive name for this instance as it appears in UIs. Can be changed at any time, but should be kept globally unique to avoid confusion. + name (str): The unique name of the instance. Values are of the form + ``projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]``. + state (~google.cloud.bigtable_admin_v2.types.State): (``OutputOnly``) The current state of the instance. type_ (~google.cloud.bigtable_admin_v2.types.Type): The type of the instance. Defaults to ``PRODUCTION``. labels (dict[str -> str]): Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and @@ -559,7 +554,6 @@ def update_instance( conform to the regular expression: ``[\p{Ll}\p{Lo}\p{N}_-]{0,63}``. - No more than 64 labels can be associated with a given resource. - Keys and values must both be under 128 bytes. - state (~google.cloud.bigtable_admin_v2.types.State): (``OutputOnly``) The current state of the instance. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -591,11 +585,11 @@ def update_instance( ) request = instance_pb2.Instance( - name=name, display_name=display_name, + name=name, + state=state, type=type_, labels=labels, - state=state, ) if metadata is None: metadata = [] @@ -623,7 +617,8 @@ def partial_update_instance( metadata=None, ): """ - Partially updates an instance within a project. + Partially updates an instance within a project. This method can modify all + fields of an Instance and is the preferred way to update an Instance. Example: >>> from google.cloud import bigtable_admin_v2 @@ -648,11 +643,11 @@ def partial_update_instance( >>> metadata = response.metadata() Args: - instance (Union[dict, ~google.cloud.bigtable_admin_v2.types.Instance]): The Instance which will (partially) replace the current value. + instance (Union[dict, ~google.cloud.bigtable_admin_v2.types.Instance]): Required. The Instance which will (partially) replace the current value. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.bigtable_admin_v2.types.Instance` - update_mask (Union[dict, ~google.cloud.bigtable_admin_v2.types.FieldMask]): The subset of Instance fields which should be replaced. + update_mask (Union[dict, ~google.cloud.bigtable_admin_v2.types.FieldMask]): Required. The subset of Instance fields which should be replaced. Must be explicitly set. If a dict is provided, it must be of the same form as the protobuf @@ -733,8 +728,8 @@ def delete_instance( >>> client.delete_instance(name) Args: - name (str): The unique name of the instance to be deleted. Values are of the form - ``projects//instances/``. + name (str): Required. The unique name of the instance to be deleted. Values are + of the form ``projects/{project}/instances/{instance}``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -817,13 +812,14 @@ def create_cluster( >>> metadata = response.metadata() Args: - parent (str): The unique name of the instance in which to create the new cluster. - Values are of the form ``projects//instances/``. - cluster_id (str): The ID to be used when referring to the new cluster within its instance, - e.g., just ``mycluster`` rather than + parent (str): Required. The unique name of the instance in which to create the new + cluster. Values are of the form + ``projects/{project}/instances/{instance}``. + cluster_id (str): Required. The ID to be used when referring to the new cluster within + its instance, e.g., just ``mycluster`` rather than ``projects/myproject/instances/myinstance/clusters/mycluster``. - cluster (Union[dict, ~google.cloud.bigtable_admin_v2.types.Cluster]): The cluster to be created. Fields marked ``OutputOnly`` must be left - blank. + cluster (Union[dict, ~google.cloud.bigtable_admin_v2.types.Cluster]): Required. The cluster to be created. Fields marked ``OutputOnly`` + must be left blank. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.bigtable_admin_v2.types.Cluster` @@ -903,8 +899,8 @@ def get_cluster( >>> response = client.get_cluster(name) Args: - name (str): The unique name of the requested cluster. Values are of the form - ``projects//instances//clusters/``. + name (str): Required. The unique name of the requested cluster. Values are of + the form ``projects/{project}/instances/{instance}/clusters/{cluster}``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -974,9 +970,9 @@ def list_clusters( >>> response = client.list_clusters(parent) Args: - parent (str): The unique name of the instance for which a list of clusters is - requested. Values are of the form - ``projects//instances/``. Use `` = '-'`` to + parent (str): Required. The unique name of the instance for which a list of + clusters is requested. Values are of the form + ``projects/{project}/instances/{instance}``. Use ``{instance} = '-'`` to list Clusters for all Instances in a project, e.g., ``projects/myproject/instances/-``. page_token (str): DEPRECATED: This field is unused and ignored. @@ -1032,8 +1028,8 @@ def list_clusters( def update_cluster( self, - name, serve_nodes, + name=None, location=None, state=None, default_storage_type=None, @@ -1049,12 +1045,10 @@ def update_cluster( >>> >>> client = bigtable_admin_v2.BigtableInstanceAdminClient() >>> - >>> name = client.cluster_path('[PROJECT]', '[INSTANCE]', '[CLUSTER]') - >>> >>> # TODO: Initialize `serve_nodes`: >>> serve_nodes = 0 >>> - >>> response = client.update_cluster(name, serve_nodes) + >>> response = client.update_cluster(serve_nodes) >>> >>> def callback(operation_future): ... # Handle result. @@ -1066,17 +1060,17 @@ def update_cluster( >>> metadata = response.metadata() Args: - name (str): (``OutputOnly``) The unique name of the cluster. Values are of the form - ``projects//instances//clusters/[a-z][-a-z0-9]*``. - serve_nodes (int): The number of nodes allocated to this cluster. More nodes enable higher - throughput and more consistent performance. - location (str): (``CreationOnly``) The location where this cluster's nodes and storage - reside. For best performance, clients should be located as close as - possible to this cluster. Currently only zones are supported, so values - should be of the form ``projects//locations/``. - state (~google.cloud.bigtable_admin_v2.types.State): (``OutputOnly``) The current state of the cluster. - default_storage_type (~google.cloud.bigtable_admin_v2.types.StorageType): (``CreationOnly``) The type of storage used by this cluster to serve its - parent instance's tables, unless explicitly overridden. + serve_nodes (int): Required. The number of nodes allocated to this cluster. More nodes enable + higher throughput and more consistent performance. + name (str): The unique name of the cluster. Values are of the form + ``projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*``. + location (str): (``CreationOnly``) The location where this cluster's nodes and + storage reside. For best performance, clients should be located as close + as possible to this cluster. Currently only zones are supported, so + values should be of the form ``projects/{project}/locations/{zone}``. + state (~google.cloud.bigtable_admin_v2.types.State): The current state of the cluster. + default_storage_type (~google.cloud.bigtable_admin_v2.types.StorageType): (``CreationOnly``) The type of storage used by this cluster to serve + its parent instance's tables, unless explicitly overridden. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -1108,8 +1102,8 @@ def update_cluster( ) request = instance_pb2.Cluster( - name=name, serve_nodes=serve_nodes, + name=name, location=location, state=state, default_storage_type=default_storage_type, @@ -1157,8 +1151,9 @@ def delete_cluster( >>> client.delete_cluster(name) Args: - name (str): The unique name of the cluster to be deleted. Values are of the form - ``projects//instances//clusters/``. + name (str): Required. The unique name of the cluster to be deleted. Values are + of the form + ``projects/{project}/instances/{instance}/clusters/{cluster}``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -1233,13 +1228,14 @@ def create_app_profile( >>> response = client.create_app_profile(parent, app_profile_id, app_profile) Args: - parent (str): The unique name of the instance in which to create the new app profile. - Values are of the form ``projects//instances/``. - app_profile_id (str): The ID to be used when referring to the new app profile within its - instance, e.g., just ``myprofile`` rather than + parent (str): Required. The unique name of the instance in which to create the new + app profile. Values are of the form + ``projects/{project}/instances/{instance}``. + app_profile_id (str): Required. The ID to be used when referring to the new app profile + within its instance, e.g., just ``myprofile`` rather than ``projects/myproject/instances/myinstance/appProfiles/myprofile``. - app_profile (Union[dict, ~google.cloud.bigtable_admin_v2.types.AppProfile]): The app profile to be created. Fields marked ``OutputOnly`` will be - ignored. + app_profile (Union[dict, ~google.cloud.bigtable_admin_v2.types.AppProfile]): Required. The app profile to be created. Fields marked + ``OutputOnly`` will be ignored. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.bigtable_admin_v2.types.AppProfile` @@ -1317,8 +1313,9 @@ def get_app_profile( >>> response = client.get_app_profile(name) Args: - name (str): The unique name of the requested app profile. Values are of the form - ``projects//instances//appProfiles/``. + name (str): Required. The unique name of the requested app profile. Values are + of the form + ``projects/{project}/instances/{instance}/appProfiles/{app_profile}``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -1400,13 +1397,16 @@ def list_app_profiles( ... pass Args: - parent (str): The unique name of the instance for which a list of app profiles is - requested. Values are of the form - ``projects//instances/``. Use `` = '-'`` to + parent (str): Required. The unique name of the instance for which a list of app + profiles is requested. Values are of the form + ``projects/{project}/instances/{instance}``. Use ``{instance} = '-'`` to list AppProfiles for all Instances in a project, e.g., ``projects/myproject/instances/-``. - page_size (int): Maximum number of results per page. - CURRENTLY UNIMPLEMENTED AND IGNORED. + page_size (int): The maximum number of resources contained in the + underlying API response. If page streaming is performed per- + resource, this parameter does not affect the return value. If page + streaming is performed per-page, this determines the maximum number + of resources in a page. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -1506,11 +1506,11 @@ def update_app_profile( >>> metadata = response.metadata() Args: - app_profile (Union[dict, ~google.cloud.bigtable_admin_v2.types.AppProfile]): The app profile which will (partially) replace the current value. + app_profile (Union[dict, ~google.cloud.bigtable_admin_v2.types.AppProfile]): Required. The app profile which will (partially) replace the current value. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.bigtable_admin_v2.types.AppProfile` - update_mask (Union[dict, ~google.cloud.bigtable_admin_v2.types.FieldMask]): The subset of app profile fields which should be replaced. + update_mask (Union[dict, ~google.cloud.bigtable_admin_v2.types.FieldMask]): Required. The subset of app profile fields which should be replaced. If unset, all fields will be replaced. If a dict is provided, it must be of the same form as the protobuf @@ -1577,7 +1577,7 @@ def update_app_profile( def delete_app_profile( self, name, - ignore_warnings, + ignore_warnings=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None, @@ -1592,14 +1592,12 @@ def delete_app_profile( >>> >>> name = client.app_profile_path('[PROJECT]', '[INSTANCE]', '[APP_PROFILE]') >>> - >>> # TODO: Initialize `ignore_warnings`: - >>> ignore_warnings = False - >>> - >>> client.delete_app_profile(name, ignore_warnings) + >>> client.delete_app_profile(name) Args: - name (str): The unique name of the app profile to be deleted. Values are of the form - ``projects//instances//appProfiles/``. + name (str): Required. The unique name of the app profile to be deleted. Values + are of the form + ``projects/{project}/instances/{instance}/appProfiles/{app_profile}``. ignore_warnings (bool): If true, ignore safety checks when deleting the app profile. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will @@ -1665,7 +1663,8 @@ def get_iam_policy( >>> >>> client = bigtable_admin_v2.BigtableInstanceAdminClient() >>> - >>> resource = client.instance_path('[PROJECT]', '[INSTANCE]') + >>> # TODO: Initialize `resource`: + >>> resource = '' >>> >>> response = client.get_iam_policy(resource) @@ -1744,7 +1743,8 @@ def set_iam_policy( >>> >>> client = bigtable_admin_v2.BigtableInstanceAdminClient() >>> - >>> resource = client.instance_path('[PROJECT]', '[INSTANCE]') + >>> # TODO: Initialize `resource`: + >>> resource = '' >>> >>> # TODO: Initialize `policy`: >>> policy = {} @@ -1825,7 +1825,8 @@ def test_iam_permissions( >>> >>> client = bigtable_admin_v2.BigtableInstanceAdminClient() >>> - >>> resource = client.instance_path('[PROJECT]', '[INSTANCE]') + >>> # TODO: Initialize `resource`: + >>> resource = '' >>> >>> # TODO: Initialize `permissions`: >>> permissions = [] @@ -1835,8 +1836,8 @@ def test_iam_permissions( Args: resource (str): REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - permissions (list[str]): The set of permissions to check for the ``resource``. Permissions with - wildcards (such as '*' or 'storage.*') are not allowed. For more + permissions (list[str]): The set of permissions to check for the ``resource``. Permissions + with wildcards (such as '*' or 'storage.*') are not allowed. For more information see `IAM Overview `__. retry (Optional[google.api_core.retry.Retry]): A retry object used diff --git a/google/cloud/bigtable_admin_v2/gapic/bigtable_table_admin_client.py b/google/cloud/bigtable_admin_v2/gapic/bigtable_table_admin_client.py index 9ccd58471..cac517314 100644 --- a/google/cloud/bigtable_admin_v2/gapic/bigtable_table_admin_client.py +++ b/google/cloud/bigtable_admin_v2/gapic/bigtable_table_admin_client.py @@ -95,6 +95,17 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod + def backup_path(cls, project, instance, cluster, backup): + """Return a fully-qualified backup string.""" + return google.api_core.path_template.expand( + "projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}", + project=project, + instance=instance, + cluster=cluster, + backup=backup, + ) + @classmethod def cluster_path(cls, project, instance, cluster): """Return a fully-qualified cluster string.""" @@ -279,24 +290,26 @@ def create_table( >>> response = client.create_table(parent, table_id, table) Args: - parent (str): The unique name of the instance in which to create the table. Values are - of the form ``projects//instances/``. - table_id (str): The name by which the new table should be referred to within the parent - instance, e.g., ``foobar`` rather than ``/tables/foobar``. - table (Union[dict, ~google.cloud.bigtable_admin_v2.types.Table]): The Table to create. + parent (str): Required. The unique name of the instance in which to create the + table. Values are of the form + ``projects/{project}/instances/{instance}``. + table_id (str): Required. The name by which the new table should be referred to + within the parent instance, e.g., ``foobar`` rather than + ``{parent}/tables/foobar``. Maximum 50 characters. + table (Union[dict, ~google.cloud.bigtable_admin_v2.types.Table]): Required. The Table to create. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.bigtable_admin_v2.types.Table` - initial_splits (list[Union[dict, ~google.cloud.bigtable_admin_v2.types.Split]]): The optional list of row keys that will be used to initially split the - table into several tablets (tablets are similar to HBase regions). Given - two split keys, ``s1`` and ``s2``, three tablets will be created, + initial_splits (list[Union[dict, ~google.cloud.bigtable_admin_v2.types.Split]]): The optional list of row keys that will be used to initially split + the table into several tablets (tablets are similar to HBase regions). + Given two split keys, ``s1`` and ``s2``, three tablets will be created, spanning the key ranges: ``[, s1), [s1, s2), [s2, )``. Example: - Row keys := ``["a", "apple", "custom", "customer_1", "customer_2",`` ``"other", "zz"]`` - - initial\_split\_keys := + - initial_split_keys := ``["apple", "customer_1", "customer_2", "other"]`` - Key assignment: @@ -389,9 +402,7 @@ def create_table_from_snapshot( >>> >>> # TODO: Initialize `table_id`: >>> table_id = '' - >>> - >>> # TODO: Initialize `source_snapshot`: - >>> source_snapshot = '' + >>> source_snapshot = client.snapshot_path('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[SNAPSHOT]') >>> >>> response = client.create_table_from_snapshot(parent, table_id, source_snapshot) >>> @@ -405,14 +416,16 @@ def create_table_from_snapshot( >>> metadata = response.metadata() Args: - parent (str): The unique name of the instance in which to create the table. Values are - of the form ``projects//instances/``. - table_id (str): The name by which the new table should be referred to within the parent - instance, e.g., ``foobar`` rather than ``/tables/foobar``. - source_snapshot (str): The unique name of the snapshot from which to restore the table. The - snapshot and the table must be in the same instance. Values are of the - form - ``projects//instances//clusters//snapshots/``. + parent (str): Required. The unique name of the instance in which to create the + table. Values are of the form + ``projects/{project}/instances/{instance}``. + table_id (str): Required. The name by which the new table should be referred to + within the parent instance, e.g., ``foobar`` rather than + ``{parent}/tables/foobar``. + source_snapshot (str): Required. The unique name of the snapshot from which to restore the + table. The snapshot and the table must be in the same instance. Values + are of the form + ``projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -503,12 +516,16 @@ def list_tables( ... pass Args: - parent (str): The unique name of the instance for which tables should be listed. - Values are of the form ``projects//instances/``. - view (~google.cloud.bigtable_admin_v2.types.View): The view to be applied to the returned tables' fields. Defaults to - ``NAME_ONLY`` if unspecified; no others are currently supported. - page_size (int): Maximum number of results per page. - CURRENTLY UNIMPLEMENTED AND IGNORED. + parent (str): Required. The unique name of the instance for which tables should be + listed. Values are of the form + ``projects/{project}/instances/{instance}``. + view (~google.cloud.bigtable_admin_v2.types.View): The view to be applied to the returned tables' fields. Only + NAME_ONLY view (default) and REPLICATION_VIEW are supported. + page_size (int): The maximum number of resources contained in the + underlying API response. If page streaming is performed per- + resource, this parameter does not affect the return value. If page + streaming is performed per-page, this determines the maximum number + of resources in a page. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -594,8 +611,8 @@ def get_table( >>> response = client.get_table(name) Args: - name (str): The unique name of the requested table. Values are of the form - ``projects//instances//tables/``. + name (str): Required. The unique name of the requested table. Values are of the + form ``projects/{project}/instances/{instance}/tables/{table}``. view (~google.cloud.bigtable_admin_v2.types.View): The view to be applied to the returned table's fields. Defaults to ``SCHEMA_VIEW`` if unspecified. retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -666,8 +683,8 @@ def delete_table( >>> client.delete_table(name) Args: - name (str): The unique name of the table to be deleted. Values are of the form - ``projects//instances//tables/
``. + name (str): Required. The unique name of the table to be deleted. Values are of + the form ``projects/{project}/instances/{instance}/tables/{table}``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -740,13 +757,13 @@ def modify_column_families( >>> response = client.modify_column_families(name, modifications) Args: - name (str): The unique name of the table whose families should be modified. Values - are of the form - ``projects//instances//tables/
``. - modifications (list[Union[dict, ~google.cloud.bigtable_admin_v2.types.Modification]]): Modifications to be atomically applied to the specified table's families. - Entries are applied in order, meaning that earlier modifications can be - masked by later ones (in the case of repeated updates to the same family, - for example). + name (str): Required. The unique name of the table whose families should be + modified. Values are of the form + ``projects/{project}/instances/{instance}/tables/{table}``. + modifications (list[Union[dict, ~google.cloud.bigtable_admin_v2.types.Modification]]): Required. Modifications to be atomically applied to the specified table's + families. Entries are applied in order, meaning that earlier modifications + can be masked by later ones (in the case of repeated updates to the same + family, for example). If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.bigtable_admin_v2.types.Modification` @@ -824,9 +841,9 @@ def drop_row_range( >>> client.drop_row_range(name) Args: - name (str): The unique name of the table on which to drop a range of rows. Values - are of the form - ``projects//instances//tables/
``. + name (str): Required. The unique name of the table on which to drop a range of + rows. Values are of the form + ``projects/{project}/instances/{instance}/tables/{table}``. row_key_prefix (bytes): Delete all rows that start with this row key prefix. Prefix cannot be zero length. delete_all_data_from_table (bool): Delete all rows in the table. Setting this to false is a no-op. @@ -909,9 +926,9 @@ def generate_consistency_token( >>> response = client.generate_consistency_token(name) Args: - name (str): The unique name of the Table for which to create a consistency token. - Values are of the form - ``projects//instances//tables/
``. + name (str): Required. The unique name of the Table for which to create a + consistency token. Values are of the form + ``projects/{project}/instances/{instance}/tables/{table}``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -988,10 +1005,10 @@ def check_consistency( >>> response = client.check_consistency(name, consistency_token) Args: - name (str): The unique name of the Table for which to check replication consistency. - Values are of the form - ``projects//instances//tables/
``. - consistency_token (str): The token created using GenerateConsistencyToken for the Table. + name (str): Required. The unique name of the Table for which to check + replication consistency. Values are of the form + ``projects/{project}/instances/{instance}/tables/{table}``. + consistency_token (str): Required. The token created using GenerateConsistencyToken for the Table. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -1051,15 +1068,17 @@ def get_iam_policy( metadata=None, ): """ - Gets the access control policy for a table resource. Returns an empty - policy if an table exists but does not have a policy set. + Gets the access control policy for a resource. + Returns an empty policy if the resource exists but does not have a policy + set. Example: >>> from google.cloud import bigtable_admin_v2 >>> >>> client = bigtable_admin_v2.BigtableTableAdminClient() >>> - >>> resource = client.table_path('[PROJECT]', '[INSTANCE]', '[TABLE]') + >>> # TODO: Initialize `resource`: + >>> resource = '' >>> >>> response = client.get_iam_policy(resource) @@ -1130,15 +1149,16 @@ def set_iam_policy( metadata=None, ): """ - Sets the access control policy on a table resource. Replaces any existing - policy. + Sets the access control policy on a Table or Backup resource. + Replaces any existing policy. Example: >>> from google.cloud import bigtable_admin_v2 >>> >>> client = bigtable_admin_v2.BigtableTableAdminClient() >>> - >>> resource = client.table_path('[PROJECT]', '[INSTANCE]', '[TABLE]') + >>> # TODO: Initialize `resource`: + >>> resource = '' >>> >>> # TODO: Initialize `policy`: >>> policy = {} @@ -1219,7 +1239,8 @@ def test_iam_permissions( >>> >>> client = bigtable_admin_v2.BigtableTableAdminClient() >>> - >>> resource = client.table_path('[PROJECT]', '[INSTANCE]', '[TABLE]') + >>> # TODO: Initialize `resource`: + >>> resource = '' >>> >>> # TODO: Initialize `permissions`: >>> permissions = [] @@ -1229,8 +1250,8 @@ def test_iam_permissions( Args: resource (str): REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - permissions (list[str]): The set of permissions to check for the ``resource``. Permissions with - wildcards (such as '*' or 'storage.*') are not allowed. For more + permissions (list[str]): The set of permissions to check for the ``resource``. Permissions + with wildcards (such as '*' or 'storage.*') are not allowed. For more information see `IAM Overview `__. retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -1288,8 +1309,8 @@ def snapshot_table( name, cluster, snapshot_id, - description, ttl=None, + description=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None, @@ -1310,17 +1331,12 @@ def snapshot_table( >>> client = bigtable_admin_v2.BigtableTableAdminClient() >>> >>> name = client.table_path('[PROJECT]', '[INSTANCE]', '[TABLE]') - >>> - >>> # TODO: Initialize `cluster`: - >>> cluster = '' + >>> cluster = client.cluster_path('[PROJECT]', '[INSTANCE]', '[CLUSTER]') >>> >>> # TODO: Initialize `snapshot_id`: >>> snapshot_id = '' >>> - >>> # TODO: Initialize `description`: - >>> description = '' - >>> - >>> response = client.snapshot_table(name, cluster, snapshot_id, description) + >>> response = client.snapshot_table(name, cluster, snapshot_id) >>> >>> def callback(operation_future): ... # Handle result. @@ -1332,16 +1348,16 @@ def snapshot_table( >>> metadata = response.metadata() Args: - name (str): The unique name of the table to have the snapshot taken. Values are of - the form ``projects//instances//tables/
``. - cluster (str): The name of the cluster where the snapshot will be created in. Values - are of the form - ``projects//instances//clusters/``. - snapshot_id (str): The ID by which the new snapshot should be referred to within the parent - cluster, e.g., ``mysnapshot`` of the form: + name (str): Required. The unique name of the table to have the snapshot taken. + Values are of the form + ``projects/{project}/instances/{instance}/tables/{table}``. + cluster (str): Required. The name of the cluster where the snapshot will be created + in. Values are of the form + ``projects/{project}/instances/{instance}/clusters/{cluster}``. + snapshot_id (str): Required. The ID by which the new snapshot should be referred to + within the parent cluster, e.g., ``mysnapshot`` of the form: ``[_a-zA-Z0-9][-_.a-zA-Z0-9]*`` rather than - ``projects//instances//clusters//snapshots/mysnapshot``. - description (str): Description of the snapshot. + ``projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot``. ttl (Union[dict, ~google.cloud.bigtable_admin_v2.types.Duration]): The amount of time that the new snapshot can stay active after it is created. Once 'ttl' expires, the snapshot will get deleted. The maximum amount of time a snapshot can stay active is 7 days. If 'ttl' is not @@ -1349,6 +1365,7 @@ def snapshot_table( If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.bigtable_admin_v2.types.Duration` + description (str): Description of the snapshot. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -1383,8 +1400,8 @@ def snapshot_table( name=name, cluster=cluster, snapshot_id=snapshot_id, - description=description, ttl=ttl, + description=description, ) if metadata is None: metadata = [] @@ -1435,8 +1452,9 @@ def get_snapshot( >>> response = client.get_snapshot(name) Args: - name (str): The unique name of the requested snapshot. Values are of the form - ``projects//instances//clusters//snapshots/``. + name (str): Required. The unique name of the requested snapshot. Values are of + the form + ``projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -1524,11 +1542,11 @@ def list_snapshots( ... pass Args: - parent (str): The unique name of the cluster for which snapshots should be listed. - Values are of the form - ``projects//instances//clusters/``. Use - `` = '-'`` to list snapshots for all clusters in an instance, - e.g., ``projects//instances//clusters/-``. + parent (str): Required. The unique name of the cluster for which snapshots should + be listed. Values are of the form + ``projects/{project}/instances/{instance}/clusters/{cluster}``. Use + ``{cluster} = '-'`` to list snapshots for all clusters in an instance, + e.g., ``projects/{project}/instances/{instance}/clusters/-``. page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- resource, this parameter does not affect the return value. If page @@ -1624,8 +1642,9 @@ def delete_snapshot( >>> client.delete_snapshot(name) Args: - name (str): The unique name of the snapshot to be deleted. Values are of the form - ``projects//instances//clusters//snapshots/``. + name (str): Required. The unique name of the snapshot to be deleted. Values are + of the form + ``projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -1670,3 +1689,604 @@ def delete_snapshot( self._inner_api_calls["delete_snapshot"]( request, retry=retry, timeout=timeout, metadata=metadata ) + + def create_backup( + self, + parent, + backup_id, + backup, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Starts creating a new Cloud Bigtable Backup. The returned backup + ``long-running operation`` can be used to track creation of the backup. + The ``metadata`` field type is ``CreateBackupMetadata``. The + ``response`` field type is ``Backup``, if successful. Cancelling the + returned operation will stop the creation and delete the backup. + + Example: + >>> from google.cloud import bigtable_admin_v2 + >>> + >>> client = bigtable_admin_v2.BigtableTableAdminClient() + >>> + >>> parent = client.cluster_path('[PROJECT]', '[INSTANCE]', '[CLUSTER]') + >>> + >>> # TODO: Initialize `backup_id`: + >>> backup_id = '' + >>> + >>> # TODO: Initialize `backup`: + >>> backup = {} + >>> + >>> response = client.create_backup(parent, backup_id, backup) + >>> + >>> def callback(operation_future): + ... # Handle result. + ... result = operation_future.result() + >>> + >>> response.add_done_callback(callback) + >>> + >>> # Handle metadata. + >>> metadata = response.metadata() + + Args: + parent (str): Required. This must be one of the clusters in the instance in which + this table is located. The backup will be stored in this cluster. Values + are of the form + ``projects/{project}/instances/{instance}/clusters/{cluster}``. + backup_id (str): Required. The id of the backup to be created. The ``backup_id`` + along with the parent ``parent`` are combined as + {parent}/backups/{backup_id} to create the full backup name, of the + form: + ``projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}``. + This string must be between 1 and 50 characters in length and match the + regex [*a-zA-Z0-9][-*.a-zA-Z0-9]*. + backup (Union[dict, ~google.cloud.bigtable_admin_v2.types.Backup]): Required. The backup to create. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.cloud.bigtable_admin_v2.types.Backup` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.cloud.bigtable_admin_v2.types._OperationFuture` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "create_backup" not in self._inner_api_calls: + self._inner_api_calls[ + "create_backup" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.create_backup, + default_retry=self._method_configs["CreateBackup"].retry, + default_timeout=self._method_configs["CreateBackup"].timeout, + client_info=self._client_info, + ) + + request = bigtable_table_admin_pb2.CreateBackupRequest( + parent=parent, backup_id=backup_id, backup=backup, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("parent", parent)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + operation = self._inner_api_calls["create_backup"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + return google.api_core.operation.from_gapic( + operation, + self.transport._operations_client, + table_pb2.Backup, + metadata_type=bigtable_table_admin_pb2.CreateBackupMetadata, + ) + + def get_backup( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Gets metadata on a pending or completed Cloud Bigtable Backup. + + Example: + >>> from google.cloud import bigtable_admin_v2 + >>> + >>> client = bigtable_admin_v2.BigtableTableAdminClient() + >>> + >>> name = client.backup_path('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[BACKUP]') + >>> + >>> response = client.get_backup(name) + + Args: + name (str): Required. Name of the backup. Values are of the form + ``projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}``. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.cloud.bigtable_admin_v2.types.Backup` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "get_backup" not in self._inner_api_calls: + self._inner_api_calls[ + "get_backup" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_backup, + default_retry=self._method_configs["GetBackup"].retry, + default_timeout=self._method_configs["GetBackup"].timeout, + client_info=self._client_info, + ) + + request = bigtable_table_admin_pb2.GetBackupRequest(name=name,) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("name", name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + return self._inner_api_calls["get_backup"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def list_backups( + self, + parent, + filter_=None, + order_by=None, + page_size=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Lists Cloud Bigtable backups. Returns both completed and pending + backups. + + Example: + >>> from google.cloud import bigtable_admin_v2 + >>> + >>> client = bigtable_admin_v2.BigtableTableAdminClient() + >>> + >>> parent = client.cluster_path('[PROJECT]', '[INSTANCE]', '[CLUSTER]') + >>> + >>> # Iterate over all results + >>> for element in client.list_backups(parent): + ... # process element + ... pass + >>> + >>> + >>> # Alternatively: + >>> + >>> # Iterate over results one page at a time + >>> for page in client.list_backups(parent).pages: + ... for element in page: + ... # process element + ... pass + + Args: + parent (str): Required. The cluster to list backups from. Values are of the form + ``projects/{project}/instances/{instance}/clusters/{cluster}``. Use + ``{cluster} = '-'`` to list backups for all clusters in an instance, + e.g., ``projects/{project}/instances/{instance}/clusters/-``. + filter_ (str): A filter expression that filters backups listed in the response. The + expression must specify the field name, a comparison operator, and the + value that you want to use for filtering. The value must be a string, a + number, or a boolean. The comparison operator must be <, >, <=, >=, !=, + =, or :. Colon ‘:’ represents a HAS operator which is roughly synonymous + with equality. Filter rules are case insensitive. + + The fields eligible for filtering are: + + - ``name`` + - ``source_table`` + - ``state`` + - ``start_time`` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + - ``end_time`` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + - ``expire_time`` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + - ``size_bytes`` + + To filter on multiple expressions, provide each separate expression + within parentheses. By default, each expression is an AND expression. + However, you can include AND, OR, and NOT expressions explicitly. + + Some examples of using filters are: + + - ``name:"exact"`` --> The backup's name is the string "exact". + - ``name:howl`` --> The backup's name contains the string "howl". + - ``source_table:prod`` --> The source_table's name contains the string + "prod". + - ``state:CREATING`` --> The backup is pending creation. + - ``state:READY`` --> The backup is fully created and ready for use. + - ``(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")`` --> The + backup name contains the string "howl" and start_time of the backup + is before 2018-03-28T14:50:00Z. + - ``size_bytes > 10000000000`` --> The backup's size is greater than + 10GB + order_by (str): An expression for specifying the sort order of the results of the + request. The string value should specify one or more fields in + ``Backup``. The full syntax is described at + https://aip.dev/132#ordering. + + Fields supported are: \* name \* source_table \* expire_time \* + start_time \* end_time \* size_bytes \* state + + For example, "start_time". The default sorting order is ascending. To + specify descending order for the field, a suffix " desc" should be + appended to the field name. For example, "start_time desc". Redundant + space characters in the syntax are insigificant. + + If order_by is empty, results will be sorted by ``start_time`` in + descending order starting from the most recently created backup. + page_size (int): The maximum number of resources contained in the + underlying API response. If page streaming is performed per- + resource, this parameter does not affect the return value. If page + streaming is performed per-page, this determines the maximum number + of resources in a page. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.api_core.page_iterator.PageIterator` instance. + An iterable of :class:`~google.cloud.bigtable_admin_v2.types.Backup` instances. + You can also iterate over the pages of the response + using its `pages` property. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "list_backups" not in self._inner_api_calls: + self._inner_api_calls[ + "list_backups" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.list_backups, + default_retry=self._method_configs["ListBackups"].retry, + default_timeout=self._method_configs["ListBackups"].timeout, + client_info=self._client_info, + ) + + request = bigtable_table_admin_pb2.ListBackupsRequest( + parent=parent, filter=filter_, order_by=order_by, page_size=page_size, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("parent", parent)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + iterator = google.api_core.page_iterator.GRPCIterator( + client=None, + method=functools.partial( + self._inner_api_calls["list_backups"], + retry=retry, + timeout=timeout, + metadata=metadata, + ), + request=request, + items_field="backups", + request_token_field="page_token", + response_token_field="next_page_token", + ) + return iterator + + def update_backup( + self, + backup, + update_mask, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Updates a pending or completed Cloud Bigtable Backup. + + Example: + >>> from google.cloud import bigtable_admin_v2 + >>> + >>> client = bigtable_admin_v2.BigtableTableAdminClient() + >>> + >>> # TODO: Initialize `backup`: + >>> backup = {} + >>> + >>> # TODO: Initialize `update_mask`: + >>> update_mask = {} + >>> + >>> response = client.update_backup(backup, update_mask) + + Args: + backup (Union[dict, ~google.cloud.bigtable_admin_v2.types.Backup]): Required. The backup to update. ``backup.name``, and the fields to + be updated as specified by ``update_mask`` are required. Other fields + are ignored. Update is only supported for the following fields: + + - ``backup.expire_time``. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.cloud.bigtable_admin_v2.types.Backup` + update_mask (Union[dict, ~google.cloud.bigtable_admin_v2.types.FieldMask]): Required. A mask specifying which fields (e.g. ``expire_time``) in + the Backup resource should be updated. This mask is relative to the + Backup resource, not to the request message. The field mask must always + be specified; this prevents any future fields from being erased + accidentally by clients that do not know about them. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.cloud.bigtable_admin_v2.types.FieldMask` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.cloud.bigtable_admin_v2.types.Backup` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "update_backup" not in self._inner_api_calls: + self._inner_api_calls[ + "update_backup" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.update_backup, + default_retry=self._method_configs["UpdateBackup"].retry, + default_timeout=self._method_configs["UpdateBackup"].timeout, + client_info=self._client_info, + ) + + request = bigtable_table_admin_pb2.UpdateBackupRequest( + backup=backup, update_mask=update_mask, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("backup.name", backup.name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + return self._inner_api_calls["update_backup"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def delete_backup( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Deletes a pending or completed Cloud Bigtable backup. + + Example: + >>> from google.cloud import bigtable_admin_v2 + >>> + >>> client = bigtable_admin_v2.BigtableTableAdminClient() + >>> + >>> name = client.backup_path('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[BACKUP]') + >>> + >>> client.delete_backup(name) + + Args: + name (str): Required. Name of the backup to delete. Values are of the form + ``projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}``. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "delete_backup" not in self._inner_api_calls: + self._inner_api_calls[ + "delete_backup" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_backup, + default_retry=self._method_configs["DeleteBackup"].retry, + default_timeout=self._method_configs["DeleteBackup"].timeout, + client_info=self._client_info, + ) + + request = bigtable_table_admin_pb2.DeleteBackupRequest(name=name,) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("name", name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + self._inner_api_calls["delete_backup"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def restore_table( + self, + parent=None, + table_id=None, + backup=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Create a new table by restoring from a completed backup. The new + table must be in the same instance as the instance containing the + backup. The returned table ``long-running operation`` can be used to + track the progress of the operation, and to cancel it. The ``metadata`` + field type is ``RestoreTableMetadata``. The ``response`` type is + ``Table``, if successful. + + Example: + >>> from google.cloud import bigtable_admin_v2 + >>> + >>> client = bigtable_admin_v2.BigtableTableAdminClient() + >>> + >>> response = client.restore_table() + >>> + >>> def callback(operation_future): + ... # Handle result. + ... result = operation_future.result() + >>> + >>> response.add_done_callback(callback) + >>> + >>> # Handle metadata. + >>> metadata = response.metadata() + + Args: + parent (str): Required. The name of the instance in which to create the restored + table. This instance must be the parent of the source backup. Values are + of the form ``projects//instances/``. + table_id (str): Required. The id of the table to create and restore to. This table + must not already exist. The ``table_id`` appended to ``parent`` forms + the full table name of the form + ``projects//instances//tables/``. + backup (str): Name of the backup from which to restore. Values are of the form + ``projects//instances//clusters//backups/``. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.cloud.bigtable_admin_v2.types._OperationFuture` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "restore_table" not in self._inner_api_calls: + self._inner_api_calls[ + "restore_table" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.restore_table, + default_retry=self._method_configs["RestoreTable"].retry, + default_timeout=self._method_configs["RestoreTable"].timeout, + client_info=self._client_info, + ) + + # Sanity check: We have some fields which are mutually exclusive; + # raise ValueError if more than one is sent. + google.api_core.protobuf_helpers.check_oneof(backup=backup,) + + request = bigtable_table_admin_pb2.RestoreTableRequest( + parent=parent, table_id=table_id, backup=backup, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("parent", parent)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + operation = self._inner_api_calls["restore_table"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + return google.api_core.operation.from_gapic( + operation, + self.transport._operations_client, + table_pb2.Table, + metadata_type=bigtable_table_admin_pb2.RestoreTableMetadata, + ) diff --git a/google/cloud/bigtable_admin_v2/gapic/bigtable_table_admin_client_config.py b/google/cloud/bigtable_admin_v2/gapic/bigtable_table_admin_client_config.py index 5e63380ae..db60047bd 100644 --- a/google/cloud/bigtable_admin_v2/gapic/bigtable_table_admin_client_config.py +++ b/google/cloud/bigtable_admin_v2/gapic/bigtable_table_admin_client_config.py @@ -124,6 +124,36 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "non_idempotent_params", }, + "CreateBackup": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "non_idempotent_params", + }, + "GetBackup": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "idempotent_params", + }, + "ListBackups": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "idempotent_params", + }, + "UpdateBackup": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "non_idempotent_params", + }, + "DeleteBackup": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "non_idempotent_params", + }, + "RestoreTable": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "non_idempotent_params", + }, }, } } diff --git a/google/cloud/bigtable_admin_v2/gapic/enums.py b/google/cloud/bigtable_admin_v2/gapic/enums.py index 68f25f989..c71bee34b 100644 --- a/google/cloud/bigtable_admin_v2/gapic/enums.py +++ b/google/cloud/bigtable_admin_v2/gapic/enums.py @@ -19,6 +19,19 @@ import enum +class RestoreSourceType(enum.IntEnum): + """ + Indicates the type of the restore source. + + Attributes: + RESTORE_SOURCE_TYPE_UNSPECIFIED (int): No restore associated. + BACKUP (int): A backup was used as the source of the restore. + """ + + RESTORE_SOURCE_TYPE_UNSPECIFIED = 0 + BACKUP = 1 + + class StorageType(enum.IntEnum): """ Storage media types for persisting Bigtable data. @@ -34,6 +47,23 @@ class StorageType(enum.IntEnum): HDD = 2 +class Backup(object): + class State(enum.IntEnum): + """ + Indicates the current state of the backup. + + Attributes: + STATE_UNSPECIFIED (int): Not specified. + CREATING (int): The pending backup is still being created. Operations on the backup + may fail with ``FAILED_PRECONDITION`` in this state. + READY (int): The backup is complete and ready for use. + """ + + STATE_UNSPECIFIED = 0 + CREATING = 1 + READY = 2 + + class Cluster(object): class State(enum.IntEnum): """ @@ -86,11 +116,11 @@ class Type(enum.IntEnum): TYPE_UNSPECIFIED (int): The type of the instance is unspecified. If set when creating an instance, a ``PRODUCTION`` instance will be created. If set when updating an instance, the type will be left unchanged. - PRODUCTION (int): An instance meant for production use. ``serve_nodes`` must be set on the - cluster. - DEVELOPMENT (int): The instance is meant for development and testing purposes only; it has - no performance or uptime guarantees and is not covered by SLA. After a - development instance is created, it can be upgraded by updating the + PRODUCTION (int): An instance meant for production use. ``serve_nodes`` must be set on + the cluster. + DEVELOPMENT (int): The instance is meant for development and testing purposes only; it + has no performance or uptime guarantees and is not covered by SLA. After + a development instance is created, it can be upgraded by updating the instance to type ``PRODUCTION``. An instance created as a production instance cannot be changed to a development instance. When creating a development instance, ``serve_nodes`` on the cluster must not be set. @@ -142,8 +172,8 @@ class View(enum.IntEnum): VIEW_UNSPECIFIED (int): Uses the default view for each method as documented in its request. NAME_ONLY (int): Only populates ``name``. SCHEMA_VIEW (int): Only populates ``name`` and fields related to the table's schema. - REPLICATION_VIEW (int): Only populates ``name`` and fields related to the table's replication - state. + REPLICATION_VIEW (int): Only populates ``name`` and fields related to the table's + replication state. FULL (int): Populates all fields. """ @@ -170,6 +200,9 @@ class ReplicationState(enum.IntEnum): READY (int): The table can serve Data API requests from this cluster. Depending on replication delay, reads may not immediately reflect the state of the table in other clusters. + READY_OPTIMIZING (int): The table is fully created and ready for use after a restore, and is + being optimized for performance. When optimizations are complete, the + table will transition to ``READY`` state. """ STATE_NOT_KNOWN = 0 @@ -177,3 +210,4 @@ class ReplicationState(enum.IntEnum): PLANNED_MAINTENANCE = 2 UNPLANNED_MAINTENANCE = 3 READY = 4 + READY_OPTIMIZING = 5 diff --git a/google/cloud/bigtable_admin_v2/gapic/transports/bigtable_instance_admin_grpc_transport.py b/google/cloud/bigtable_admin_v2/gapic/transports/bigtable_instance_admin_grpc_transport.py index fa5bf0556..536629604 100644 --- a/google/cloud/bigtable_admin_v2/gapic/transports/bigtable_instance_admin_grpc_transport.py +++ b/google/cloud/bigtable_admin_v2/gapic/transports/bigtable_instance_admin_grpc_transport.py @@ -170,7 +170,9 @@ def list_instances(self): def update_instance(self): """Return the gRPC stub for :meth:`BigtableInstanceAdminClient.update_instance`. - Updates an instance within a project. + Updates an instance within a project. This method updates only the display + name and type for an Instance. To update other Instance properties, such as + labels, use PartialUpdateInstance. Returns: Callable: A callable which accepts the appropriate @@ -183,7 +185,8 @@ def update_instance(self): def partial_update_instance(self): """Return the gRPC stub for :meth:`BigtableInstanceAdminClient.partial_update_instance`. - Partially updates an instance within a project. + Partially updates an instance within a project. This method can modify all + fields of an Instance and is the preferred way to update an Instance. Returns: Callable: A callable which accepts the appropriate diff --git a/google/cloud/bigtable_admin_v2/gapic/transports/bigtable_table_admin_grpc_transport.py b/google/cloud/bigtable_admin_v2/gapic/transports/bigtable_table_admin_grpc_transport.py index d8a5bfee0..281bad20a 100644 --- a/google/cloud/bigtable_admin_v2/gapic/transports/bigtable_table_admin_grpc_transport.py +++ b/google/cloud/bigtable_admin_v2/gapic/transports/bigtable_table_admin_grpc_transport.py @@ -267,8 +267,9 @@ def check_consistency(self): def get_iam_policy(self): """Return the gRPC stub for :meth:`BigtableTableAdminClient.get_iam_policy`. - Gets the access control policy for a table resource. Returns an empty - policy if an table exists but does not have a policy set. + Gets the access control policy for a resource. + Returns an empty policy if the resource exists but does not have a policy + set. Returns: Callable: A callable which accepts the appropriate @@ -281,8 +282,8 @@ def get_iam_policy(self): def set_iam_policy(self): """Return the gRPC stub for :meth:`BigtableTableAdminClient.set_iam_policy`. - Sets the access control policy on a table resource. Replaces any existing - policy. + Sets the access control policy on a Table or Backup resource. + Replaces any existing policy. Returns: Callable: A callable which accepts the appropriate @@ -380,3 +381,91 @@ def delete_snapshot(self): deserialized response object. """ return self._stubs["bigtable_table_admin_stub"].DeleteSnapshot + + @property + def create_backup(self): + """Return the gRPC stub for :meth:`BigtableTableAdminClient.create_backup`. + + Starts creating a new Cloud Bigtable Backup. The returned backup + ``long-running operation`` can be used to track creation of the backup. + The ``metadata`` field type is ``CreateBackupMetadata``. The + ``response`` field type is ``Backup``, if successful. Cancelling the + returned operation will stop the creation and delete the backup. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["bigtable_table_admin_stub"].CreateBackup + + @property + def get_backup(self): + """Return the gRPC stub for :meth:`BigtableTableAdminClient.get_backup`. + + Gets metadata on a pending or completed Cloud Bigtable Backup. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["bigtable_table_admin_stub"].GetBackup + + @property + def list_backups(self): + """Return the gRPC stub for :meth:`BigtableTableAdminClient.list_backups`. + + Lists Cloud Bigtable backups. Returns both completed and pending + backups. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["bigtable_table_admin_stub"].ListBackups + + @property + def update_backup(self): + """Return the gRPC stub for :meth:`BigtableTableAdminClient.update_backup`. + + Updates a pending or completed Cloud Bigtable Backup. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["bigtable_table_admin_stub"].UpdateBackup + + @property + def delete_backup(self): + """Return the gRPC stub for :meth:`BigtableTableAdminClient.delete_backup`. + + Deletes a pending or completed Cloud Bigtable backup. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["bigtable_table_admin_stub"].DeleteBackup + + @property + def restore_table(self): + """Return the gRPC stub for :meth:`BigtableTableAdminClient.restore_table`. + + Create a new table by restoring from a completed backup. The new + table must be in the same instance as the instance containing the + backup. The returned table ``long-running operation`` can be used to + track the progress of the operation, and to cancel it. The ``metadata`` + field type is ``RestoreTableMetadata``. The ``response`` type is + ``Table``, if successful. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["bigtable_table_admin_stub"].RestoreTable diff --git a/google/cloud/bigtable_admin_v2/proto/bigtable_instance_admin.proto b/google/cloud/bigtable_admin_v2/proto/bigtable_instance_admin.proto index 80ce42470..8e05bfd0f 100644 --- a/google/cloud/bigtable_admin_v2/proto/bigtable_instance_admin.proto +++ b/google/cloud/bigtable_admin_v2/proto/bigtable_instance_admin.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,6 +18,9 @@ syntax = "proto3"; package google.bigtable.admin.v2; import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/bigtable/admin/v2/instance.proto"; import "google/iam/v1/iam_policy.proto"; import "google/iam/v1/policy.proto"; @@ -37,13 +40,27 @@ option php_namespace = "Google\\Cloud\\Bigtable\\Admin\\V2"; // Clusters. Provides access to the Instance and Cluster schemas only, not the // tables' metadata or data stored in those tables. service BigtableInstanceAdmin { + option (google.api.default_host) = "bigtableadmin.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/bigtable.admin," + "https://www.googleapis.com/auth/bigtable.admin.cluster," + "https://www.googleapis.com/auth/bigtable.admin.instance," + "https://www.googleapis.com/auth/cloud-bigtable.admin," + "https://www.googleapis.com/auth/cloud-bigtable.admin.cluster," + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/cloud-platform.read-only"; + // Create an instance within a project. - rpc CreateInstance(CreateInstanceRequest) - returns (google.longrunning.Operation) { + rpc CreateInstance(CreateInstanceRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v2/{parent=projects/*}/instances" body: "*" }; + option (google.api.method_signature) = "parent,instance_id,instance,clusters"; + option (google.longrunning.operation_info) = { + response_type: "Instance" + metadata_type: "CreateInstanceMetadata" + }; } // Gets information about an instance. @@ -51,6 +68,7 @@ service BigtableInstanceAdmin { option (google.api.http) = { get: "/v2/{name=projects/*/instances/*}" }; + option (google.api.method_signature) = "name"; } // Lists information about instances in a project. @@ -58,9 +76,12 @@ service BigtableInstanceAdmin { option (google.api.http) = { get: "/v2/{parent=projects/*}/instances" }; + option (google.api.method_signature) = "parent"; } - // Updates an instance within a project. + // Updates an instance within a project. This method updates only the display + // name and type for an Instance. To update other Instance properties, such as + // labels, use PartialUpdateInstance. rpc UpdateInstance(Instance) returns (Instance) { option (google.api.http) = { put: "/v2/{name=projects/*/instances/*}" @@ -68,13 +89,18 @@ service BigtableInstanceAdmin { }; } - // Partially updates an instance within a project. - rpc PartialUpdateInstance(PartialUpdateInstanceRequest) - returns (google.longrunning.Operation) { + // Partially updates an instance within a project. This method can modify all + // fields of an Instance and is the preferred way to update an Instance. + rpc PartialUpdateInstance(PartialUpdateInstanceRequest) returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v2/{instance.name=projects/*/instances/*}" body: "instance" }; + option (google.api.method_signature) = "instance,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Instance" + metadata_type: "UpdateInstanceMetadata" + }; } // Delete an instance from a project. @@ -82,15 +108,20 @@ service BigtableInstanceAdmin { option (google.api.http) = { delete: "/v2/{name=projects/*/instances/*}" }; + option (google.api.method_signature) = "name"; } // Creates a cluster within an instance. - rpc CreateCluster(CreateClusterRequest) - returns (google.longrunning.Operation) { + rpc CreateCluster(CreateClusterRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v2/{parent=projects/*/instances/*}/clusters" body: "cluster" }; + option (google.api.method_signature) = "parent,cluster_id,cluster"; + option (google.longrunning.operation_info) = { + response_type: "Cluster" + metadata_type: "CreateClusterMetadata" + }; } // Gets information about a cluster. @@ -98,6 +129,7 @@ service BigtableInstanceAdmin { option (google.api.http) = { get: "/v2/{name=projects/*/instances/*/clusters/*}" }; + option (google.api.method_signature) = "name"; } // Lists information about clusters in an instance. @@ -105,6 +137,7 @@ service BigtableInstanceAdmin { option (google.api.http) = { get: "/v2/{parent=projects/*/instances/*}/clusters" }; + option (google.api.method_signature) = "parent"; } // Updates a cluster within an instance. @@ -113,6 +146,10 @@ service BigtableInstanceAdmin { put: "/v2/{name=projects/*/instances/*/clusters/*}" body: "*" }; + option (google.longrunning.operation_info) = { + response_type: "Cluster" + metadata_type: "UpdateClusterMetadata" + }; } // Deletes a cluster from an instance. @@ -120,6 +157,7 @@ service BigtableInstanceAdmin { option (google.api.http) = { delete: "/v2/{name=projects/*/instances/*/clusters/*}" }; + option (google.api.method_signature) = "name"; } // Creates an app profile within an instance. @@ -128,6 +166,7 @@ service BigtableInstanceAdmin { post: "/v2/{parent=projects/*/instances/*}/appProfiles" body: "app_profile" }; + option (google.api.method_signature) = "parent,app_profile_id,app_profile"; } // Gets information about an app profile. @@ -135,98 +174,118 @@ service BigtableInstanceAdmin { option (google.api.http) = { get: "/v2/{name=projects/*/instances/*/appProfiles/*}" }; + option (google.api.method_signature) = "name"; } // Lists information about app profiles in an instance. - rpc ListAppProfiles(ListAppProfilesRequest) - returns (ListAppProfilesResponse) { + rpc ListAppProfiles(ListAppProfilesRequest) returns (ListAppProfilesResponse) { option (google.api.http) = { get: "/v2/{parent=projects/*/instances/*}/appProfiles" }; + option (google.api.method_signature) = "parent"; } // Updates an app profile within an instance. - rpc UpdateAppProfile(UpdateAppProfileRequest) - returns (google.longrunning.Operation) { + rpc UpdateAppProfile(UpdateAppProfileRequest) returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}" body: "app_profile" }; + option (google.api.method_signature) = "app_profile,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "AppProfile" + metadata_type: "UpdateAppProfileMetadata" + }; } // Deletes an app profile from an instance. - rpc DeleteAppProfile(DeleteAppProfileRequest) - returns (google.protobuf.Empty) { + rpc DeleteAppProfile(DeleteAppProfileRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{name=projects/*/instances/*/appProfiles/*}" }; + option (google.api.method_signature) = "name"; } // Gets the access control policy for an instance resource. Returns an empty // policy if an instance exists but does not have a policy set. - rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) - returns (google.iam.v1.Policy) { + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v2/{resource=projects/*/instances/*}:getIamPolicy" body: "*" }; + option (google.api.method_signature) = "resource"; } // Sets the access control policy on an instance resource. Replaces any // existing policy. - rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) - returns (google.iam.v1.Policy) { + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v2/{resource=projects/*/instances/*}:setIamPolicy" body: "*" }; + option (google.api.method_signature) = "resource,policy"; } // Returns permissions that the caller has on the specified instance resource. - rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) - returns (google.iam.v1.TestIamPermissionsResponse) { + rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) { option (google.api.http) = { post: "/v2/{resource=projects/*/instances/*}:testIamPermissions" body: "*" }; + option (google.api.method_signature) = "resource,permissions"; } } // Request message for BigtableInstanceAdmin.CreateInstance. message CreateInstanceRequest { - // The unique name of the project in which to create the new instance. - // Values are of the form `projects/`. - string parent = 1; - - // The ID to be used when referring to the new instance within its project, + // Required. The unique name of the project in which to create the new instance. + // Values are of the form `projects/{project}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; + + // Required. The ID to be used when referring to the new instance within its project, // e.g., just `myinstance` rather than // `projects/myproject/instances/myinstance`. - string instance_id = 2; + string instance_id = 2 [(google.api.field_behavior) = REQUIRED]; - // The instance to create. + // Required. The instance to create. // Fields marked `OutputOnly` must be left blank. - Instance instance = 3; + Instance instance = 3 [(google.api.field_behavior) = REQUIRED]; - // The clusters to be created within the instance, mapped by desired + // Required. The clusters to be created within the instance, mapped by desired // cluster ID, e.g., just `mycluster` rather than // `projects/myproject/instances/myinstance/clusters/mycluster`. // Fields marked `OutputOnly` must be left blank. - // Currently, at most two clusters can be specified. - map clusters = 4; + // Currently, at most four clusters can be specified. + map clusters = 4 [(google.api.field_behavior) = REQUIRED]; } // Request message for BigtableInstanceAdmin.GetInstance. message GetInstanceRequest { - // The unique name of the requested instance. Values are of the form - // `projects//instances/`. - string name = 1; + // Required. The unique name of the requested instance. Values are of the form + // `projects/{project}/instances/{instance}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Instance" + } + ]; } // Request message for BigtableInstanceAdmin.ListInstances. message ListInstancesRequest { - // The unique name of the project for which a list of instances is requested. - // Values are of the form `projects/`. - string parent = 1; + // Required. The unique name of the project for which a list of instances is requested. + // Values are of the form `projects/{project}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; // DEPRECATED: This field is unused and ignored. string page_token = 2; @@ -251,52 +310,72 @@ message ListInstancesResponse { // Request message for BigtableInstanceAdmin.PartialUpdateInstance. message PartialUpdateInstanceRequest { - // The Instance which will (partially) replace the current value. - Instance instance = 1; + // Required. The Instance which will (partially) replace the current value. + Instance instance = 1 [(google.api.field_behavior) = REQUIRED]; - // The subset of Instance fields which should be replaced. + // Required. The subset of Instance fields which should be replaced. // Must be explicitly set. - google.protobuf.FieldMask update_mask = 2; + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for BigtableInstanceAdmin.DeleteInstance. message DeleteInstanceRequest { - // The unique name of the instance to be deleted. - // Values are of the form `projects//instances/`. - string name = 1; + // Required. The unique name of the instance to be deleted. + // Values are of the form `projects/{project}/instances/{instance}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Instance" + } + ]; } // Request message for BigtableInstanceAdmin.CreateCluster. message CreateClusterRequest { - // The unique name of the instance in which to create the new cluster. + // Required. The unique name of the instance in which to create the new cluster. // Values are of the form - // `projects//instances/`. - string parent = 1; - - // The ID to be used when referring to the new cluster within its instance, + // `projects/{project}/instances/{instance}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Instance" + } + ]; + + // Required. The ID to be used when referring to the new cluster within its instance, // e.g., just `mycluster` rather than // `projects/myproject/instances/myinstance/clusters/mycluster`. - string cluster_id = 2; + string cluster_id = 2 [(google.api.field_behavior) = REQUIRED]; - // The cluster to be created. + // Required. The cluster to be created. // Fields marked `OutputOnly` must be left blank. - Cluster cluster = 3; + Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED]; } // Request message for BigtableInstanceAdmin.GetCluster. message GetClusterRequest { - // The unique name of the requested cluster. Values are of the form - // `projects//instances//clusters/`. - string name = 1; + // Required. The unique name of the requested cluster. Values are of the form + // `projects/{project}/instances/{instance}/clusters/{cluster}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Cluster" + } + ]; } // Request message for BigtableInstanceAdmin.ListClusters. message ListClustersRequest { - // The unique name of the instance for which a list of clusters is requested. - // Values are of the form `projects//instances/`. - // Use ` = '-'` to list Clusters for all Instances in a project, + // Required. The unique name of the instance for which a list of clusters is requested. + // Values are of the form `projects/{project}/instances/{instance}`. + // Use `{instance} = '-'` to list Clusters for all Instances in a project, // e.g., `projects/myproject/instances/-`. - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Instance" + } + ]; // DEPRECATED: This field is unused and ignored. string page_token = 2; @@ -320,9 +399,14 @@ message ListClustersResponse { // Request message for BigtableInstanceAdmin.DeleteCluster. message DeleteClusterRequest { - // The unique name of the cluster to be deleted. Values are of the form - // `projects//instances//clusters/`. - string name = 1; + // Required. The unique name of the cluster to be deleted. Values are of the form + // `projects/{project}/instances/{instance}/clusters/{cluster}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Cluster" + } + ]; } // The metadata for the Operation returned by CreateInstance. @@ -375,19 +459,24 @@ message UpdateClusterMetadata { // Request message for BigtableInstanceAdmin.CreateAppProfile. message CreateAppProfileRequest { - // The unique name of the instance in which to create the new app profile. + // Required. The unique name of the instance in which to create the new app profile. // Values are of the form - // `projects//instances/`. - string parent = 1; - - // The ID to be used when referring to the new app profile within its + // `projects/{project}/instances/{instance}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Instance" + } + ]; + + // Required. The ID to be used when referring to the new app profile within its // instance, e.g., just `myprofile` rather than // `projects/myproject/instances/myinstance/appProfiles/myprofile`. - string app_profile_id = 2; + string app_profile_id = 2 [(google.api.field_behavior) = REQUIRED]; - // The app profile to be created. + // Required. The app profile to be created. // Fields marked `OutputOnly` will be ignored. - AppProfile app_profile = 3; + AppProfile app_profile = 3 [(google.api.field_behavior) = REQUIRED]; // If true, ignore safety checks when creating the app profile. bool ignore_warnings = 4; @@ -395,22 +484,39 @@ message CreateAppProfileRequest { // Request message for BigtableInstanceAdmin.GetAppProfile. message GetAppProfileRequest { - // The unique name of the requested app profile. Values are of the form - // `projects//instances//appProfiles/`. - string name = 1; + // Required. The unique name of the requested app profile. Values are of the form + // `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/AppProfile" + } + ]; } // Request message for BigtableInstanceAdmin.ListAppProfiles. message ListAppProfilesRequest { - // The unique name of the instance for which a list of app profiles is + // Required. The unique name of the instance for which a list of app profiles is // requested. Values are of the form - // `projects//instances/`. - // Use ` = '-'` to list AppProfiles for all Instances in a project, + // `projects/{project}/instances/{instance}`. + // Use `{instance} = '-'` to list AppProfiles for all Instances in a project, // e.g., `projects/myproject/instances/-`. - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Instance" + } + ]; // Maximum number of results per page. - // CURRENTLY UNIMPLEMENTED AND IGNORED. + // + // A page_size of zero lets the server choose the number of items to return. + // A page_size which is strictly positive will return at most that many items. + // A negative page_size will cause an error. + // + // Following the first request, subsequent paginated calls are not required + // to pass a page_size. If a page_size is set in subsequent calls, it must + // match the page_size given in the first request. int32 page_size = 3; // The value of `next_page_token` returned by a previous call. @@ -436,12 +542,12 @@ message ListAppProfilesResponse { // Request message for BigtableInstanceAdmin.UpdateAppProfile. message UpdateAppProfileRequest { - // The app profile which will (partially) replace the current value. - AppProfile app_profile = 1; + // Required. The app profile which will (partially) replace the current value. + AppProfile app_profile = 1 [(google.api.field_behavior) = REQUIRED]; - // The subset of app profile fields which should be replaced. + // Required. The subset of app profile fields which should be replaced. // If unset, all fields will be replaced. - google.protobuf.FieldMask update_mask = 2; + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; // If true, ignore safety checks when updating the app profile. bool ignore_warnings = 3; @@ -449,9 +555,14 @@ message UpdateAppProfileRequest { // Request message for BigtableInstanceAdmin.DeleteAppProfile. message DeleteAppProfileRequest { - // The unique name of the app profile to be deleted. Values are of the form - // `projects//instances//appProfiles/`. - string name = 1; + // Required. The unique name of the app profile to be deleted. Values are of the form + // `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/AppProfile" + } + ]; // If true, ignore safety checks when deleting the app profile. bool ignore_warnings = 2; diff --git a/google/cloud/bigtable_admin_v2/proto/bigtable_instance_admin_pb2.py b/google/cloud/bigtable_admin_v2/proto/bigtable_instance_admin_pb2.py index 540e8c91b..dbe5a8fd8 100644 --- a/google/cloud/bigtable_admin_v2/proto/bigtable_instance_admin_pb2.py +++ b/google/cloud/bigtable_admin_v2/proto/bigtable_instance_admin_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/bigtable/admin_v2/proto/bigtable_instance_admin.proto +# source: google/cloud/bigtable_admin_v2/proto/bigtable_instance_admin.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -16,8 +13,11 @@ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 from google.cloud.bigtable_admin_v2.proto import ( - instance_pb2 as google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2, + instance_pb2 as google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2, ) from google.iam.v1 import iam_policy_pb2 as google_dot_iam_dot_v1_dot_iam__policy__pb2 from google.iam.v1 import policy_pb2 as google_dot_iam_dot_v1_dot_policy__pb2 @@ -30,18 +30,18 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name="google/cloud/bigtable/admin_v2/proto/bigtable_instance_admin.proto", + name="google/cloud/bigtable_admin_v2/proto/bigtable_instance_admin.proto", package="google.bigtable.admin.v2", syntax="proto3", - serialized_options=_b( - "\n\034com.google.bigtable.admin.v2B\032BigtableInstanceAdminProtoP\001Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\252\002\036Google.Cloud.Bigtable.Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V2" - ), - serialized_pb=_b( - '\nBgoogle/cloud/bigtable/admin_v2/proto/bigtable_instance_admin.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x33google/cloud/bigtable/admin_v2/proto/instance.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x97\x02\n\x15\x43reateInstanceRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12\x34\n\x08instance\x18\x03 \x01(\x0b\x32".google.bigtable.admin.v2.Instance\x12O\n\x08\x63lusters\x18\x04 \x03(\x0b\x32=.google.bigtable.admin.v2.CreateInstanceRequest.ClustersEntry\x1aR\n\rClustersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster:\x02\x38\x01""\n\x12GetInstanceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t":\n\x14ListInstancesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t"\x81\x01\n\x15ListInstancesResponse\x12\x35\n\tinstances\x18\x01 \x03(\x0b\x32".google.bigtable.admin.v2.Instance\x12\x18\n\x10\x66\x61iled_locations\x18\x02 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t"\x85\x01\n\x1cPartialUpdateInstanceRequest\x12\x34\n\x08instance\x18\x01 \x01(\x0b\x32".google.bigtable.admin.v2.Instance\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"%\n\x15\x44\x65leteInstanceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"n\n\x14\x43reateClusterRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\ncluster_id\x18\x02 \x01(\t\x12\x32\n\x07\x63luster\x18\x03 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster"!\n\x11GetClusterRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"9\n\x13ListClustersRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t"~\n\x14ListClustersResponse\x12\x33\n\x08\x63lusters\x18\x01 \x03(\x0b\x32!.google.bigtable.admin.v2.Cluster\x12\x18\n\x10\x66\x61iled_locations\x18\x02 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t"$\n\x14\x44\x65leteClusterRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\xc6\x01\n\x16\x43reateInstanceMetadata\x12I\n\x10original_request\x18\x01 \x01(\x0b\x32/.google.bigtable.admin.v2.CreateInstanceRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xcd\x01\n\x16UpdateInstanceMetadata\x12P\n\x10original_request\x18\x01 \x01(\x0b\x32\x36.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xc4\x01\n\x15\x43reateClusterMetadata\x12H\n\x10original_request\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.CreateClusterRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xb7\x01\n\x15UpdateClusterMetadata\x12;\n\x10original_request\x18\x01 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\x95\x01\n\x17\x43reateAppProfileRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x16\n\x0e\x61pp_profile_id\x18\x02 \x01(\t\x12\x39\n\x0b\x61pp_profile\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.AppProfile\x12\x17\n\x0fignore_warnings\x18\x04 \x01(\x08"$\n\x14GetAppProfileRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"O\n\x16ListAppProfilesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t"\x88\x01\n\x17ListAppProfilesResponse\x12:\n\x0c\x61pp_profiles\x18\x01 \x03(\x0b\x32$.google.bigtable.admin.v2.AppProfile\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x10\x66\x61iled_locations\x18\x03 \x03(\t"\x9e\x01\n\x17UpdateAppProfileRequest\x12\x39\n\x0b\x61pp_profile\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.AppProfile\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x17\n\x0fignore_warnings\x18\x03 \x01(\x08"@\n\x17\x44\x65leteAppProfileRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x17\n\x0fignore_warnings\x18\x02 \x01(\x08"\x1a\n\x18UpdateAppProfileMetadata2\xaa\x17\n\x15\x42igtableInstanceAdmin\x12\x8e\x01\n\x0e\x43reateInstance\x12/.google.bigtable.admin.v2.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation",\x82\xd3\xe4\x93\x02&"!/v2/{parent=projects/*}/instances:\x01*\x12\x8a\x01\n\x0bGetInstance\x12,.google.bigtable.admin.v2.GetInstanceRequest\x1a".google.bigtable.admin.v2.Instance")\x82\xd3\xe4\x93\x02#\x12!/v2/{name=projects/*/instances/*}\x12\x9b\x01\n\rListInstances\x12..google.bigtable.admin.v2.ListInstancesRequest\x1a/.google.bigtable.admin.v2.ListInstancesResponse")\x82\xd3\xe4\x93\x02#\x12!/v2/{parent=projects/*}/instances\x12\x86\x01\n\x0eUpdateInstance\x12".google.bigtable.admin.v2.Instance\x1a".google.bigtable.admin.v2.Instance",\x82\xd3\xe4\x93\x02&\x1a!/v2/{name=projects/*/instances/*}:\x01*\x12\xac\x01\n\x15PartialUpdateInstance\x12\x36.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x1a\x1d.google.longrunning.Operation"<\x82\xd3\xe4\x93\x02\x36\x32*/v2/{instance.name=projects/*/instances/*}:\x08instance\x12\x84\x01\n\x0e\x44\x65leteInstance\x12/.google.bigtable.admin.v2.DeleteInstanceRequest\x1a\x16.google.protobuf.Empty")\x82\xd3\xe4\x93\x02#*!/v2/{name=projects/*/instances/*}\x12\x9d\x01\n\rCreateCluster\x12..google.bigtable.admin.v2.CreateClusterRequest\x1a\x1d.google.longrunning.Operation"=\x82\xd3\xe4\x93\x02\x37",/v2/{parent=projects/*/instances/*}/clusters:\x07\x63luster\x12\x92\x01\n\nGetCluster\x12+.google.bigtable.admin.v2.GetClusterRequest\x1a!.google.bigtable.admin.v2.Cluster"4\x82\xd3\xe4\x93\x02.\x12,/v2/{name=projects/*/instances/*/clusters/*}\x12\xa3\x01\n\x0cListClusters\x12-.google.bigtable.admin.v2.ListClustersRequest\x1a..google.bigtable.admin.v2.ListClustersResponse"4\x82\xd3\xe4\x93\x02.\x12,/v2/{parent=projects/*/instances/*}/clusters\x12\x8a\x01\n\rUpdateCluster\x12!.google.bigtable.admin.v2.Cluster\x1a\x1d.google.longrunning.Operation"7\x82\xd3\xe4\x93\x02\x31\x1a,/v2/{name=projects/*/instances/*/clusters/*}:\x01*\x12\x8d\x01\n\rDeleteCluster\x12..google.bigtable.admin.v2.DeleteClusterRequest\x1a\x16.google.protobuf.Empty"4\x82\xd3\xe4\x93\x02.*,/v2/{name=projects/*/instances/*/clusters/*}\x12\xb1\x01\n\x10\x43reateAppProfile\x12\x31.google.bigtable.admin.v2.CreateAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile"D\x82\xd3\xe4\x93\x02>"//v2/{parent=projects/*/instances/*}/appProfiles:\x0b\x61pp_profile\x12\x9e\x01\n\rGetAppProfile\x12..google.bigtable.admin.v2.GetAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile"7\x82\xd3\xe4\x93\x02\x31\x12//v2/{name=projects/*/instances/*/appProfiles/*}\x12\xaf\x01\n\x0fListAppProfiles\x12\x30.google.bigtable.admin.v2.ListAppProfilesRequest\x1a\x31.google.bigtable.admin.v2.ListAppProfilesResponse"7\x82\xd3\xe4\x93\x02\x31\x12//v2/{parent=projects/*/instances/*}/appProfiles\x12\xb6\x01\n\x10UpdateAppProfile\x12\x31.google.bigtable.admin.v2.UpdateAppProfileRequest\x1a\x1d.google.longrunning.Operation"P\x82\xd3\xe4\x93\x02J2;/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}:\x0b\x61pp_profile\x12\x96\x01\n\x10\x44\x65leteAppProfile\x12\x31.google.bigtable.admin.v2.DeleteAppProfileRequest\x1a\x16.google.protobuf.Empty"7\x82\xd3\xe4\x93\x02\x31*//v2/{name=projects/*/instances/*/appProfiles/*}\x12\x88\x01\n\x0cGetIamPolicy\x12".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"=\x82\xd3\xe4\x93\x02\x37"2/v2/{resource=projects/*/instances/*}:getIamPolicy:\x01*\x12\x88\x01\n\x0cSetIamPolicy\x12".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"=\x82\xd3\xe4\x93\x02\x37"2/v2/{resource=projects/*/instances/*}:setIamPolicy:\x01*\x12\xae\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse"C\x82\xd3\xe4\x93\x02="8/v2/{resource=projects/*/instances/*}:testIamPermissions:\x01*B\xbd\x01\n\x1c\x63om.google.bigtable.admin.v2B\x1a\x42igtableInstanceAdminProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2b\x06proto3' - ), + serialized_options=b"\n\034com.google.bigtable.admin.v2B\032BigtableInstanceAdminProtoP\001Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\252\002\036Google.Cloud.Bigtable.Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V2", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\nBgoogle/cloud/bigtable_admin_v2/proto/bigtable_instance_admin.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x33google/cloud/bigtable_admin_v2/proto/instance.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xdb\x02\n\x15\x43reateInstanceRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x08instance\x18\x03 \x01(\x0b\x32".google.bigtable.admin.v2.InstanceB\x03\xe0\x41\x02\x12T\n\x08\x63lusters\x18\x04 \x03(\x0b\x32=.google.bigtable.admin.v2.CreateInstanceRequest.ClustersEntryB\x03\xe0\x41\x02\x1aR\n\rClustersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster:\x02\x38\x01"L\n\x12GetInstanceRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n bigtable.googleapis.com/Instance"o\n\x14ListInstancesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x12\n\npage_token\x18\x02 \x01(\t"\x81\x01\n\x15ListInstancesResponse\x12\x35\n\tinstances\x18\x01 \x03(\x0b\x32".google.bigtable.admin.v2.Instance\x12\x18\n\x10\x66\x61iled_locations\x18\x02 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t"\x8f\x01\n\x1cPartialUpdateInstanceRequest\x12\x39\n\x08instance\x18\x01 \x01(\x0b\x32".google.bigtable.admin.v2.InstanceB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02"O\n\x15\x44\x65leteInstanceRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n bigtable.googleapis.com/Instance"\xa2\x01\n\x14\x43reateClusterRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n bigtable.googleapis.com/Instance\x12\x17\n\ncluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x07\x63luster\x18\x03 \x01(\x0b\x32!.google.bigtable.admin.v2.ClusterB\x03\xe0\x41\x02"J\n\x11GetClusterRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x62igtable.googleapis.com/Cluster"c\n\x13ListClustersRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n bigtable.googleapis.com/Instance\x12\x12\n\npage_token\x18\x02 \x01(\t"~\n\x14ListClustersResponse\x12\x33\n\x08\x63lusters\x18\x01 \x03(\x0b\x32!.google.bigtable.admin.v2.Cluster\x12\x18\n\x10\x66\x61iled_locations\x18\x02 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t"M\n\x14\x44\x65leteClusterRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x62igtable.googleapis.com/Cluster"\xc6\x01\n\x16\x43reateInstanceMetadata\x12I\n\x10original_request\x18\x01 \x01(\x0b\x32/.google.bigtable.admin.v2.CreateInstanceRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xcd\x01\n\x16UpdateInstanceMetadata\x12P\n\x10original_request\x18\x01 \x01(\x0b\x32\x36.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xc4\x01\n\x15\x43reateClusterMetadata\x12H\n\x10original_request\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.CreateClusterRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xb7\x01\n\x15UpdateClusterMetadata\x12;\n\x10original_request\x18\x01 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xc9\x01\n\x17\x43reateAppProfileRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n bigtable.googleapis.com/Instance\x12\x1b\n\x0e\x61pp_profile_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12>\n\x0b\x61pp_profile\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.AppProfileB\x03\xe0\x41\x02\x12\x17\n\x0fignore_warnings\x18\x04 \x01(\x08"P\n\x14GetAppProfileRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n"bigtable.googleapis.com/AppProfile"y\n\x16ListAppProfilesRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n bigtable.googleapis.com/Instance\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t"\x88\x01\n\x17ListAppProfilesResponse\x12:\n\x0c\x61pp_profiles\x18\x01 \x03(\x0b\x32$.google.bigtable.admin.v2.AppProfile\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x10\x66\x61iled_locations\x18\x03 \x03(\t"\xa8\x01\n\x17UpdateAppProfileRequest\x12>\n\x0b\x61pp_profile\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.AppProfileB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x17\n\x0fignore_warnings\x18\x03 \x01(\x08"l\n\x17\x44\x65leteAppProfileRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n"bigtable.googleapis.com/AppProfile\x12\x17\n\x0fignore_warnings\x18\x02 \x01(\x08"\x1a\n\x18UpdateAppProfileMetadata2\x92\x1e\n\x15\x42igtableInstanceAdmin\x12\xda\x01\n\x0e\x43reateInstance\x12/.google.bigtable.admin.v2.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation"x\x82\xd3\xe4\x93\x02&"!/v2/{parent=projects/*}/instances:\x01*\xda\x41$parent,instance_id,instance,clusters\xca\x41"\n\x08Instance\x12\x16\x43reateInstanceMetadata\x12\x91\x01\n\x0bGetInstance\x12,.google.bigtable.admin.v2.GetInstanceRequest\x1a".google.bigtable.admin.v2.Instance"0\x82\xd3\xe4\x93\x02#\x12!/v2/{name=projects/*/instances/*}\xda\x41\x04name\x12\xa4\x01\n\rListInstances\x12..google.bigtable.admin.v2.ListInstancesRequest\x1a/.google.bigtable.admin.v2.ListInstancesResponse"2\x82\xd3\xe4\x93\x02#\x12!/v2/{parent=projects/*}/instances\xda\x41\x06parent\x12\x86\x01\n\x0eUpdateInstance\x12".google.bigtable.admin.v2.Instance\x1a".google.bigtable.admin.v2.Instance",\x82\xd3\xe4\x93\x02&\x1a!/v2/{name=projects/*/instances/*}:\x01*\x12\xe8\x01\n\x15PartialUpdateInstance\x12\x36.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x1a\x1d.google.longrunning.Operation"x\x82\xd3\xe4\x93\x02\x36\x32*/v2/{instance.name=projects/*/instances/*}:\x08instance\xda\x41\x14instance,update_mask\xca\x41"\n\x08Instance\x12\x16UpdateInstanceMetadata\x12\x8b\x01\n\x0e\x44\x65leteInstance\x12/.google.bigtable.admin.v2.DeleteInstanceRequest\x1a\x16.google.protobuf.Empty"0\x82\xd3\xe4\x93\x02#*!/v2/{name=projects/*/instances/*}\xda\x41\x04name\x12\xdc\x01\n\rCreateCluster\x12..google.bigtable.admin.v2.CreateClusterRequest\x1a\x1d.google.longrunning.Operation"|\x82\xd3\xe4\x93\x02\x37",/v2/{parent=projects/*/instances/*}/clusters:\x07\x63luster\xda\x41\x19parent,cluster_id,cluster\xca\x41 \n\x07\x43luster\x12\x15\x43reateClusterMetadata\x12\x99\x01\n\nGetCluster\x12+.google.bigtable.admin.v2.GetClusterRequest\x1a!.google.bigtable.admin.v2.Cluster";\x82\xd3\xe4\x93\x02.\x12,/v2/{name=projects/*/instances/*/clusters/*}\xda\x41\x04name\x12\xac\x01\n\x0cListClusters\x12-.google.bigtable.admin.v2.ListClustersRequest\x1a..google.bigtable.admin.v2.ListClustersResponse"=\x82\xd3\xe4\x93\x02.\x12,/v2/{parent=projects/*/instances/*}/clusters\xda\x41\x06parent\x12\xad\x01\n\rUpdateCluster\x12!.google.bigtable.admin.v2.Cluster\x1a\x1d.google.longrunning.Operation"Z\x82\xd3\xe4\x93\x02\x31\x1a,/v2/{name=projects/*/instances/*/clusters/*}:\x01*\xca\x41 \n\x07\x43luster\x12\x15UpdateClusterMetadata\x12\x94\x01\n\rDeleteCluster\x12..google.bigtable.admin.v2.DeleteClusterRequest\x1a\x16.google.protobuf.Empty";\x82\xd3\xe4\x93\x02.*,/v2/{name=projects/*/instances/*/clusters/*}\xda\x41\x04name\x12\xd5\x01\n\x10\x43reateAppProfile\x12\x31.google.bigtable.admin.v2.CreateAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile"h\x82\xd3\xe4\x93\x02>"//v2/{parent=projects/*/instances/*}/appProfiles:\x0b\x61pp_profile\xda\x41!parent,app_profile_id,app_profile\x12\xa5\x01\n\rGetAppProfile\x12..google.bigtable.admin.v2.GetAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile">\x82\xd3\xe4\x93\x02\x31\x12//v2/{name=projects/*/instances/*/appProfiles/*}\xda\x41\x04name\x12\xb8\x01\n\x0fListAppProfiles\x12\x30.google.bigtable.admin.v2.ListAppProfilesRequest\x1a\x31.google.bigtable.admin.v2.ListAppProfilesResponse"@\x82\xd3\xe4\x93\x02\x31\x12//v2/{parent=projects/*/instances/*}/appProfiles\xda\x41\x06parent\x12\xfa\x01\n\x10UpdateAppProfile\x12\x31.google.bigtable.admin.v2.UpdateAppProfileRequest\x1a\x1d.google.longrunning.Operation"\x93\x01\x82\xd3\xe4\x93\x02J2;/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}:\x0b\x61pp_profile\xda\x41\x17\x61pp_profile,update_mask\xca\x41&\n\nAppProfile\x12\x18UpdateAppProfileMetadata\x12\x9d\x01\n\x10\x44\x65leteAppProfile\x12\x31.google.bigtable.admin.v2.DeleteAppProfileRequest\x1a\x16.google.protobuf.Empty">\x82\xd3\xe4\x93\x02\x31*//v2/{name=projects/*/instances/*/appProfiles/*}\xda\x41\x04name\x12\x93\x01\n\x0cGetIamPolicy\x12".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"H\x82\xd3\xe4\x93\x02\x37"2/v2/{resource=projects/*/instances/*}:getIamPolicy:\x01*\xda\x41\x08resource\x12\x9a\x01\n\x0cSetIamPolicy\x12".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"O\x82\xd3\xe4\x93\x02\x37"2/v2/{resource=projects/*/instances/*}:setIamPolicy:\x01*\xda\x41\x0fresource,policy\x12\xc5\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse"Z\x82\xd3\xe4\x93\x02="8/v2/{resource=projects/*/instances/*}:testIamPermissions:\x01*\xda\x41\x14resource,permissions\x1a\x9a\x03\xca\x41\x1c\x62igtableadmin.googleapis.com\xd2\x41\xf7\x02https://www.googleapis.com/auth/bigtable.admin,https://www.googleapis.com/auth/bigtable.admin.cluster,https://www.googleapis.com/auth/bigtable.admin.instance,https://www.googleapis.com/auth/cloud-bigtable.admin,https://www.googleapis.com/auth/cloud-bigtable.admin.cluster,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xbd\x01\n\x1c\x63om.google.bigtable.admin.v2B\x1a\x42igtableInstanceAdminProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2b\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, - google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.DESCRIPTOR, + google_dot_api_dot_client__pb2.DESCRIPTOR, + google_dot_api_dot_field__behavior__pb2.DESCRIPTOR, + google_dot_api_dot_resource__pb2.DESCRIPTOR, + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2.DESCRIPTOR, google_dot_iam_dot_v1_dot_iam__policy__pb2.DESCRIPTOR, google_dot_iam_dot_v1_dot_policy__pb2.DESCRIPTOR, google_dot_longrunning_dot_operations__pb2.DESCRIPTOR, @@ -58,6 +58,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="key", @@ -68,7 +69,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -76,6 +77,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -94,18 +96,19 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], - serialized_options=_b("8\001"), + serialized_options=b"8\001", is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=570, - serialized_end=652, + serialized_start=723, + serialized_end=805, ) _CREATEINSTANCEREQUEST = _descriptor.Descriptor( @@ -114,6 +117,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -124,14 +128,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="instance_id", @@ -142,14 +147,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="instance", @@ -166,8 +172,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="clusters", @@ -184,8 +191,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -196,8 +204,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=373, - serialized_end=652, + serialized_start=458, + serialized_end=805, ) @@ -207,6 +215,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -217,14 +226,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b'\340A\002\372A"\n bigtable.googleapis.com/Instance', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -235,8 +245,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=654, - serialized_end=688, + serialized_start=807, + serialized_end=883, ) @@ -246,6 +256,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -256,14 +267,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -274,7 +286,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -282,6 +294,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -292,8 +305,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=690, - serialized_end=748, + serialized_start=885, + serialized_end=996, ) @@ -303,6 +316,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="instances", @@ -321,6 +335,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="failed_locations", @@ -339,6 +354,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -349,7 +365,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -357,6 +373,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -367,8 +384,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=751, - serialized_end=880, + serialized_start=999, + serialized_end=1128, ) @@ -378,6 +395,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="instance", @@ -394,8 +412,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="update_mask", @@ -412,8 +431,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -424,8 +444,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=883, - serialized_end=1016, + serialized_start=1131, + serialized_end=1274, ) @@ -435,6 +455,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -445,14 +466,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b'\340A\002\372A"\n bigtable.googleapis.com/Instance', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -463,8 +485,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1018, - serialized_end=1055, + serialized_start=1276, + serialized_end=1355, ) @@ -474,6 +496,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -484,14 +507,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b'\340A\002\372A"\n bigtable.googleapis.com/Instance', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="cluster_id", @@ -502,14 +526,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="cluster", @@ -526,8 +551,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -538,8 +564,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1057, - serialized_end=1167, + serialized_start=1358, + serialized_end=1520, ) @@ -549,6 +575,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -559,14 +586,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002\372A!\n\037bigtable.googleapis.com/Cluster", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -577,8 +605,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1169, - serialized_end=1202, + serialized_start=1522, + serialized_end=1596, ) @@ -588,6 +616,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -598,14 +627,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b'\340A\002\372A"\n bigtable.googleapis.com/Instance', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -616,7 +646,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -624,6 +654,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -634,8 +665,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1204, - serialized_end=1261, + serialized_start=1598, + serialized_end=1697, ) @@ -645,6 +676,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="clusters", @@ -663,6 +695,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="failed_locations", @@ -681,6 +714,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -691,7 +725,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -699,6 +733,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -709,8 +744,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1263, - serialized_end=1389, + serialized_start=1699, + serialized_end=1825, ) @@ -720,6 +755,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -730,14 +766,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002\372A!\n\037bigtable.googleapis.com/Cluster", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -748,8 +785,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1391, - serialized_end=1427, + serialized_start=1827, + serialized_end=1904, ) @@ -759,6 +796,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="original_request", @@ -777,6 +815,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="request_time", @@ -795,6 +834,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="finish_time", @@ -813,6 +853,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -823,8 +864,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1430, - serialized_end=1628, + serialized_start=1907, + serialized_end=2105, ) @@ -834,6 +875,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="original_request", @@ -852,6 +894,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="request_time", @@ -870,6 +913,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="finish_time", @@ -888,6 +932,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -898,8 +943,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1631, - serialized_end=1836, + serialized_start=2108, + serialized_end=2313, ) @@ -909,6 +954,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="original_request", @@ -927,6 +973,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="request_time", @@ -945,6 +992,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="finish_time", @@ -963,6 +1011,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -973,8 +1022,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1839, - serialized_end=2035, + serialized_start=2316, + serialized_end=2512, ) @@ -984,6 +1033,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="original_request", @@ -1002,6 +1052,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="request_time", @@ -1020,6 +1071,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="finish_time", @@ -1038,6 +1090,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1048,8 +1101,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2038, - serialized_end=2221, + serialized_start=2515, + serialized_end=2698, ) @@ -1059,6 +1112,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -1069,14 +1123,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b'\340A\002\372A"\n bigtable.googleapis.com/Instance', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="app_profile_id", @@ -1087,14 +1142,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="app_profile", @@ -1111,8 +1167,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="ignore_warnings", @@ -1131,6 +1188,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1141,8 +1199,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2224, - serialized_end=2373, + serialized_start=2701, + serialized_end=2902, ) @@ -1152,6 +1210,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1162,14 +1221,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b'\340A\002\372A$\n"bigtable.googleapis.com/AppProfile', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1180,8 +1240,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2375, - serialized_end=2411, + serialized_start=2904, + serialized_end=2984, ) @@ -1191,6 +1251,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -1201,14 +1262,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b'\340A\002\372A"\n bigtable.googleapis.com/Instance', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -1227,6 +1289,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -1237,7 +1300,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1245,6 +1308,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1255,8 +1319,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2413, - serialized_end=2492, + serialized_start=2986, + serialized_end=3107, ) @@ -1266,6 +1330,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="app_profiles", @@ -1284,6 +1349,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -1294,7 +1360,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1302,6 +1368,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="failed_locations", @@ -1320,6 +1387,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1330,8 +1398,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2495, - serialized_end=2631, + serialized_start=3110, + serialized_end=3246, ) @@ -1341,6 +1409,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="app_profile", @@ -1357,8 +1426,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="update_mask", @@ -1375,8 +1445,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="ignore_warnings", @@ -1395,6 +1466,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1405,8 +1477,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2634, - serialized_end=2792, + serialized_start=3249, + serialized_end=3417, ) @@ -1416,6 +1488,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1426,14 +1499,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b'\340A\002\372A$\n"bigtable.googleapis.com/AppProfile', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="ignore_warnings", @@ -1452,6 +1526,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1462,8 +1537,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2794, - serialized_end=2858, + serialized_start=3419, + serialized_end=3527, ) @@ -1473,6 +1548,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], extensions=[], nested_types=[], @@ -1482,20 +1558,20 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2860, - serialized_end=2886, + serialized_start=3529, + serialized_end=3555, ) _CREATEINSTANCEREQUEST_CLUSTERSENTRY.fields_by_name[ "value" ].message_type = ( - google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._CLUSTER + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2._CLUSTER ) _CREATEINSTANCEREQUEST_CLUSTERSENTRY.containing_type = _CREATEINSTANCEREQUEST _CREATEINSTANCEREQUEST.fields_by_name[ "instance" ].message_type = ( - google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._INSTANCE + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2._INSTANCE ) _CREATEINSTANCEREQUEST.fields_by_name[ "clusters" @@ -1503,12 +1579,12 @@ _LISTINSTANCESRESPONSE.fields_by_name[ "instances" ].message_type = ( - google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._INSTANCE + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2._INSTANCE ) _PARTIALUPDATEINSTANCEREQUEST.fields_by_name[ "instance" ].message_type = ( - google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._INSTANCE + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2._INSTANCE ) _PARTIALUPDATEINSTANCEREQUEST.fields_by_name[ "update_mask" @@ -1516,12 +1592,12 @@ _CREATECLUSTERREQUEST.fields_by_name[ "cluster" ].message_type = ( - google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._CLUSTER + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2._CLUSTER ) _LISTCLUSTERSRESPONSE.fields_by_name[ "clusters" ].message_type = ( - google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._CLUSTER + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2._CLUSTER ) _CREATEINSTANCEMETADATA.fields_by_name[ "original_request" @@ -1553,7 +1629,7 @@ _UPDATECLUSTERMETADATA.fields_by_name[ "original_request" ].message_type = ( - google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._CLUSTER + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2._CLUSTER ) _UPDATECLUSTERMETADATA.fields_by_name[ "request_time" @@ -1564,17 +1640,17 @@ _CREATEAPPPROFILEREQUEST.fields_by_name[ "app_profile" ].message_type = ( - google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._APPPROFILE + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2._APPPROFILE ) _LISTAPPPROFILESRESPONSE.fields_by_name[ "app_profiles" ].message_type = ( - google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._APPPROFILE + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2._APPPROFILE ) _UPDATEAPPPROFILEREQUEST.fields_by_name[ "app_profile" ].message_type = ( - google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._APPPROFILE + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2._APPPROFILE ) _UPDATEAPPPROFILEREQUEST.fields_by_name[ "update_mask" @@ -1608,41 +1684,40 @@ CreateInstanceRequest = _reflection.GeneratedProtocolMessageType( "CreateInstanceRequest", (_message.Message,), - dict( - ClustersEntry=_reflection.GeneratedProtocolMessageType( + { + "ClustersEntry": _reflection.GeneratedProtocolMessageType( "ClustersEntry", (_message.Message,), - dict( - DESCRIPTOR=_CREATEINSTANCEREQUEST_CLUSTERSENTRY, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2" + { + "DESCRIPTOR": _CREATEINSTANCEREQUEST_CLUSTERSENTRY, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_instance_admin_pb2" # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateInstanceRequest.ClustersEntry) - ), + }, ), - DESCRIPTOR=_CREATEINSTANCEREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", - __doc__="""Request message for BigtableInstanceAdmin.CreateInstance. - - + "DESCRIPTOR": _CREATEINSTANCEREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_instance_admin_pb2", + "__doc__": """Request message for BigtableInstanceAdmin.CreateInstance. Attributes: parent: - The unique name of the project in which to create the new - instance. Values are of the form ``projects/``. + Required. The unique name of the project in which to create + the new instance. Values are of the form + ``projects/{project}``. instance_id: - The ID to be used when referring to the new instance within - its project, e.g., just ``myinstance`` rather than + Required. The ID to be used when referring to the new instance + within its project, e.g., just ``myinstance`` rather than ``projects/myproject/instances/myinstance``. instance: - The instance to create. Fields marked ``OutputOnly`` must be - left blank. + Required. The instance to create. Fields marked ``OutputOnly`` + must be left blank. clusters: - The clusters to be created within the instance, mapped by - desired cluster ID, e.g., just ``mycluster`` rather than ``pro - jects/myproject/instances/myinstance/clusters/mycluster``. - Fields marked ``OutputOnly`` must be left blank. Currently, at - most two clusters can be specified. + Required. The clusters to be created within the instance, + mapped by desired cluster ID, e.g., just ``mycluster`` rather + than ``projects/myproject/instances/myinstance/clusters/myclus + ter``. Fields marked ``OutputOnly`` must be left blank. + Currently, at most four clusters can be specified. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateInstanceRequest) - ), + }, ) _sym_db.RegisterMessage(CreateInstanceRequest) _sym_db.RegisterMessage(CreateInstanceRequest.ClustersEntry) @@ -1650,52 +1725,47 @@ GetInstanceRequest = _reflection.GeneratedProtocolMessageType( "GetInstanceRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETINSTANCEREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", - __doc__="""Request message for BigtableInstanceAdmin.GetInstance. - - + { + "DESCRIPTOR": _GETINSTANCEREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_instance_admin_pb2", + "__doc__": """Request message for BigtableInstanceAdmin.GetInstance. Attributes: name: - The unique name of the requested instance. Values are of the - form ``projects//instances/``. + Required. The unique name of the requested instance. Values + are of the form ``projects/{project}/instances/{instance}``. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GetInstanceRequest) - ), + }, ) _sym_db.RegisterMessage(GetInstanceRequest) ListInstancesRequest = _reflection.GeneratedProtocolMessageType( "ListInstancesRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTINSTANCESREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", - __doc__="""Request message for BigtableInstanceAdmin.ListInstances. - - + { + "DESCRIPTOR": _LISTINSTANCESREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_instance_admin_pb2", + "__doc__": """Request message for BigtableInstanceAdmin.ListInstances. Attributes: parent: - The unique name of the project for which a list of instances - is requested. Values are of the form ``projects/``. + Required. The unique name of the project for which a list of + instances is requested. Values are of the form + ``projects/{project}``. page_token: DEPRECATED: This field is unused and ignored. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListInstancesRequest) - ), + }, ) _sym_db.RegisterMessage(ListInstancesRequest) ListInstancesResponse = _reflection.GeneratedProtocolMessageType( "ListInstancesResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTINSTANCESRESPONSE, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", - __doc__="""Response message for BigtableInstanceAdmin.ListInstances. - - + { + "DESCRIPTOR": _LISTINSTANCESRESPONSE, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_instance_admin_pb2", + "__doc__": """Response message for BigtableInstanceAdmin.ListInstances. Attributes: instances: The list of requested instances. @@ -1711,131 +1781,120 @@ DEPRECATED: This field is unused and ignored. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListInstancesResponse) - ), + }, ) _sym_db.RegisterMessage(ListInstancesResponse) PartialUpdateInstanceRequest = _reflection.GeneratedProtocolMessageType( "PartialUpdateInstanceRequest", (_message.Message,), - dict( - DESCRIPTOR=_PARTIALUPDATEINSTANCEREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", - __doc__="""Request message for - BigtableInstanceAdmin.PartialUpdateInstance. - - + { + "DESCRIPTOR": _PARTIALUPDATEINSTANCEREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_instance_admin_pb2", + "__doc__": """Request message for BigtableInstanceAdmin.PartialUpdateInstance. Attributes: instance: - The Instance which will (partially) replace the current value. + Required. The Instance which will (partially) replace the + current value. update_mask: - The subset of Instance fields which should be replaced. Must - be explicitly set. + Required. The subset of Instance fields which should be + replaced. Must be explicitly set. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.PartialUpdateInstanceRequest) - ), + }, ) _sym_db.RegisterMessage(PartialUpdateInstanceRequest) DeleteInstanceRequest = _reflection.GeneratedProtocolMessageType( "DeleteInstanceRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETEINSTANCEREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", - __doc__="""Request message for BigtableInstanceAdmin.DeleteInstance. - - + { + "DESCRIPTOR": _DELETEINSTANCEREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_instance_admin_pb2", + "__doc__": """Request message for BigtableInstanceAdmin.DeleteInstance. Attributes: name: - The unique name of the instance to be deleted. Values are of - the form ``projects//instances/``. + Required. The unique name of the instance to be deleted. + Values are of the form + ``projects/{project}/instances/{instance}``. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.DeleteInstanceRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteInstanceRequest) CreateClusterRequest = _reflection.GeneratedProtocolMessageType( "CreateClusterRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATECLUSTERREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", - __doc__="""Request message for BigtableInstanceAdmin.CreateCluster. - - + { + "DESCRIPTOR": _CREATECLUSTERREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_instance_admin_pb2", + "__doc__": """Request message for BigtableInstanceAdmin.CreateCluster. Attributes: parent: - The unique name of the instance in which to create the new - cluster. Values are of the form - ``projects//instances/``. + Required. The unique name of the instance in which to create + the new cluster. Values are of the form + ``projects/{project}/instances/{instance}``. cluster_id: - The ID to be used when referring to the new cluster within its - instance, e.g., just ``mycluster`` rather than ``projects/mypr - oject/instances/myinstance/clusters/mycluster``. + Required. The ID to be used when referring to the new cluster + within its instance, e.g., just ``mycluster`` rather than ``pr + ojects/myproject/instances/myinstance/clusters/mycluster``. cluster: - The cluster to be created. Fields marked ``OutputOnly`` must - be left blank. + Required. The cluster to be created. Fields marked + ``OutputOnly`` must be left blank. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateClusterRequest) - ), + }, ) _sym_db.RegisterMessage(CreateClusterRequest) GetClusterRequest = _reflection.GeneratedProtocolMessageType( "GetClusterRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETCLUSTERREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", - __doc__="""Request message for BigtableInstanceAdmin.GetCluster. - - + { + "DESCRIPTOR": _GETCLUSTERREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_instance_admin_pb2", + "__doc__": """Request message for BigtableInstanceAdmin.GetCluster. Attributes: name: - The unique name of the requested cluster. Values are of the - form ``projects//instances//clusters/``. + Required. The unique name of the requested cluster. Values are + of the form ``projects/{project}/instances/{instance}/clusters + /{cluster}``. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GetClusterRequest) - ), + }, ) _sym_db.RegisterMessage(GetClusterRequest) ListClustersRequest = _reflection.GeneratedProtocolMessageType( "ListClustersRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTCLUSTERSREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", - __doc__="""Request message for BigtableInstanceAdmin.ListClusters. - - + { + "DESCRIPTOR": _LISTCLUSTERSREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_instance_admin_pb2", + "__doc__": """Request message for BigtableInstanceAdmin.ListClusters. Attributes: parent: - The unique name of the instance for which a list of clusters - is requested. Values are of the form - ``projects//instances/``. Use `` + Required. The unique name of the instance for which a list of + clusters is requested. Values are of the form + ``projects/{project}/instances/{instance}``. Use ``{instance} = '-'`` to list Clusters for all Instances in a project, e.g., ``projects/myproject/instances/-``. page_token: DEPRECATED: This field is unused and ignored. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListClustersRequest) - ), + }, ) _sym_db.RegisterMessage(ListClustersRequest) ListClustersResponse = _reflection.GeneratedProtocolMessageType( "ListClustersResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTCLUSTERSRESPONSE, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", - __doc__="""Response message for BigtableInstanceAdmin.ListClusters. - - + { + "DESCRIPTOR": _LISTCLUSTERSRESPONSE, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_instance_admin_pb2", + "__doc__": """Response message for BigtableInstanceAdmin.ListClusters. Attributes: clusters: The list of requested clusters. @@ -1850,39 +1909,35 @@ DEPRECATED: This field is unused and ignored. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListClustersResponse) - ), + }, ) _sym_db.RegisterMessage(ListClustersResponse) DeleteClusterRequest = _reflection.GeneratedProtocolMessageType( "DeleteClusterRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETECLUSTERREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", - __doc__="""Request message for BigtableInstanceAdmin.DeleteCluster. - - + { + "DESCRIPTOR": _DELETECLUSTERREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_instance_admin_pb2", + "__doc__": """Request message for BigtableInstanceAdmin.DeleteCluster. Attributes: name: - The unique name of the cluster to be deleted. Values are of - the form ``projects//instances//clusters/``. + Required. The unique name of the cluster to be deleted. Values + are of the form ``projects/{project}/instances/{instance}/clus + ters/{cluster}``. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.DeleteClusterRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteClusterRequest) CreateInstanceMetadata = _reflection.GeneratedProtocolMessageType( "CreateInstanceMetadata", (_message.Message,), - dict( - DESCRIPTOR=_CREATEINSTANCEMETADATA, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", - __doc__="""The metadata for the Operation returned by CreateInstance. - - + { + "DESCRIPTOR": _CREATEINSTANCEMETADATA, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_instance_admin_pb2", + "__doc__": """The metadata for the Operation returned by CreateInstance. Attributes: original_request: The request that prompted the initiation of this @@ -1894,19 +1949,17 @@ successfully. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateInstanceMetadata) - ), + }, ) _sym_db.RegisterMessage(CreateInstanceMetadata) UpdateInstanceMetadata = _reflection.GeneratedProtocolMessageType( "UpdateInstanceMetadata", (_message.Message,), - dict( - DESCRIPTOR=_UPDATEINSTANCEMETADATA, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", - __doc__="""The metadata for the Operation returned by UpdateInstance. - - + { + "DESCRIPTOR": _UPDATEINSTANCEMETADATA, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_instance_admin_pb2", + "__doc__": """The metadata for the Operation returned by UpdateInstance. Attributes: original_request: The request that prompted the initiation of this @@ -1918,19 +1971,17 @@ successfully. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.UpdateInstanceMetadata) - ), + }, ) _sym_db.RegisterMessage(UpdateInstanceMetadata) CreateClusterMetadata = _reflection.GeneratedProtocolMessageType( "CreateClusterMetadata", (_message.Message,), - dict( - DESCRIPTOR=_CREATECLUSTERMETADATA, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", - __doc__="""The metadata for the Operation returned by CreateCluster. - - + { + "DESCRIPTOR": _CREATECLUSTERMETADATA, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_instance_admin_pb2", + "__doc__": """The metadata for the Operation returned by CreateCluster. Attributes: original_request: The request that prompted the initiation of this CreateCluster @@ -1942,19 +1993,17 @@ successfully. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateClusterMetadata) - ), + }, ) _sym_db.RegisterMessage(CreateClusterMetadata) UpdateClusterMetadata = _reflection.GeneratedProtocolMessageType( "UpdateClusterMetadata", (_message.Message,), - dict( - DESCRIPTOR=_UPDATECLUSTERMETADATA, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", - __doc__="""The metadata for the Operation returned by UpdateCluster. - - + { + "DESCRIPTOR": _UPDATECLUSTERMETADATA, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_instance_admin_pb2", + "__doc__": """The metadata for the Operation returned by UpdateCluster. Attributes: original_request: The request that prompted the initiation of this UpdateCluster @@ -1966,97 +2015,93 @@ successfully. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.UpdateClusterMetadata) - ), + }, ) _sym_db.RegisterMessage(UpdateClusterMetadata) CreateAppProfileRequest = _reflection.GeneratedProtocolMessageType( "CreateAppProfileRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATEAPPPROFILEREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", - __doc__="""Request message for - BigtableInstanceAdmin.CreateAppProfile. - - + { + "DESCRIPTOR": _CREATEAPPPROFILEREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_instance_admin_pb2", + "__doc__": """Request message for BigtableInstanceAdmin.CreateAppProfile. Attributes: parent: - The unique name of the instance in which to create the new app - profile. Values are of the form - ``projects//instances/``. + Required. The unique name of the instance in which to create + the new app profile. Values are of the form + ``projects/{project}/instances/{instance}``. app_profile_id: - The ID to be used when referring to the new app profile within - its instance, e.g., just ``myprofile`` rather than ``projects/ - myproject/instances/myinstance/appProfiles/myprofile``. + Required. The ID to be used when referring to the new app + profile within its instance, e.g., just ``myprofile`` rather + than ``projects/myproject/instances/myinstance/appProfiles/myp + rofile``. app_profile: - The app profile to be created. Fields marked ``OutputOnly`` - will be ignored. + Required. The app profile to be created. Fields marked + ``OutputOnly`` will be ignored. ignore_warnings: If true, ignore safety checks when creating the app profile. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateAppProfileRequest) - ), + }, ) _sym_db.RegisterMessage(CreateAppProfileRequest) GetAppProfileRequest = _reflection.GeneratedProtocolMessageType( "GetAppProfileRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETAPPPROFILEREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", - __doc__="""Request message for BigtableInstanceAdmin.GetAppProfile. - - + { + "DESCRIPTOR": _GETAPPPROFILEREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_instance_admin_pb2", + "__doc__": """Request message for BigtableInstanceAdmin.GetAppProfile. Attributes: name: - The unique name of the requested app profile. Values are of - the form ``projects//instances//appProfiles - /``. + Required. The unique name of the requested app profile. Values + are of the form ``projects/{project}/instances/{instance}/appP + rofiles/{app_profile}``. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GetAppProfileRequest) - ), + }, ) _sym_db.RegisterMessage(GetAppProfileRequest) ListAppProfilesRequest = _reflection.GeneratedProtocolMessageType( "ListAppProfilesRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTAPPPROFILESREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", - __doc__="""Request message for BigtableInstanceAdmin.ListAppProfiles. - - + { + "DESCRIPTOR": _LISTAPPPROFILESREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_instance_admin_pb2", + "__doc__": """Request message for BigtableInstanceAdmin.ListAppProfiles. Attributes: parent: - The unique name of the instance for which a list of app - profiles is requested. Values are of the form - ``projects//instances/``. Use `` + Required. The unique name of the instance for which a list of + app profiles is requested. Values are of the form + ``projects/{project}/instances/{instance}``. Use ``{instance} = '-'`` to list AppProfiles for all Instances in a project, e.g., ``projects/myproject/instances/-``. page_size: - Maximum number of results per page. CURRENTLY UNIMPLEMENTED - AND IGNORED. + Maximum number of results per page. A page_size of zero lets + the server choose the number of items to return. A page_size + which is strictly positive will return at most that many + items. A negative page_size will cause an error. Following + the first request, subsequent paginated calls are not required + to pass a page_size. If a page_size is set in subsequent + calls, it must match the page_size given in the first request. page_token: The value of ``next_page_token`` returned by a previous call. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListAppProfilesRequest) - ), + }, ) _sym_db.RegisterMessage(ListAppProfilesRequest) ListAppProfilesResponse = _reflection.GeneratedProtocolMessageType( "ListAppProfilesResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTAPPPROFILESRESPONSE, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", - __doc__="""Response message for - BigtableInstanceAdmin.ListAppProfiles. - - + { + "DESCRIPTOR": _LISTAPPPROFILESRESPONSE, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_instance_admin_pb2", + "__doc__": """Response message for BigtableInstanceAdmin.ListAppProfiles. Attributes: app_profiles: The list of requested app profiles. @@ -2072,85 +2117,100 @@ ``projects//locations/`` """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListAppProfilesResponse) - ), + }, ) _sym_db.RegisterMessage(ListAppProfilesResponse) UpdateAppProfileRequest = _reflection.GeneratedProtocolMessageType( "UpdateAppProfileRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATEAPPPROFILEREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", - __doc__="""Request message for - BigtableInstanceAdmin.UpdateAppProfile. - - + { + "DESCRIPTOR": _UPDATEAPPPROFILEREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_instance_admin_pb2", + "__doc__": """Request message for BigtableInstanceAdmin.UpdateAppProfile. Attributes: app_profile: - The app profile which will (partially) replace the current - value. + Required. The app profile which will (partially) replace the + current value. update_mask: - The subset of app profile fields which should be replaced. If - unset, all fields will be replaced. + Required. The subset of app profile fields which should be + replaced. If unset, all fields will be replaced. ignore_warnings: If true, ignore safety checks when updating the app profile. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.UpdateAppProfileRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateAppProfileRequest) DeleteAppProfileRequest = _reflection.GeneratedProtocolMessageType( "DeleteAppProfileRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETEAPPPROFILEREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", - __doc__="""Request message for - BigtableInstanceAdmin.DeleteAppProfile. - - + { + "DESCRIPTOR": _DELETEAPPPROFILEREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_instance_admin_pb2", + "__doc__": """Request message for BigtableInstanceAdmin.DeleteAppProfile. Attributes: name: - The unique name of the app profile to be deleted. Values are - of the form ``projects//instances//appProfi - les/``. + Required. The unique name of the app profile to be deleted. + Values are of the form ``projects/{project}/instances/{instanc + e}/appProfiles/{app_profile}``. ignore_warnings: If true, ignore safety checks when deleting the app profile. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.DeleteAppProfileRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteAppProfileRequest) UpdateAppProfileMetadata = _reflection.GeneratedProtocolMessageType( "UpdateAppProfileMetadata", (_message.Message,), - dict( - DESCRIPTOR=_UPDATEAPPPROFILEMETADATA, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_instance_admin_pb2", - __doc__="""The metadata for the Operation returned by - UpdateAppProfile. - - """, + { + "DESCRIPTOR": _UPDATEAPPPROFILEMETADATA, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_instance_admin_pb2", + "__doc__": """The metadata for the Operation returned by UpdateAppProfile.""", # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.UpdateAppProfileMetadata) - ), + }, ) _sym_db.RegisterMessage(UpdateAppProfileMetadata) DESCRIPTOR._options = None _CREATEINSTANCEREQUEST_CLUSTERSENTRY._options = None +_CREATEINSTANCEREQUEST.fields_by_name["parent"]._options = None +_CREATEINSTANCEREQUEST.fields_by_name["instance_id"]._options = None +_CREATEINSTANCEREQUEST.fields_by_name["instance"]._options = None +_CREATEINSTANCEREQUEST.fields_by_name["clusters"]._options = None +_GETINSTANCEREQUEST.fields_by_name["name"]._options = None +_LISTINSTANCESREQUEST.fields_by_name["parent"]._options = None +_PARTIALUPDATEINSTANCEREQUEST.fields_by_name["instance"]._options = None +_PARTIALUPDATEINSTANCEREQUEST.fields_by_name["update_mask"]._options = None +_DELETEINSTANCEREQUEST.fields_by_name["name"]._options = None +_CREATECLUSTERREQUEST.fields_by_name["parent"]._options = None +_CREATECLUSTERREQUEST.fields_by_name["cluster_id"]._options = None +_CREATECLUSTERREQUEST.fields_by_name["cluster"]._options = None +_GETCLUSTERREQUEST.fields_by_name["name"]._options = None +_LISTCLUSTERSREQUEST.fields_by_name["parent"]._options = None +_DELETECLUSTERREQUEST.fields_by_name["name"]._options = None +_CREATEAPPPROFILEREQUEST.fields_by_name["parent"]._options = None +_CREATEAPPPROFILEREQUEST.fields_by_name["app_profile_id"]._options = None +_CREATEAPPPROFILEREQUEST.fields_by_name["app_profile"]._options = None +_GETAPPPROFILEREQUEST.fields_by_name["name"]._options = None +_LISTAPPPROFILESREQUEST.fields_by_name["parent"]._options = None +_UPDATEAPPPROFILEREQUEST.fields_by_name["app_profile"]._options = None +_UPDATEAPPPROFILEREQUEST.fields_by_name["update_mask"]._options = None +_DELETEAPPPROFILEREQUEST.fields_by_name["name"]._options = None _BIGTABLEINSTANCEADMIN = _descriptor.ServiceDescriptor( name="BigtableInstanceAdmin", full_name="google.bigtable.admin.v2.BigtableInstanceAdmin", file=DESCRIPTOR, index=0, - serialized_options=None, - serialized_start=2889, - serialized_end=5875, + serialized_options=b"\312A\034bigtableadmin.googleapis.com\322A\367\002https://www.googleapis.com/auth/bigtable.admin,https://www.googleapis.com/auth/bigtable.admin.cluster,https://www.googleapis.com/auth/bigtable.admin.instance,https://www.googleapis.com/auth/cloud-bigtable.admin,https://www.googleapis.com/auth/cloud-bigtable.admin.cluster,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only", + create_key=_descriptor._internal_create_key, + serialized_start=3558, + serialized_end=7416, methods=[ _descriptor.MethodDescriptor( name="CreateInstance", @@ -2159,9 +2219,8 @@ containing_service=None, input_type=_CREATEINSTANCEREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\002&"!/v2/{parent=projects/*}/instances:\001*' - ), + serialized_options=b'\202\323\344\223\002&"!/v2/{parent=projects/*}/instances:\001*\332A$parent,instance_id,instance,clusters\312A"\n\010Instance\022\026CreateInstanceMetadata', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetInstance", @@ -2169,10 +2228,9 @@ index=1, containing_service=None, input_type=_GETINSTANCEREQUEST, - output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._INSTANCE, - serialized_options=_b( - "\202\323\344\223\002#\022!/v2/{name=projects/*/instances/*}" - ), + output_type=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2._INSTANCE, + serialized_options=b"\202\323\344\223\002#\022!/v2/{name=projects/*/instances/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListInstances", @@ -2181,20 +2239,18 @@ containing_service=None, input_type=_LISTINSTANCESREQUEST, output_type=_LISTINSTANCESRESPONSE, - serialized_options=_b( - "\202\323\344\223\002#\022!/v2/{parent=projects/*}/instances" - ), + serialized_options=b"\202\323\344\223\002#\022!/v2/{parent=projects/*}/instances\332A\006parent", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="UpdateInstance", full_name="google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateInstance", index=3, containing_service=None, - input_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._INSTANCE, - output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._INSTANCE, - serialized_options=_b( - "\202\323\344\223\002&\032!/v2/{name=projects/*/instances/*}:\001*" - ), + input_type=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2._INSTANCE, + output_type=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2._INSTANCE, + serialized_options=b"\202\323\344\223\002&\032!/v2/{name=projects/*/instances/*}:\001*", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="PartialUpdateInstance", @@ -2203,9 +2259,8 @@ containing_service=None, input_type=_PARTIALUPDATEINSTANCEREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - "\202\323\344\223\00262*/v2/{instance.name=projects/*/instances/*}:\010instance" - ), + serialized_options=b'\202\323\344\223\00262*/v2/{instance.name=projects/*/instances/*}:\010instance\332A\024instance,update_mask\312A"\n\010Instance\022\026UpdateInstanceMetadata', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteInstance", @@ -2214,9 +2269,8 @@ containing_service=None, input_type=_DELETEINSTANCEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002#*!/v2/{name=projects/*/instances/*}" - ), + serialized_options=b"\202\323\344\223\002#*!/v2/{name=projects/*/instances/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="CreateCluster", @@ -2225,9 +2279,8 @@ containing_service=None, input_type=_CREATECLUSTERREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\0027",/v2/{parent=projects/*/instances/*}/clusters:\007cluster' - ), + serialized_options=b'\202\323\344\223\0027",/v2/{parent=projects/*/instances/*}/clusters:\007cluster\332A\031parent,cluster_id,cluster\312A \n\007Cluster\022\025CreateClusterMetadata', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetCluster", @@ -2235,10 +2288,9 @@ index=7, containing_service=None, input_type=_GETCLUSTERREQUEST, - output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._CLUSTER, - serialized_options=_b( - "\202\323\344\223\002.\022,/v2/{name=projects/*/instances/*/clusters/*}" - ), + output_type=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2._CLUSTER, + serialized_options=b"\202\323\344\223\002.\022,/v2/{name=projects/*/instances/*/clusters/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListClusters", @@ -2247,20 +2299,18 @@ containing_service=None, input_type=_LISTCLUSTERSREQUEST, output_type=_LISTCLUSTERSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002.\022,/v2/{parent=projects/*/instances/*}/clusters" - ), + serialized_options=b"\202\323\344\223\002.\022,/v2/{parent=projects/*/instances/*}/clusters\332A\006parent", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="UpdateCluster", full_name="google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateCluster", index=9, containing_service=None, - input_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._CLUSTER, + input_type=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2._CLUSTER, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - "\202\323\344\223\0021\032,/v2/{name=projects/*/instances/*/clusters/*}:\001*" - ), + serialized_options=b"\202\323\344\223\0021\032,/v2/{name=projects/*/instances/*/clusters/*}:\001*\312A \n\007Cluster\022\025UpdateClusterMetadata", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteCluster", @@ -2269,9 +2319,8 @@ containing_service=None, input_type=_DELETECLUSTERREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002.*,/v2/{name=projects/*/instances/*/clusters/*}" - ), + serialized_options=b"\202\323\344\223\002.*,/v2/{name=projects/*/instances/*/clusters/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="CreateAppProfile", @@ -2279,10 +2328,9 @@ index=11, containing_service=None, input_type=_CREATEAPPPROFILEREQUEST, - output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._APPPROFILE, - serialized_options=_b( - '\202\323\344\223\002>"//v2/{parent=projects/*/instances/*}/appProfiles:\013app_profile' - ), + output_type=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2._APPPROFILE, + serialized_options=b'\202\323\344\223\002>"//v2/{parent=projects/*/instances/*}/appProfiles:\013app_profile\332A!parent,app_profile_id,app_profile', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetAppProfile", @@ -2290,10 +2338,9 @@ index=12, containing_service=None, input_type=_GETAPPPROFILEREQUEST, - output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2._APPPROFILE, - serialized_options=_b( - "\202\323\344\223\0021\022//v2/{name=projects/*/instances/*/appProfiles/*}" - ), + output_type=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2._APPPROFILE, + serialized_options=b"\202\323\344\223\0021\022//v2/{name=projects/*/instances/*/appProfiles/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListAppProfiles", @@ -2302,9 +2349,8 @@ containing_service=None, input_type=_LISTAPPPROFILESREQUEST, output_type=_LISTAPPPROFILESRESPONSE, - serialized_options=_b( - "\202\323\344\223\0021\022//v2/{parent=projects/*/instances/*}/appProfiles" - ), + serialized_options=b"\202\323\344\223\0021\022//v2/{parent=projects/*/instances/*}/appProfiles\332A\006parent", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="UpdateAppProfile", @@ -2313,9 +2359,8 @@ containing_service=None, input_type=_UPDATEAPPPROFILEREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - "\202\323\344\223\002J2;/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}:\013app_profile" - ), + serialized_options=b"\202\323\344\223\002J2;/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}:\013app_profile\332A\027app_profile,update_mask\312A&\n\nAppProfile\022\030UpdateAppProfileMetadata", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteAppProfile", @@ -2324,9 +2369,8 @@ containing_service=None, input_type=_DELETEAPPPROFILEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\0021*//v2/{name=projects/*/instances/*/appProfiles/*}" - ), + serialized_options=b"\202\323\344\223\0021*//v2/{name=projects/*/instances/*/appProfiles/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetIamPolicy", @@ -2335,9 +2379,8 @@ containing_service=None, input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._GETIAMPOLICYREQUEST, output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, - serialized_options=_b( - '\202\323\344\223\0027"2/v2/{resource=projects/*/instances/*}:getIamPolicy:\001*' - ), + serialized_options=b'\202\323\344\223\0027"2/v2/{resource=projects/*/instances/*}:getIamPolicy:\001*\332A\010resource', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="SetIamPolicy", @@ -2346,9 +2389,8 @@ containing_service=None, input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._SETIAMPOLICYREQUEST, output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, - serialized_options=_b( - '\202\323\344\223\0027"2/v2/{resource=projects/*/instances/*}:setIamPolicy:\001*' - ), + serialized_options=b'\202\323\344\223\0027"2/v2/{resource=projects/*/instances/*}:setIamPolicy:\001*\332A\017resource,policy', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="TestIamPermissions", @@ -2357,9 +2399,8 @@ containing_service=None, input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSREQUEST, output_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSRESPONSE, - serialized_options=_b( - '\202\323\344\223\002="8/v2/{resource=projects/*/instances/*}:testIamPermissions:\001*' - ), + serialized_options=b'\202\323\344\223\002="8/v2/{resource=projects/*/instances/*}:testIamPermissions:\001*\332A\024resource,permissions', + create_key=_descriptor._internal_create_key, ), ], ) diff --git a/google/cloud/bigtable_admin_v2/proto/bigtable_instance_admin_pb2_grpc.py b/google/cloud/bigtable_admin_v2/proto/bigtable_instance_admin_pb2_grpc.py index 0ca0445e2..0580b1871 100644 --- a/google/cloud/bigtable_admin_v2/proto/bigtable_instance_admin_pb2_grpc.py +++ b/google/cloud/bigtable_admin_v2/proto/bigtable_instance_admin_pb2_grpc.py @@ -2,10 +2,10 @@ import grpc from google.cloud.bigtable_admin_v2.proto import ( - bigtable_instance_admin_pb2 as google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2, + bigtable_instance_admin_pb2 as google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2, ) from google.cloud.bigtable_admin_v2.proto import ( - instance_pb2 as google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2, + instance_pb2 as google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2, ) from google.iam.v1 import iam_policy_pb2 as google_dot_iam_dot_v1_dot_iam__policy__pb2 from google.iam.v1 import policy_pb2 as google_dot_iam_dot_v1_dot_policy__pb2 @@ -29,82 +29,82 @@ def __init__(self, channel): """ self.CreateInstance = channel.unary_unary( "/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateInstance", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.CreateInstanceRequest.SerializeToString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.CreateInstanceRequest.SerializeToString, response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) self.GetInstance = channel.unary_unary( "/google.bigtable.admin.v2.BigtableInstanceAdmin/GetInstance", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.GetInstanceRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Instance.FromString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.GetInstanceRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2.Instance.FromString, ) self.ListInstances = channel.unary_unary( "/google.bigtable.admin.v2.BigtableInstanceAdmin/ListInstances", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListInstancesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListInstancesResponse.FromString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListInstancesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListInstancesResponse.FromString, ) self.UpdateInstance = channel.unary_unary( "/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateInstance", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Instance.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Instance.FromString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2.Instance.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2.Instance.FromString, ) self.PartialUpdateInstance = channel.unary_unary( "/google.bigtable.admin.v2.BigtableInstanceAdmin/PartialUpdateInstance", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.PartialUpdateInstanceRequest.SerializeToString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.PartialUpdateInstanceRequest.SerializeToString, response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) self.DeleteInstance = channel.unary_unary( "/google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteInstance", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.DeleteInstanceRequest.SerializeToString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.DeleteInstanceRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) self.CreateCluster = channel.unary_unary( "/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateCluster", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.CreateClusterRequest.SerializeToString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.CreateClusterRequest.SerializeToString, response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) self.GetCluster = channel.unary_unary( "/google.bigtable.admin.v2.BigtableInstanceAdmin/GetCluster", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.GetClusterRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Cluster.FromString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.GetClusterRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2.Cluster.FromString, ) self.ListClusters = channel.unary_unary( "/google.bigtable.admin.v2.BigtableInstanceAdmin/ListClusters", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListClustersRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListClustersResponse.FromString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListClustersRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListClustersResponse.FromString, ) self.UpdateCluster = channel.unary_unary( "/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateCluster", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Cluster.SerializeToString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2.Cluster.SerializeToString, response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) self.DeleteCluster = channel.unary_unary( "/google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteCluster", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.DeleteClusterRequest.SerializeToString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.DeleteClusterRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) self.CreateAppProfile = channel.unary_unary( "/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateAppProfile", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.CreateAppProfileRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.AppProfile.FromString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.CreateAppProfileRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2.AppProfile.FromString, ) self.GetAppProfile = channel.unary_unary( "/google.bigtable.admin.v2.BigtableInstanceAdmin/GetAppProfile", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.GetAppProfileRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.AppProfile.FromString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.GetAppProfileRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2.AppProfile.FromString, ) self.ListAppProfiles = channel.unary_unary( "/google.bigtable.admin.v2.BigtableInstanceAdmin/ListAppProfiles", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListAppProfilesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListAppProfilesResponse.FromString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListAppProfilesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListAppProfilesResponse.FromString, ) self.UpdateAppProfile = channel.unary_unary( "/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateAppProfile", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.UpdateAppProfileRequest.SerializeToString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.UpdateAppProfileRequest.SerializeToString, response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) self.DeleteAppProfile = channel.unary_unary( "/google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteAppProfile", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.DeleteAppProfileRequest.SerializeToString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.DeleteAppProfileRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) self.GetIamPolicy = channel.unary_unary( @@ -152,14 +152,17 @@ def ListInstances(self, request, context): raise NotImplementedError("Method not implemented!") def UpdateInstance(self, request, context): - """Updates an instance within a project. + """Updates an instance within a project. This method updates only the display + name and type for an Instance. To update other Instance properties, such as + labels, use PartialUpdateInstance. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def PartialUpdateInstance(self, request, context): - """Partially updates an instance within a project. + """Partially updates an instance within a project. This method can modify all + fields of an Instance and is the preferred way to update an Instance. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") @@ -270,82 +273,82 @@ def add_BigtableInstanceAdminServicer_to_server(servicer, server): rpc_method_handlers = { "CreateInstance": grpc.unary_unary_rpc_method_handler( servicer.CreateInstance, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.CreateInstanceRequest.FromString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.CreateInstanceRequest.FromString, response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, ), "GetInstance": grpc.unary_unary_rpc_method_handler( servicer.GetInstance, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.GetInstanceRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Instance.SerializeToString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.GetInstanceRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2.Instance.SerializeToString, ), "ListInstances": grpc.unary_unary_rpc_method_handler( servicer.ListInstances, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListInstancesRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListInstancesResponse.SerializeToString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListInstancesRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListInstancesResponse.SerializeToString, ), "UpdateInstance": grpc.unary_unary_rpc_method_handler( servicer.UpdateInstance, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Instance.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Instance.SerializeToString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2.Instance.FromString, + response_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2.Instance.SerializeToString, ), "PartialUpdateInstance": grpc.unary_unary_rpc_method_handler( servicer.PartialUpdateInstance, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.PartialUpdateInstanceRequest.FromString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.PartialUpdateInstanceRequest.FromString, response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, ), "DeleteInstance": grpc.unary_unary_rpc_method_handler( servicer.DeleteInstance, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.DeleteInstanceRequest.FromString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.DeleteInstanceRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), "CreateCluster": grpc.unary_unary_rpc_method_handler( servicer.CreateCluster, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.CreateClusterRequest.FromString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.CreateClusterRequest.FromString, response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, ), "GetCluster": grpc.unary_unary_rpc_method_handler( servicer.GetCluster, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.GetClusterRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Cluster.SerializeToString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.GetClusterRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2.Cluster.SerializeToString, ), "ListClusters": grpc.unary_unary_rpc_method_handler( servicer.ListClusters, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListClustersRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListClustersResponse.SerializeToString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListClustersRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListClustersResponse.SerializeToString, ), "UpdateCluster": grpc.unary_unary_rpc_method_handler( servicer.UpdateCluster, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.Cluster.FromString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2.Cluster.FromString, response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, ), "DeleteCluster": grpc.unary_unary_rpc_method_handler( servicer.DeleteCluster, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.DeleteClusterRequest.FromString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.DeleteClusterRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), "CreateAppProfile": grpc.unary_unary_rpc_method_handler( servicer.CreateAppProfile, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.CreateAppProfileRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.AppProfile.SerializeToString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.CreateAppProfileRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2.AppProfile.SerializeToString, ), "GetAppProfile": grpc.unary_unary_rpc_method_handler( servicer.GetAppProfile, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.GetAppProfileRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_instance__pb2.AppProfile.SerializeToString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.GetAppProfileRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_instance__pb2.AppProfile.SerializeToString, ), "ListAppProfiles": grpc.unary_unary_rpc_method_handler( servicer.ListAppProfiles, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListAppProfilesRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListAppProfilesResponse.SerializeToString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListAppProfilesRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.ListAppProfilesResponse.SerializeToString, ), "UpdateAppProfile": grpc.unary_unary_rpc_method_handler( servicer.UpdateAppProfile, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.UpdateAppProfileRequest.FromString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.UpdateAppProfileRequest.FromString, response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, ), "DeleteAppProfile": grpc.unary_unary_rpc_method_handler( servicer.DeleteAppProfile, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.DeleteAppProfileRequest.FromString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__instance__admin__pb2.DeleteAppProfileRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), "GetIamPolicy": grpc.unary_unary_rpc_method_handler( diff --git a/google/cloud/bigtable_admin_v2/proto/bigtable_table_admin.proto b/google/cloud/bigtable_admin_v2/proto/bigtable_table_admin.proto index 812022295..119ef73a4 100644 --- a/google/cloud/bigtable_admin_v2/proto/bigtable_table_admin.proto +++ b/google/cloud/bigtable_admin_v2/proto/bigtable_table_admin.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,19 +11,23 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// syntax = "proto3"; package google.bigtable.admin.v2; import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/bigtable/admin/v2/common.proto"; import "google/bigtable/admin/v2/table.proto"; import "google/iam/v1/iam_policy.proto"; import "google/iam/v1/policy.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Bigtable.Admin.V2"; @@ -39,6 +43,15 @@ option php_namespace = "Google\\Cloud\\Bigtable\\Admin\\V2"; // Provides access to the table schemas only, not the data stored within // the tables. service BigtableTableAdmin { + option (google.api.default_host) = "bigtableadmin.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/bigtable.admin," + "https://www.googleapis.com/auth/bigtable.admin.table," + "https://www.googleapis.com/auth/cloud-bigtable.admin," + "https://www.googleapis.com/auth/cloud-bigtable.admin.table," + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/cloud-platform.read-only"; + // Creates a new table in the specified instance. // The table can be created with a full set of initial column families, // specified in the request. @@ -47,6 +60,7 @@ service BigtableTableAdmin { post: "/v2/{parent=projects/*/instances/*}/tables" body: "*" }; + option (google.api.method_signature) = "parent,table_id,table"; } // Creates a new table from the specified snapshot. The target table must @@ -63,6 +77,11 @@ service BigtableTableAdmin { post: "/v2/{parent=projects/*/instances/*}/tables:createFromSnapshot" body: "*" }; + option (google.api.method_signature) = "parent,table_id,source_snapshot"; + option (google.longrunning.operation_info) = { + response_type: "Table" + metadata_type: "CreateTableFromSnapshotMetadata" + }; } // Lists all tables served from a specified instance. @@ -70,6 +89,7 @@ service BigtableTableAdmin { option (google.api.http) = { get: "/v2/{parent=projects/*/instances/*}/tables" }; + option (google.api.method_signature) = "parent"; } // Gets metadata information about the specified table. @@ -77,6 +97,7 @@ service BigtableTableAdmin { option (google.api.http) = { get: "/v2/{name=projects/*/instances/*/tables/*}" }; + option (google.api.method_signature) = "name"; } // Permanently deletes a specified table and all of its data. @@ -84,6 +105,7 @@ service BigtableTableAdmin { option (google.api.http) = { delete: "/v2/{name=projects/*/instances/*/tables/*}" }; + option (google.api.method_signature) = "name"; } // Performs a series of column family modifications on the specified table. @@ -95,6 +117,7 @@ service BigtableTableAdmin { post: "/v2/{name=projects/*/instances/*/tables/*}:modifyColumnFamilies" body: "*" }; + option (google.api.method_signature) = "name,modifications"; } // Permanently drop/delete a row range from a specified table. The request can @@ -117,6 +140,7 @@ service BigtableTableAdmin { post: "/v2/{name=projects/*/instances/*/tables/*}:generateConsistencyToken" body: "*" }; + option (google.api.method_signature) = "name"; } // Checks replication consistency based on a consistency token, that is, if @@ -128,6 +152,7 @@ service BigtableTableAdmin { post: "/v2/{name=projects/*/instances/*/tables/*}:checkConsistency" body: "*" }; + option (google.api.method_signature) = "name,consistency_token"; } // Creates a new snapshot in the specified cluster from the specified @@ -144,6 +169,12 @@ service BigtableTableAdmin { post: "/v2/{name=projects/*/instances/*/tables/*}:snapshot" body: "*" }; + option (google.api.method_signature) = + "name,cluster,snapshot_id,description"; + option (google.longrunning.operation_info) = { + response_type: "Snapshot" + metadata_type: "SnapshotTableMetadata" + }; } // Gets metadata information about the specified snapshot. @@ -157,6 +188,7 @@ service BigtableTableAdmin { option (google.api.http) = { get: "/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}" }; + option (google.api.method_signature) = "name"; } // Lists all snapshots associated with the specified cluster. @@ -170,6 +202,7 @@ service BigtableTableAdmin { option (google.api.http) = { get: "/v2/{parent=projects/*/instances/*/clusters/*}/snapshots" }; + option (google.api.method_signature) = "parent"; } // Permanently deletes the specified snapshot. @@ -183,32 +216,121 @@ service BigtableTableAdmin { option (google.api.http) = { delete: "/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}" }; + option (google.api.method_signature) = "name"; + } + + // Starts creating a new Cloud Bigtable Backup. The returned backup + // [long-running operation][google.longrunning.Operation] can be used to + // track creation of the backup. The + // [metadata][google.longrunning.Operation.metadata] field type is + // [CreateBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata]. The + // [response][google.longrunning.Operation.response] field type is + // [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the + // returned operation will stop the creation and delete the backup. + rpc CreateBackup(CreateBackupRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{parent=projects/*/instances/*/clusters/*}/backups" + body: "backup" + }; + option (google.longrunning.operation_info) = { + response_type: "Backup" + metadata_type: "CreateBackupMetadata" + }; + option (google.api.method_signature) = "parent,backup_id,backup"; + } + + // Gets metadata on a pending or completed Cloud Bigtable Backup. + rpc GetBackup(GetBackupRequest) returns (Backup) { + option (google.api.http) = { + get: "/v2/{name=projects/*/instances/*/clusters/*/backups/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a pending or completed Cloud Bigtable Backup. + rpc UpdateBackup(UpdateBackupRequest) returns (Backup) { + option (google.api.http) = { + patch: "/v2/{backup.name=projects/*/instances/*/clusters/*/backups/*}" + body: "backup" + }; + option (google.api.method_signature) = "backup,update_mask"; + } + + // Deletes a pending or completed Cloud Bigtable backup. + rpc DeleteBackup(DeleteBackupRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v2/{name=projects/*/instances/*/clusters/*/backups/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Cloud Bigtable backups. Returns both completed and pending + // backups. + rpc ListBackups(ListBackupsRequest) returns (ListBackupsResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/instances/*/clusters/*}/backups" + }; + option (google.api.method_signature) = "parent"; + } + + // Create a new table by restoring from a completed backup. The new table + // must be in the same instance as the instance containing the backup. The + // returned table [long-running operation][google.longrunning.Operation] can + // be used to track the progress of the operation, and to cancel it. The + // [metadata][google.longrunning.Operation.metadata] field type is + // [RestoreTableMetadata][google.bigtable.admin.RestoreTableMetadata]. The + // [response][google.longrunning.Operation.response] type is + // [Table][google.bigtable.admin.v2.Table], if successful. + rpc RestoreTable(RestoreTableRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{parent=projects/*/instances/*}/tables:restore" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "Table" + metadata_type: "RestoreTableMetadata" + }; } - // Gets the access control policy for a table resource. Returns an empty - // policy if an table exists but does not have a policy set. - rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) { + // Gets the access control policy for a resource. + // Returns an empty policy if the resource exists but does not have a policy + // set. + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) + returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v2/{resource=projects/*/instances/*/tables/*}:getIamPolicy" body: "*" }; + option (google.api.method_signature) = "resource"; } - // Sets the access control policy on a table resource. Replaces any existing - // policy. - rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { + // Sets the access control policy on a Table or Backup resource. + // Replaces any existing policy. + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) + returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v2/{resource=projects/*/instances/*/tables/*}:setIamPolicy" body: "*" + additional_bindings { + post: "/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:setIamPolicy" + body: "*" + } }; + option (google.api.method_signature) = "resource,policy"; } // Returns permissions that the caller has on the specified table resource. - rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) { + rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) + returns (google.iam.v1.TestIamPermissionsResponse) { option (google.api.http) = { post: "/v2/{resource=projects/*/instances/*/tables/*}:testIamPermissions" body: "*" + additional_bindings { + post: "/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:testIamPermissions" + body: "*" + } }; + option (google.api.method_signature) = "resource,permissions"; } } @@ -221,16 +343,22 @@ message CreateTableRequest { bytes key = 1; } - // The unique name of the instance in which to create the table. - // Values are of the form `projects//instances/`. - string parent = 1; + // Required. The unique name of the instance in which to create the table. + // Values are of the form `projects/{project}/instances/{instance}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Instance" + } + ]; - // The name by which the new table should be referred to within the parent - // instance, e.g., `foobar` rather than `/tables/foobar`. - string table_id = 2; + // Required. The name by which the new table should be referred to within the + // parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + // Maximum 50 characters. + string table_id = 2 [(google.api.field_behavior) = REQUIRED]; - // The Table to create. - Table table = 3; + // Required. The Table to create. + Table table = 3 [(google.api.field_behavior) = REQUIRED]; // The optional list of row keys that will be used to initially split the // table into several tablets (tablets are similar to HBase regions). @@ -259,28 +387,41 @@ message CreateTableRequest { // feature might be changed in backward-incompatible ways and is not recommended // for production use. It is not subject to any SLA or deprecation policy. message CreateTableFromSnapshotRequest { - // The unique name of the instance in which to create the table. - // Values are of the form `projects//instances/`. - string parent = 1; - - // The name by which the new table should be referred to within the parent - // instance, e.g., `foobar` rather than `/tables/foobar`. - string table_id = 2; - - // The unique name of the snapshot from which to restore the table. The - // snapshot and the table must be in the same instance. - // Values are of the form - // `projects//instances//clusters//snapshots/`. - string source_snapshot = 3; + // Required. The unique name of the instance in which to create the table. + // Values are of the form `projects/{project}/instances/{instance}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Instance" + } + ]; + + // Required. The name by which the new table should be referred to within the + // parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + string table_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The unique name of the snapshot from which to restore the table. + // The snapshot and the table must be in the same instance. Values are of the + // form + // `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + string source_snapshot = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Snapshot" + } + ]; } // Request message for // [google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange][google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange] message DropRowRangeRequest { - // The unique name of the table on which to drop a range of rows. + // Required. The unique name of the table on which to drop a range of rows. // Values are of the form - // `projects//instances//tables/
`. - string name = 1; + // `projects/{project}/instances/{instance}/tables/{table}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "bigtable.googleapis.com/Table" } + ]; // Delete all rows or by prefix. oneof target { @@ -296,16 +437,28 @@ message DropRowRangeRequest { // Request message for // [google.bigtable.admin.v2.BigtableTableAdmin.ListTables][google.bigtable.admin.v2.BigtableTableAdmin.ListTables] message ListTablesRequest { - // The unique name of the instance for which tables should be listed. - // Values are of the form `projects//instances/`. - string parent = 1; + // Required. The unique name of the instance for which tables should be + // listed. Values are of the form `projects/{project}/instances/{instance}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Instance" + } + ]; // The view to be applied to the returned tables' fields. - // Defaults to `NAME_ONLY` if unspecified; no others are currently supported. + // Only NAME_ONLY view (default) and REPLICATION_VIEW are supported. Table.View view = 2; // Maximum number of results per page. - // CURRENTLY UNIMPLEMENTED AND IGNORED. + // + // A page_size of zero lets the server choose the number of items to return. + // A page_size which is strictly positive will return at most that many items. + // A negative page_size will cause an error. + // + // Following the first request, subsequent paginated calls are not required + // to pass a page_size. If a page_size is set in subsequent calls, it must + // match the page_size given in the first request. int32 page_size = 4; // The value of `next_page_token` returned by a previous call. @@ -327,10 +480,13 @@ message ListTablesResponse { // Request message for // [google.bigtable.admin.v2.BigtableTableAdmin.GetTable][google.bigtable.admin.v2.BigtableTableAdmin.GetTable] message GetTableRequest { - // The unique name of the requested table. + // Required. The unique name of the requested table. // Values are of the form - // `projects//instances//tables/
`. - string name = 1; + // `projects/{project}/instances/{instance}/tables/{table}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "bigtable.googleapis.com/Table" } + ]; // The view to be applied to the returned table's fields. // Defaults to `SCHEMA_VIEW` if unspecified. @@ -340,10 +496,13 @@ message GetTableRequest { // Request message for // [google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable][google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable] message DeleteTableRequest { - // The unique name of the table to be deleted. + // Required. The unique name of the table to be deleted. // Values are of the form - // `projects//instances//tables/
`. - string name = 1; + // `projects/{project}/instances/{instance}/tables/{table}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "bigtable.googleapis.com/Table" } + ]; } // Request message for @@ -370,25 +529,32 @@ message ModifyColumnFamiliesRequest { } } - // The unique name of the table whose families should be modified. + // Required. The unique name of the table whose families should be modified. // Values are of the form - // `projects//instances//tables/
`. - string name = 1; - - // Modifications to be atomically applied to the specified table's families. - // Entries are applied in order, meaning that earlier modifications can be - // masked by later ones (in the case of repeated updates to the same family, - // for example). - repeated Modification modifications = 2; + // `projects/{project}/instances/{instance}/tables/{table}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "bigtable.googleapis.com/Table" } + ]; + + // Required. Modifications to be atomically applied to the specified table's + // families. Entries are applied in order, meaning that earlier modifications + // can be masked by later ones (in the case of repeated updates to the same + // family, for example). + repeated Modification modifications = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request message for // [google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken][google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken] message GenerateConsistencyTokenRequest { - // The unique name of the Table for which to create a consistency token. - // Values are of the form - // `projects//instances//tables/
`. - string name = 1; + // Required. The unique name of the Table for which to create a consistency + // token. Values are of the form + // `projects/{project}/instances/{instance}/tables/{table}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "bigtable.googleapis.com/Table" } + ]; } // Response message for @@ -401,13 +567,16 @@ message GenerateConsistencyTokenResponse { // Request message for // [google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency][google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency] message CheckConsistencyRequest { - // The unique name of the Table for which to check replication consistency. - // Values are of the form - // `projects//instances//tables/
`. - string name = 1; - - // The token created using GenerateConsistencyToken for the Table. - string consistency_token = 2; + // Required. The unique name of the Table for which to check replication + // consistency. Values are of the form + // `projects/{project}/instances/{instance}/tables/{table}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "bigtable.googleapis.com/Table" } + ]; + + // Required. The token created using GenerateConsistencyToken for the Table. + string consistency_token = 2 [(google.api.field_behavior) = REQUIRED]; } // Response message for @@ -426,21 +595,29 @@ message CheckConsistencyResponse { // feature might be changed in backward-incompatible ways and is not recommended // for production use. It is not subject to any SLA or deprecation policy. message SnapshotTableRequest { - // The unique name of the table to have the snapshot taken. + // Required. The unique name of the table to have the snapshot taken. // Values are of the form - // `projects//instances//tables/
`. - string name = 1; + // `projects/{project}/instances/{instance}/tables/{table}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "bigtable.googleapis.com/Table" } + ]; - // The name of the cluster where the snapshot will be created in. + // Required. The name of the cluster where the snapshot will be created in. // Values are of the form - // `projects//instances//clusters/`. - string cluster = 2; + // `projects/{project}/instances/{instance}/clusters/{cluster}`. + string cluster = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Cluster" + } + ]; - // The ID by which the new snapshot should be referred to within the parent - // cluster, e.g., `mysnapshot` of the form: `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` - // rather than - // `projects//instances//clusters//snapshots/mysnapshot`. - string snapshot_id = 3; + // Required. The ID by which the new snapshot should be referred to within the + // parent cluster, e.g., `mysnapshot` of the form: + // `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than + // `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. + string snapshot_id = 3 [(google.api.field_behavior) = REQUIRED]; // The amount of time that the new snapshot can stay active after it is // created. Once 'ttl' expires, the snapshot will get deleted. The maximum @@ -460,10 +637,15 @@ message SnapshotTableRequest { // feature might be changed in backward-incompatible ways and is not recommended // for production use. It is not subject to any SLA or deprecation policy. message GetSnapshotRequest { - // The unique name of the requested snapshot. + // Required. The unique name of the requested snapshot. // Values are of the form - // `projects//instances//clusters//snapshots/`. - string name = 1; + // `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Snapshot" + } + ]; } // Request message for @@ -474,12 +656,17 @@ message GetSnapshotRequest { // feature might be changed in backward-incompatible ways and is not recommended // for production use. It is not subject to any SLA or deprecation policy. message ListSnapshotsRequest { - // The unique name of the cluster for which snapshots should be listed. - // Values are of the form - // `projects//instances//clusters/`. - // Use ` = '-'` to list snapshots for all clusters in an instance, - // e.g., `projects//instances//clusters/-`. - string parent = 1; + // Required. The unique name of the cluster for which snapshots should be + // listed. Values are of the form + // `projects/{project}/instances/{instance}/clusters/{cluster}`. + // Use `{cluster} = '-'` to list snapshots for all clusters in an instance, + // e.g., `projects/{project}/instances/{instance}/clusters/-`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Cluster" + } + ]; // The maximum number of snapshots to return per page. // CURRENTLY UNIMPLEMENTED AND IGNORED. @@ -514,10 +701,15 @@ message ListSnapshotsResponse { // feature might be changed in backward-incompatible ways and is not recommended // for production use. It is not subject to any SLA or deprecation policy. message DeleteSnapshotRequest { - // The unique name of the snapshot to be deleted. + // Required. The unique name of the snapshot to be deleted. // Values are of the form - // `projects//instances//clusters//snapshots/`. - string name = 1; + // `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Snapshot" + } + ]; } // The metadata for the Operation returned by SnapshotTable. @@ -554,3 +746,248 @@ message CreateTableFromSnapshotMetadata { // The time at which the operation failed or was completed successfully. google.protobuf.Timestamp finish_time = 3; } + +// The request for +// [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup]. +message CreateBackupRequest { + // Required. This must be one of the clusters in the instance in which this + // table is located. The backup will be stored in this cluster. Values are + // of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Cluster" + } + ]; + + // Required. The id of the backup to be created. The `backup_id` along with + // the parent `parent` are combined as {parent}/backups/{backup_id} to create + // the full backup name, of the form: + // `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + // This string must be between 1 and 50 characters in length and match the + // regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + string backup_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The backup to create. + Backup backup = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Metadata type for the operation returned by +// [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup]. +message CreateBackupMetadata { + // The name of the backup being created. + string name = 1; + + // The name of the table the backup is created from. + string source_table = 2; + + // The time at which this operation started. + google.protobuf.Timestamp start_time = 3; + + // If set, the time at which this operation finished or was cancelled. + google.protobuf.Timestamp end_time = 4; +} + +// The request for +// [GetBackup][google.bigtable.admin.v2.BigtableTableAdmin.GetBackup]. +message GetBackupRequest { + // Required. Name of the backup. + // Values are of the form + // `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "bigtable.googleapis.com/Backup" } + ]; +} + +// The request for +// [UpdateBackup][google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup]. +message UpdateBackupRequest { + // Required. The backup to update. `backup.name`, and the fields to be updated + // as specified by `update_mask` are required. Other fields are ignored. + // Update is only supported for the following fields: + // * `backup.expire_time`. + Backup backup = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. A mask specifying which fields (e.g. `expire_time`) in the + // Backup resource should be updated. This mask is relative to the Backup + // resource, not to the request message. The field mask must always be + // specified; this prevents any future fields from being erased accidentally + // by clients that do not know about them. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// The request for +// [DeleteBackup][google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup]. +message DeleteBackupRequest { + // Required. Name of the backup to delete. + // Values are of the form + // `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "bigtable.googleapis.com/Backup" } + ]; +} + +// The request for +// [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups]. +message ListBackupsRequest { + // Required. The cluster to list backups from. Values are of the + // form `projects/{project}/instances/{instance}/clusters/{cluster}`. + // Use `{cluster} = '-'` to list backups for all clusters in an instance, + // e.g., `projects/{project}/instances/{instance}/clusters/-`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Cluster" + } + ]; + + // A filter expression that filters backups listed in the response. + // The expression must specify the field name, a comparison operator, + // and the value that you want to use for filtering. The value must be a + // string, a number, or a boolean. The comparison operator must be + // <, >, <=, >=, !=, =, or :. Colon ‘:’ represents a HAS operator which is + // roughly synonymous with equality. Filter rules are case insensitive. + // + // The fields eligible for filtering are: + // * `name` + // * `source_table` + // * `state` + // * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + // * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + // * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + // * `size_bytes` + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. By default, each expression is an AND expression. However, + // you can include AND, OR, and NOT expressions explicitly. + // + // Some examples of using filters are: + // + // * `name:"exact"` --> The backup's name is the string "exact". + // * `name:howl` --> The backup's name contains the string "howl". + // * `source_table:prod` + // --> The source_table's name contains the string "prod". + // * `state:CREATING` --> The backup is pending creation. + // * `state:READY` --> The backup is fully created and ready for use. + // * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` + // --> The backup name contains the string "howl" and start_time + // of the backup is before 2018-03-28T14:50:00Z. + // * `size_bytes > 10000000000` --> The backup's size is greater than 10GB + string filter = 2; + + // An expression for specifying the sort order of the results of the request. + // The string value should specify one or more fields in + // [Backup][google.bigtable.admin.v2.Backup]. The full syntax is described at + // https://aip.dev/132#ordering. + // + // Fields supported are: + // * name + // * source_table + // * expire_time + // * start_time + // * end_time + // * size_bytes + // * state + // + // For example, "start_time". The default sorting order is ascending. + // To specify descending order for the field, a suffix " desc" should + // be appended to the field name. For example, "start_time desc". + // Redundant space characters in the syntax are insigificant. + // + // If order_by is empty, results will be sorted by `start_time` in descending + // order starting from the most recently created backup. + string order_by = 3; + + // Number of backups to be returned in the response. If 0 or + // less, defaults to the server's maximum allowed page size. + int32 page_size = 4; + + // If non-empty, `page_token` should contain a + // [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token] + // from a previous + // [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the + // same `parent` and with the same `filter`. + string page_token = 5; +} + +// The response for +// [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups]. +message ListBackupsResponse { + // The list of matching backups. + repeated Backup backups = 1; + + // `next_page_token` can be sent in a subsequent + // [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call + // to fetch more of the matching backups. + string next_page_token = 2; +} + +// The request for +// [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]. +message RestoreTableRequest { + // Required. The name of the instance in which to create the restored + // table. This instance must be the parent of the source backup. Values are + // of the form `projects//instances/`. + string parent = 1; + + // Required. The id of the table to create and restore to. This + // table must not already exist. The `table_id` appended to + // `parent` forms the full table name of the form + // `projects//instances//tables/`. + string table_id = 2; + + // Required. The source from which to restore. + oneof source { + // Name of the backup from which to restore. Values are of the form + // `projects//instances//clusters//backups/`. + string backup = 3; + } +} + +// Metadata type for the long-running operation returned by +// [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]. +message RestoreTableMetadata { + // Name of the table being created and restored to. + string name = 1; + + // The type of the restore source. + RestoreSourceType source_type = 2; + + // Information about the source used to restore the table, as specified by + // `source` in + // [RestoreTableRequest][google.bigtable.admin.v2.RestoreTableRequest]. + oneof source_info { + BackupInfo backup_info = 3; + } + + // If exists, the name of the long-running operation that will be used to + // track the post-restore optimization process to optimize the performance of + // the restored table. The metadata type of the long-running operation is + // [OptimizeRestoreTableMetadata][]. The response type is + // [Empty][google.protobuf.Empty]. This long-running operation may be + // automatically created by the system if applicable after the + // RestoreTable long-running operation completes successfully. This operation + // may not be created if the table is already optimized or the restore was + // not successful. + string optimize_table_operation_name = 4; + + // The progress of the + // [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable] + // operation. + OperationProgress progress = 5; +} + +// Metadata type for the long-running operation used to track the progress +// of optimizations performed on a newly restored table. This long-running +// operation is automatically created by the system after the successful +// completion of a table restore, and cannot be cancelled. +message OptimizeRestoredTableMetadata { + // Name of the restored table being optimized. + string name = 1; + + // The progress of the post-restore optimizations. + OperationProgress progress = 2; +} diff --git a/google/cloud/bigtable_admin_v2/proto/bigtable_table_admin_pb2.py b/google/cloud/bigtable_admin_v2/proto/bigtable_table_admin_pb2.py index 685260795..7c3317ab0 100644 --- a/google/cloud/bigtable_admin_v2/proto/bigtable_table_admin_pb2.py +++ b/google/cloud/bigtable_admin_v2/proto/bigtable_table_admin_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/bigtable/admin_v2/proto/bigtable_table_admin.proto +# source: google/cloud/bigtable_admin_v2/proto/bigtable_table_admin.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -16,8 +13,14 @@ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.cloud.bigtable_admin_v2.proto import ( + common_pb2 as google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_common__pb2, +) from google.cloud.bigtable_admin_v2.proto import ( - table_pb2 as google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2, + table_pb2 as google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2, ) from google.iam.v1 import iam_policy_pb2 as google_dot_iam_dot_v1_dot_iam__policy__pb2 from google.iam.v1 import policy_pb2 as google_dot_iam_dot_v1_dot_policy__pb2 @@ -26,27 +29,30 @@ ) from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name="google/cloud/bigtable/admin_v2/proto/bigtable_table_admin.proto", + name="google/cloud/bigtable_admin_v2/proto/bigtable_table_admin.proto", package="google.bigtable.admin.v2", syntax="proto3", - serialized_options=_b( - "\n\034com.google.bigtable.admin.v2B\027BigtableTableAdminProtoP\001Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\252\002\036Google.Cloud.Bigtable.Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V2" - ), - serialized_pb=_b( - '\n?google/cloud/bigtable/admin_v2/proto/bigtable_table_admin.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x30google/cloud/bigtable/admin_v2/proto/table.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xc8\x01\n\x12\x43reateTableRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x10\n\x08table_id\x18\x02 \x01(\t\x12.\n\x05table\x18\x03 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.Table\x12J\n\x0einitial_splits\x18\x04 \x03(\x0b\x32\x32.google.bigtable.admin.v2.CreateTableRequest.Split\x1a\x14\n\x05Split\x12\x0b\n\x03key\x18\x01 \x01(\x0c"[\n\x1e\x43reateTableFromSnapshotRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x10\n\x08table_id\x18\x02 \x01(\t\x12\x17\n\x0fsource_snapshot\x18\x03 \x01(\t"m\n\x13\x44ropRowRangeRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0erow_key_prefix\x18\x02 \x01(\x0cH\x00\x12$\n\x1a\x64\x65lete_all_data_from_table\x18\x03 \x01(\x08H\x00\x42\x08\n\x06target"~\n\x11ListTablesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32$.google.bigtable.admin.v2.Table.View\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"^\n\x12ListTablesResponse\x12/\n\x06tables\x18\x01 \x03(\x0b\x32\x1f.google.bigtable.admin.v2.Table\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"S\n\x0fGetTableRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32$.google.bigtable.admin.v2.Table.View""\n\x12\x44\x65leteTableRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\xae\x02\n\x1bModifyColumnFamiliesRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12Y\n\rmodifications\x18\x02 \x03(\x0b\x32\x42.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification\x1a\xa5\x01\n\x0cModification\x12\n\n\x02id\x18\x01 \x01(\t\x12\x38\n\x06\x63reate\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x38\n\x06update\x18\x03 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x0e\n\x04\x64rop\x18\x04 \x01(\x08H\x00\x42\x05\n\x03mod"/\n\x1fGenerateConsistencyTokenRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"=\n GenerateConsistencyTokenResponse\x12\x19\n\x11\x63onsistency_token\x18\x01 \x01(\t"B\n\x17\x43heckConsistencyRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x11\x63onsistency_token\x18\x02 \x01(\t".\n\x18\x43heckConsistencyResponse\x12\x12\n\nconsistent\x18\x01 \x01(\x08"\x87\x01\n\x14SnapshotTableRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07\x63luster\x18\x02 \x01(\t\x12\x13\n\x0bsnapshot_id\x18\x03 \x01(\t\x12&\n\x03ttl\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t""\n\x12GetSnapshotRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"M\n\x14ListSnapshotsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"g\n\x15ListSnapshotsResponse\x12\x35\n\tsnapshots\x18\x01 \x03(\x0b\x32".google.bigtable.admin.v2.Snapshot\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"%\n\x15\x44\x65leteSnapshotRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\xc4\x01\n\x15SnapshotTableMetadata\x12H\n\x10original_request\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.SnapshotTableRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xd8\x01\n\x1f\x43reateTableFromSnapshotMetadata\x12R\n\x10original_request\x18\x01 \x01(\x0b\x32\x38.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\x99\x15\n\x12\x42igtableTableAdmin\x12\x93\x01\n\x0b\x43reateTable\x12,.google.bigtable.admin.v2.CreateTableRequest\x1a\x1f.google.bigtable.admin.v2.Table"5\x82\xd3\xe4\x93\x02/"*/v2/{parent=projects/*/instances/*}/tables:\x01*\x12\xbc\x01\n\x17\x43reateTableFromSnapshot\x12\x38.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x1a\x1d.google.longrunning.Operation"H\x82\xd3\xe4\x93\x02\x42"=/v2/{parent=projects/*/instances/*}/tables:createFromSnapshot:\x01*\x12\x9b\x01\n\nListTables\x12+.google.bigtable.admin.v2.ListTablesRequest\x1a,.google.bigtable.admin.v2.ListTablesResponse"2\x82\xd3\xe4\x93\x02,\x12*/v2/{parent=projects/*/instances/*}/tables\x12\x8a\x01\n\x08GetTable\x12).google.bigtable.admin.v2.GetTableRequest\x1a\x1f.google.bigtable.admin.v2.Table"2\x82\xd3\xe4\x93\x02,\x12*/v2/{name=projects/*/instances/*/tables/*}\x12\x87\x01\n\x0b\x44\x65leteTable\x12,.google.bigtable.admin.v2.DeleteTableRequest\x1a\x16.google.protobuf.Empty"2\x82\xd3\xe4\x93\x02,**/v2/{name=projects/*/instances/*/tables/*}\x12\xba\x01\n\x14ModifyColumnFamilies\x12\x35.google.bigtable.admin.v2.ModifyColumnFamiliesRequest\x1a\x1f.google.bigtable.admin.v2.Table"J\x82\xd3\xe4\x93\x02\x44"?/v2/{name=projects/*/instances/*/tables/*}:modifyColumnFamilies:\x01*\x12\x99\x01\n\x0c\x44ropRowRange\x12-.google.bigtable.admin.v2.DropRowRangeRequest\x1a\x16.google.protobuf.Empty"B\x82\xd3\xe4\x93\x02<"7/v2/{name=projects/*/instances/*/tables/*}:dropRowRange:\x01*\x12\xe1\x01\n\x18GenerateConsistencyToken\x12\x39.google.bigtable.admin.v2.GenerateConsistencyTokenRequest\x1a:.google.bigtable.admin.v2.GenerateConsistencyTokenResponse"N\x82\xd3\xe4\x93\x02H"C/v2/{name=projects/*/instances/*/tables/*}:generateConsistencyToken:\x01*\x12\xc1\x01\n\x10\x43heckConsistency\x12\x31.google.bigtable.admin.v2.CheckConsistencyRequest\x1a\x32.google.bigtable.admin.v2.CheckConsistencyResponse"F\x82\xd3\xe4\x93\x02@";/v2/{name=projects/*/instances/*/tables/*}:checkConsistency:\x01*\x12\x9e\x01\n\rSnapshotTable\x12..google.bigtable.admin.v2.SnapshotTableRequest\x1a\x1d.google.longrunning.Operation">\x82\xd3\xe4\x93\x02\x38"3/v2/{name=projects/*/instances/*/tables/*}:snapshot:\x01*\x12\xa1\x01\n\x0bGetSnapshot\x12,.google.bigtable.admin.v2.GetSnapshotRequest\x1a".google.bigtable.admin.v2.Snapshot"@\x82\xd3\xe4\x93\x02:\x12\x38/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}\x12\xb2\x01\n\rListSnapshots\x12..google.bigtable.admin.v2.ListSnapshotsRequest\x1a/.google.bigtable.admin.v2.ListSnapshotsResponse"@\x82\xd3\xe4\x93\x02:\x12\x38/v2/{parent=projects/*/instances/*/clusters/*}/snapshots\x12\x9b\x01\n\x0e\x44\x65leteSnapshot\x12/.google.bigtable.admin.v2.DeleteSnapshotRequest\x1a\x16.google.protobuf.Empty"@\x82\xd3\xe4\x93\x02:*8/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}\x12\x91\x01\n\x0cGetIamPolicy\x12".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"F\x82\xd3\xe4\x93\x02@";/v2/{resource=projects/*/instances/*/tables/*}:getIamPolicy:\x01*\x12\x91\x01\n\x0cSetIamPolicy\x12".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"F\x82\xd3\xe4\x93\x02@";/v2/{resource=projects/*/instances/*/tables/*}:setIamPolicy:\x01*\x12\xb7\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse"L\x82\xd3\xe4\x93\x02\x46"A/v2/{resource=projects/*/instances/*/tables/*}:testIamPermissions:\x01*B\xba\x01\n\x1c\x63om.google.bigtable.admin.v2B\x17\x42igtableTableAdminProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2b\x06proto3' - ), + serialized_options=b"\n\034com.google.bigtable.admin.v2B\027BigtableTableAdminProtoP\001Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\252\002\036Google.Cloud.Bigtable.Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V2", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n?google/cloud/bigtable_admin_v2/proto/bigtable_table_admin.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x31google/cloud/bigtable_admin_v2/proto/common.proto\x1a\x30google/cloud/bigtable_admin_v2/proto/table.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xfc\x01\n\x12\x43reateTableRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n bigtable.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x33\n\x05table\x18\x03 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x02\x12J\n\x0einitial_splits\x18\x04 \x03(\x0b\x32\x32.google.bigtable.admin.v2.CreateTableRequest.Split\x1a\x14\n\x05Split\x12\x0b\n\x03key\x18\x01 \x01(\x0c"\xb4\x01\n\x1e\x43reateTableFromSnapshotRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n bigtable.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\x0fsource_snapshot\x18\x03 \x01(\tB(\xe0\x41\x02\xfa\x41"\n bigtable.googleapis.com/Snapshot"\x94\x01\n\x13\x44ropRowRangeRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x62igtable.googleapis.com/Table\x12\x18\n\x0erow_key_prefix\x18\x02 \x01(\x0cH\x00\x12$\n\x1a\x64\x65lete_all_data_from_table\x18\x03 \x01(\x08H\x00\x42\x08\n\x06target"\xa8\x01\n\x11ListTablesRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n bigtable.googleapis.com/Instance\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32$.google.bigtable.admin.v2.Table.View\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"^\n\x12ListTablesResponse\x12/\n\x06tables\x18\x01 \x03(\x0b\x32\x1f.google.bigtable.admin.v2.Table\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"z\n\x0fGetTableRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x62igtable.googleapis.com/Table\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32$.google.bigtable.admin.v2.Table.View"I\n\x12\x44\x65leteTableRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x62igtable.googleapis.com/Table"\xda\x02\n\x1bModifyColumnFamiliesRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x62igtable.googleapis.com/Table\x12^\n\rmodifications\x18\x02 \x03(\x0b\x32\x42.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.ModificationB\x03\xe0\x41\x02\x1a\xa5\x01\n\x0cModification\x12\n\n\x02id\x18\x01 \x01(\t\x12\x38\n\x06\x63reate\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x38\n\x06update\x18\x03 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x0e\n\x04\x64rop\x18\x04 \x01(\x08H\x00\x42\x05\n\x03mod"V\n\x1fGenerateConsistencyTokenRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x62igtable.googleapis.com/Table"=\n GenerateConsistencyTokenResponse\x12\x19\n\x11\x63onsistency_token\x18\x01 \x01(\t"n\n\x17\x43heckConsistencyRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x62igtable.googleapis.com/Table\x12\x1e\n\x11\x63onsistency_token\x18\x02 \x01(\tB\x03\xe0\x41\x02".\n\x18\x43heckConsistencyResponse\x12\x12\n\nconsistent\x18\x01 \x01(\x08"\xdc\x01\n\x14SnapshotTableRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x62igtable.googleapis.com/Table\x12\x38\n\x07\x63luster\x18\x02 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x62igtable.googleapis.com/Cluster\x12\x18\n\x0bsnapshot_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12&\n\x03ttl\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t"L\n\x12GetSnapshotRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n bigtable.googleapis.com/Snapshot"v\n\x14ListSnapshotsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x62igtable.googleapis.com/Cluster\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"g\n\x15ListSnapshotsResponse\x12\x35\n\tsnapshots\x18\x01 \x03(\x0b\x32".google.bigtable.admin.v2.Snapshot\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"O\n\x15\x44\x65leteSnapshotRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n bigtable.googleapis.com/Snapshot"\xc4\x01\n\x15SnapshotTableMetadata\x12H\n\x10original_request\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.SnapshotTableRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xd8\x01\n\x1f\x43reateTableFromSnapshotMetadata\x12R\n\x10original_request\x18\x01 \x01(\x0b\x32\x38.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\x9d\x01\n\x13\x43reateBackupRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x62igtable.googleapis.com/Cluster\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x35\n\x06\x62\x61\x63kup\x18\x03 \x01(\x0b\x32 .google.bigtable.admin.v2.BackupB\x03\xe0\x41\x02"\x98\x01\n\x14\x43reateBackupMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0csource_table\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"H\n\x10GetBackupRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x62igtable.googleapis.com/Backup"\x82\x01\n\x13UpdateBackupRequest\x12\x35\n\x06\x62\x61\x63kup\x18\x01 \x01(\x0b\x32 .google.bigtable.admin.v2.BackupB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02"K\n\x13\x44\x65leteBackupRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x62igtable.googleapis.com/Backup"\x96\x01\n\x12ListBackupsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x62igtable.googleapis.com/Cluster\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x10\n\x08order_by\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t"a\n\x13ListBackupsResponse\x12\x31\n\x07\x62\x61\x63kups\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.Backup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"S\n\x13RestoreTableRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x10\n\x08table_id\x18\x02 \x01(\t\x12\x10\n\x06\x62\x61\x63kup\x18\x03 \x01(\tH\x00\x42\x08\n\x06source"\x98\x02\n\x14RestoreTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12@\n\x0bsource_type\x18\x02 \x01(\x0e\x32+.google.bigtable.admin.v2.RestoreSourceType\x12;\n\x0b\x62\x61\x63kup_info\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfoH\x00\x12%\n\x1doptimize_table_operation_name\x18\x04 \x01(\t\x12=\n\x08progress\x18\x05 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgressB\r\n\x0bsource_info"l\n\x1dOptimizeRestoredTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12=\n\x08progress\x18\x02 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgress2\xc8$\n\x12\x42igtableTableAdmin\x12\xab\x01\n\x0b\x43reateTable\x12,.google.bigtable.admin.v2.CreateTableRequest\x1a\x1f.google.bigtable.admin.v2.Table"M\x82\xd3\xe4\x93\x02/"*/v2/{parent=projects/*/instances/*}/tables:\x01*\xda\x41\x15parent,table_id,table\x12\x8a\x02\n\x17\x43reateTableFromSnapshot\x12\x38.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x1a\x1d.google.longrunning.Operation"\x95\x01\x82\xd3\xe4\x93\x02\x42"=/v2/{parent=projects/*/instances/*}/tables:createFromSnapshot:\x01*\xda\x41\x1fparent,table_id,source_snapshot\xca\x41(\n\x05Table\x12\x1f\x43reateTableFromSnapshotMetadata\x12\xa4\x01\n\nListTables\x12+.google.bigtable.admin.v2.ListTablesRequest\x1a,.google.bigtable.admin.v2.ListTablesResponse";\x82\xd3\xe4\x93\x02,\x12*/v2/{parent=projects/*/instances/*}/tables\xda\x41\x06parent\x12\x91\x01\n\x08GetTable\x12).google.bigtable.admin.v2.GetTableRequest\x1a\x1f.google.bigtable.admin.v2.Table"9\x82\xd3\xe4\x93\x02,\x12*/v2/{name=projects/*/instances/*/tables/*}\xda\x41\x04name\x12\x8e\x01\n\x0b\x44\x65leteTable\x12,.google.bigtable.admin.v2.DeleteTableRequest\x1a\x16.google.protobuf.Empty"9\x82\xd3\xe4\x93\x02,**/v2/{name=projects/*/instances/*/tables/*}\xda\x41\x04name\x12\xcf\x01\n\x14ModifyColumnFamilies\x12\x35.google.bigtable.admin.v2.ModifyColumnFamiliesRequest\x1a\x1f.google.bigtable.admin.v2.Table"_\x82\xd3\xe4\x93\x02\x44"?/v2/{name=projects/*/instances/*/tables/*}:modifyColumnFamilies:\x01*\xda\x41\x12name,modifications\x12\x99\x01\n\x0c\x44ropRowRange\x12-.google.bigtable.admin.v2.DropRowRangeRequest\x1a\x16.google.protobuf.Empty"B\x82\xd3\xe4\x93\x02<"7/v2/{name=projects/*/instances/*/tables/*}:dropRowRange:\x01*\x12\xe8\x01\n\x18GenerateConsistencyToken\x12\x39.google.bigtable.admin.v2.GenerateConsistencyTokenRequest\x1a:.google.bigtable.admin.v2.GenerateConsistencyTokenResponse"U\x82\xd3\xe4\x93\x02H"C/v2/{name=projects/*/instances/*/tables/*}:generateConsistencyToken:\x01*\xda\x41\x04name\x12\xda\x01\n\x10\x43heckConsistency\x12\x31.google.bigtable.admin.v2.CheckConsistencyRequest\x1a\x32.google.bigtable.admin.v2.CheckConsistencyResponse"_\x82\xd3\xe4\x93\x02@";/v2/{name=projects/*/instances/*/tables/*}:checkConsistency:\x01*\xda\x41\x16name,consistency_token\x12\xea\x01\n\rSnapshotTable\x12..google.bigtable.admin.v2.SnapshotTableRequest\x1a\x1d.google.longrunning.Operation"\x89\x01\x82\xd3\xe4\x93\x02\x38"3/v2/{name=projects/*/instances/*/tables/*}:snapshot:\x01*\xda\x41$name,cluster,snapshot_id,description\xca\x41!\n\x08Snapshot\x12\x15SnapshotTableMetadata\x12\xa8\x01\n\x0bGetSnapshot\x12,.google.bigtable.admin.v2.GetSnapshotRequest\x1a".google.bigtable.admin.v2.Snapshot"G\x82\xd3\xe4\x93\x02:\x12\x38/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}\xda\x41\x04name\x12\xbb\x01\n\rListSnapshots\x12..google.bigtable.admin.v2.ListSnapshotsRequest\x1a/.google.bigtable.admin.v2.ListSnapshotsResponse"I\x82\xd3\xe4\x93\x02:\x12\x38/v2/{parent=projects/*/instances/*/clusters/*}/snapshots\xda\x41\x06parent\x12\xa2\x01\n\x0e\x44\x65leteSnapshot\x12/.google.bigtable.admin.v2.DeleteSnapshotRequest\x1a\x16.google.protobuf.Empty"G\x82\xd3\xe4\x93\x02:*8/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}\xda\x41\x04name\x12\xe0\x01\n\x0c\x43reateBackup\x12-.google.bigtable.admin.v2.CreateBackupRequest\x1a\x1d.google.longrunning.Operation"\x81\x01\x82\xd3\xe4\x93\x02@"6/v2/{parent=projects/*/instances/*/clusters/*}/backups:\x06\x62\x61\x63kup\xca\x41\x1e\n\x06\x42\x61\x63kup\x12\x14\x43reateBackupMetadata\xda\x41\x17parent,backup_id,backup\x12\xa0\x01\n\tGetBackup\x12*.google.bigtable.admin.v2.GetBackupRequest\x1a .google.bigtable.admin.v2.Backup"E\x82\xd3\xe4\x93\x02\x38\x12\x36/v2/{name=projects/*/instances/*/clusters/*/backups/*}\xda\x41\x04name\x12\xc3\x01\n\x0cUpdateBackup\x12-.google.bigtable.admin.v2.UpdateBackupRequest\x1a .google.bigtable.admin.v2.Backup"b\x82\xd3\xe4\x93\x02G2=/v2/{backup.name=projects/*/instances/*/clusters/*/backups/*}:\x06\x62\x61\x63kup\xda\x41\x12\x62\x61\x63kup,update_mask\x12\x9c\x01\n\x0c\x44\x65leteBackup\x12-.google.bigtable.admin.v2.DeleteBackupRequest\x1a\x16.google.protobuf.Empty"E\x82\xd3\xe4\x93\x02\x38*6/v2/{name=projects/*/instances/*/clusters/*/backups/*}\xda\x41\x04name\x12\xb3\x01\n\x0bListBackups\x12,.google.bigtable.admin.v2.ListBackupsRequest\x1a-.google.bigtable.admin.v2.ListBackupsResponse"G\x82\xd3\xe4\x93\x02\x38\x12\x36/v2/{parent=projects/*/instances/*/clusters/*}/backups\xda\x41\x06parent\x12\xbb\x01\n\x0cRestoreTable\x12-.google.bigtable.admin.v2.RestoreTableRequest\x1a\x1d.google.longrunning.Operation"]\x82\xd3\xe4\x93\x02\x37"2/v2/{parent=projects/*/instances/*}/tables:restore:\x01*\xca\x41\x1d\n\x05Table\x12\x14RestoreTableMetadata\x12\x9c\x01\n\x0cGetIamPolicy\x12".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"Q\x82\xd3\xe4\x93\x02@";/v2/{resource=projects/*/instances/*/tables/*}:getIamPolicy:\x01*\xda\x41\x08resource\x12\xf3\x01\n\x0cSetIamPolicy\x12".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"\xa7\x01\x82\xd3\xe4\x93\x02\x8e\x01";/v2/{resource=projects/*/instances/*/tables/*}:setIamPolicy:\x01*ZL"G/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:setIamPolicy:\x01*\xda\x41\x0fresource,policy\x12\xa4\x02\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse"\xb8\x01\x82\xd3\xe4\x93\x02\x9a\x01"A/v2/{resource=projects/*/instances/*/tables/*}:testIamPermissions:\x01*ZR"M/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:testIamPermissions:\x01*\xda\x41\x14resource,permissions\x1a\xde\x02\xca\x41\x1c\x62igtableadmin.googleapis.com\xd2\x41\xbb\x02https://www.googleapis.com/auth/bigtable.admin,https://www.googleapis.com/auth/bigtable.admin.table,https://www.googleapis.com/auth/cloud-bigtable.admin,https://www.googleapis.com/auth/cloud-bigtable.admin.table,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xba\x01\n\x1c\x63om.google.bigtable.admin.v2B\x17\x42igtableTableAdminProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2b\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, - google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.DESCRIPTOR, + google_dot_api_dot_client__pb2.DESCRIPTOR, + google_dot_api_dot_field__behavior__pb2.DESCRIPTOR, + google_dot_api_dot_resource__pb2.DESCRIPTOR, + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_common__pb2.DESCRIPTOR, + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2.DESCRIPTOR, google_dot_iam_dot_v1_dot_iam__policy__pb2.DESCRIPTOR, google_dot_iam_dot_v1_dot_policy__pb2.DESCRIPTOR, google_dot_longrunning_dot_operations__pb2.DESCRIPTOR, google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, ], ) @@ -58,6 +64,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="key", @@ -68,7 +75,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -76,6 +83,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -86,8 +94,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=545, - serialized_end=565, + serialized_start=767, + serialized_end=787, ) _CREATETABLEREQUEST = _descriptor.Descriptor( @@ -96,6 +104,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -106,14 +115,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b'\340A\002\372A"\n bigtable.googleapis.com/Instance', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="table_id", @@ -124,14 +134,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="table", @@ -148,8 +159,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="initial_splits", @@ -168,6 +180,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -178,8 +191,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=365, - serialized_end=565, + serialized_start=535, + serialized_end=787, ) @@ -189,6 +202,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -199,14 +213,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b'\340A\002\372A"\n bigtable.googleapis.com/Instance', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="table_id", @@ -217,14 +232,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="source_snapshot", @@ -235,14 +251,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b'\340A\002\372A"\n bigtable.googleapis.com/Snapshot', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -253,8 +270,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=567, - serialized_end=658, + serialized_start=790, + serialized_end=970, ) @@ -264,6 +281,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -274,14 +292,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002\372A\037\n\035bigtable.googleapis.com/Table", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="row_key_prefix", @@ -292,7 +311,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -300,6 +319,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="delete_all_data_from_table", @@ -318,6 +338,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -333,11 +354,12 @@ full_name="google.bigtable.admin.v2.DropRowRangeRequest.target", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ), ], - serialized_start=660, - serialized_end=769, + serialized_start=973, + serialized_end=1121, ) @@ -347,6 +369,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -357,14 +380,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b'\340A\002\372A"\n bigtable.googleapis.com/Instance', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="view", @@ -383,6 +407,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -401,6 +426,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -411,7 +437,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -419,6 +445,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -429,8 +456,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=771, - serialized_end=897, + serialized_start=1124, + serialized_end=1292, ) @@ -440,6 +467,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="tables", @@ -458,6 +486,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -468,7 +497,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -476,6 +505,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -486,8 +516,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=899, - serialized_end=993, + serialized_start=1294, + serialized_end=1388, ) @@ -497,6 +527,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -507,14 +538,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002\372A\037\n\035bigtable.googleapis.com/Table", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="view", @@ -533,6 +565,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -543,8 +576,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=995, - serialized_end=1078, + serialized_start=1390, + serialized_end=1512, ) @@ -554,6 +587,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -564,14 +598,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002\372A\037\n\035bigtable.googleapis.com/Table", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -582,8 +617,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1080, - serialized_end=1114, + serialized_start=1514, + serialized_end=1587, ) @@ -593,6 +628,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="id", @@ -603,7 +639,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -611,6 +647,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="create", @@ -629,6 +666,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="update", @@ -647,6 +685,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="drop", @@ -665,6 +704,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -680,11 +720,12 @@ full_name="google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.mod", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ), ], - serialized_start=1254, - serialized_end=1419, + serialized_start=1771, + serialized_end=1936, ) _MODIFYCOLUMNFAMILIESREQUEST = _descriptor.Descriptor( @@ -693,6 +734,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -703,14 +745,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002\372A\037\n\035bigtable.googleapis.com/Table", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="modifications", @@ -727,8 +770,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -739,8 +783,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1117, - serialized_end=1419, + serialized_start=1590, + serialized_end=1936, ) @@ -750,6 +794,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -760,14 +805,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002\372A\037\n\035bigtable.googleapis.com/Table", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -778,8 +824,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1421, - serialized_end=1468, + serialized_start=1938, + serialized_end=2024, ) @@ -789,6 +835,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="consistency_token", @@ -799,7 +846,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -807,6 +854,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -817,8 +865,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1470, - serialized_end=1531, + serialized_start=2026, + serialized_end=2087, ) @@ -828,6 +876,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -838,14 +887,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002\372A\037\n\035bigtable.googleapis.com/Table", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="consistency_token", @@ -856,14 +906,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -874,8 +925,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1533, - serialized_end=1599, + serialized_start=2089, + serialized_end=2199, ) @@ -885,6 +936,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="consistent", @@ -903,6 +955,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -913,8 +966,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1601, - serialized_end=1647, + serialized_start=2201, + serialized_end=2247, ) @@ -924,6 +977,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -934,14 +988,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002\372A\037\n\035bigtable.googleapis.com/Table", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="cluster", @@ -952,14 +1007,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002\372A!\n\037bigtable.googleapis.com/Cluster", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="snapshot_id", @@ -970,14 +1026,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="ttl", @@ -996,6 +1053,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -1006,7 +1064,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1014,6 +1072,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1024,8 +1083,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1650, - serialized_end=1785, + serialized_start=2250, + serialized_end=2470, ) @@ -1035,6 +1094,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1045,14 +1105,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b'\340A\002\372A"\n bigtable.googleapis.com/Snapshot', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1063,8 +1124,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1787, - serialized_end=1821, + serialized_start=2472, + serialized_end=2548, ) @@ -1074,6 +1135,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -1084,14 +1146,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002\372A!\n\037bigtable.googleapis.com/Cluster", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -1110,6 +1173,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -1120,7 +1184,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1128,6 +1192,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1138,8 +1203,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1823, - serialized_end=1900, + serialized_start=2550, + serialized_end=2668, ) @@ -1149,6 +1214,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="snapshots", @@ -1167,6 +1233,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -1177,7 +1244,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1185,6 +1252,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1195,8 +1263,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1902, - serialized_end=2005, + serialized_start=2670, + serialized_end=2773, ) @@ -1206,6 +1274,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1216,14 +1285,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b'\340A\002\372A"\n bigtable.googleapis.com/Snapshot', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1234,8 +1304,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2007, - serialized_end=2044, + serialized_start=2775, + serialized_end=2854, ) @@ -1245,6 +1315,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="original_request", @@ -1263,6 +1334,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="request_time", @@ -1281,6 +1353,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="finish_time", @@ -1299,6 +1372,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1309,8 +1383,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2047, - serialized_end=2243, + serialized_start=2857, + serialized_end=3053, ) @@ -1320,6 +1394,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="original_request", @@ -1338,6 +1413,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="request_time", @@ -1356,6 +1432,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="finish_time", @@ -1374,6 +1451,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1384,298 +1462,1127 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2246, - serialized_end=2462, + serialized_start=3056, + serialized_end=3272, ) -_CREATETABLEREQUEST_SPLIT.containing_type = _CREATETABLEREQUEST -_CREATETABLEREQUEST.fields_by_name[ - "table" -].message_type = ( - google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._TABLE -) -_CREATETABLEREQUEST.fields_by_name[ - "initial_splits" -].message_type = _CREATETABLEREQUEST_SPLIT -_DROPROWRANGEREQUEST.oneofs_by_name["target"].fields.append( - _DROPROWRANGEREQUEST.fields_by_name["row_key_prefix"] -) -_DROPROWRANGEREQUEST.fields_by_name[ - "row_key_prefix" -].containing_oneof = _DROPROWRANGEREQUEST.oneofs_by_name["target"] -_DROPROWRANGEREQUEST.oneofs_by_name["target"].fields.append( - _DROPROWRANGEREQUEST.fields_by_name["delete_all_data_from_table"] -) -_DROPROWRANGEREQUEST.fields_by_name[ - "delete_all_data_from_table" -].containing_oneof = _DROPROWRANGEREQUEST.oneofs_by_name["target"] -_LISTTABLESREQUEST.fields_by_name[ - "view" -].enum_type = ( - google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._TABLE_VIEW -) -_LISTTABLESRESPONSE.fields_by_name[ - "tables" -].message_type = ( - google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._TABLE -) -_GETTABLEREQUEST.fields_by_name[ - "view" -].enum_type = ( - google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._TABLE_VIEW -) -_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name[ - "create" -].message_type = ( - google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._COLUMNFAMILY -) -_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name[ - "update" -].message_type = ( - google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._COLUMNFAMILY -) -_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.containing_type = _MODIFYCOLUMNFAMILIESREQUEST -_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.oneofs_by_name["mod"].fields.append( - _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name["create"] -) -_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name[ - "create" -].containing_oneof = _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.oneofs_by_name["mod"] -_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.oneofs_by_name["mod"].fields.append( - _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name["update"] -) -_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name[ - "update" -].containing_oneof = _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.oneofs_by_name["mod"] -_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.oneofs_by_name["mod"].fields.append( - _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name["drop"] -) -_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name[ - "drop" -].containing_oneof = _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.oneofs_by_name["mod"] -_MODIFYCOLUMNFAMILIESREQUEST.fields_by_name[ - "modifications" -].message_type = _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION -_SNAPSHOTTABLEREQUEST.fields_by_name[ - "ttl" -].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_LISTSNAPSHOTSRESPONSE.fields_by_name[ - "snapshots" -].message_type = ( - google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._SNAPSHOT -) -_SNAPSHOTTABLEMETADATA.fields_by_name[ - "original_request" -].message_type = _SNAPSHOTTABLEREQUEST -_SNAPSHOTTABLEMETADATA.fields_by_name[ - "request_time" -].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_SNAPSHOTTABLEMETADATA.fields_by_name[ - "finish_time" -].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_CREATETABLEFROMSNAPSHOTMETADATA.fields_by_name[ - "original_request" -].message_type = _CREATETABLEFROMSNAPSHOTREQUEST -_CREATETABLEFROMSNAPSHOTMETADATA.fields_by_name[ - "request_time" -].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_CREATETABLEFROMSNAPSHOTMETADATA.fields_by_name[ - "finish_time" -].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -DESCRIPTOR.message_types_by_name["CreateTableRequest"] = _CREATETABLEREQUEST -DESCRIPTOR.message_types_by_name[ - "CreateTableFromSnapshotRequest" -] = _CREATETABLEFROMSNAPSHOTREQUEST -DESCRIPTOR.message_types_by_name["DropRowRangeRequest"] = _DROPROWRANGEREQUEST -DESCRIPTOR.message_types_by_name["ListTablesRequest"] = _LISTTABLESREQUEST -DESCRIPTOR.message_types_by_name["ListTablesResponse"] = _LISTTABLESRESPONSE -DESCRIPTOR.message_types_by_name["GetTableRequest"] = _GETTABLEREQUEST -DESCRIPTOR.message_types_by_name["DeleteTableRequest"] = _DELETETABLEREQUEST -DESCRIPTOR.message_types_by_name[ - "ModifyColumnFamiliesRequest" -] = _MODIFYCOLUMNFAMILIESREQUEST -DESCRIPTOR.message_types_by_name[ - "GenerateConsistencyTokenRequest" -] = _GENERATECONSISTENCYTOKENREQUEST -DESCRIPTOR.message_types_by_name[ - "GenerateConsistencyTokenResponse" -] = _GENERATECONSISTENCYTOKENRESPONSE -DESCRIPTOR.message_types_by_name["CheckConsistencyRequest"] = _CHECKCONSISTENCYREQUEST -DESCRIPTOR.message_types_by_name["CheckConsistencyResponse"] = _CHECKCONSISTENCYRESPONSE -DESCRIPTOR.message_types_by_name["SnapshotTableRequest"] = _SNAPSHOTTABLEREQUEST -DESCRIPTOR.message_types_by_name["GetSnapshotRequest"] = _GETSNAPSHOTREQUEST -DESCRIPTOR.message_types_by_name["ListSnapshotsRequest"] = _LISTSNAPSHOTSREQUEST -DESCRIPTOR.message_types_by_name["ListSnapshotsResponse"] = _LISTSNAPSHOTSRESPONSE -DESCRIPTOR.message_types_by_name["DeleteSnapshotRequest"] = _DELETESNAPSHOTREQUEST -DESCRIPTOR.message_types_by_name["SnapshotTableMetadata"] = _SNAPSHOTTABLEMETADATA -DESCRIPTOR.message_types_by_name[ - "CreateTableFromSnapshotMetadata" -] = _CREATETABLEFROMSNAPSHOTMETADATA -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -CreateTableRequest = _reflection.GeneratedProtocolMessageType( - "CreateTableRequest", - (_message.Message,), - dict( - Split=_reflection.GeneratedProtocolMessageType( - "Split", - (_message.Message,), - dict( - DESCRIPTOR=_CREATETABLEREQUEST_SPLIT, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", - __doc__="""An initial split point for a newly created table. - - - Attributes: - key: - Row key to use as an initial tablet boundary. - """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateTableRequest.Split) - ), - ), - DESCRIPTOR=_CREATETABLEREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", - __doc__="""Request message for - [google.bigtable.admin.v2.BigtableTableAdmin.CreateTable][google.bigtable.admin.v2.BigtableTableAdmin.CreateTable] - - - Attributes: - parent: - The unique name of the instance in which to create the table. - Values are of the form - ``projects//instances/``. - table_id: - The name by which the new table should be referred to within - the parent instance, e.g., ``foobar`` rather than - ``/tables/foobar``. - table: - The Table to create. - initial_splits: - The optional list of row keys that will be used to initially - split the table into several tablets (tablets are similar to - HBase regions). Given two split keys, ``s1`` and ``s2``, three - tablets will be created, spanning the key ranges: ``[, s1), - [s1, s2), [s2, )``. Example: - Row keys := ``["a", "apple", - "custom", "customer_1", "customer_2",`` ``"other", "zz"]`` - - initial\_split\_keys := ``["apple", "customer_1", - "customer_2", "other"]`` - Key assignment: - Tablet 1 - ``[, apple) => {"a"}.`` - Tablet 2 - ``[apple, customer_1) => {"apple", "custom"}.`` - - Tablet 3 ``[customer_1, customer_2) => {"customer_1"}.`` - - Tablet 4 ``[customer_2, other) => {"customer_2"}.`` - - Tablet 5 ``[other, ) => {"other", "zz"}.`` - """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateTableRequest) - ), +_CREATEBACKUPREQUEST = _descriptor.Descriptor( + name="CreateBackupRequest", + full_name="google.bigtable.admin.v2.CreateBackupRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.bigtable.admin.v2.CreateBackupRequest.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, + serialized_options=b"\340A\002\372A!\n\037bigtable.googleapis.com/Cluster", + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="backup_id", + full_name="google.bigtable.admin.v2.CreateBackupRequest.backup_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=b"\340A\002", + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="backup", + full_name="google.bigtable.admin.v2.CreateBackupRequest.backup", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=b"\340A\002", + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3275, + serialized_end=3432, ) -_sym_db.RegisterMessage(CreateTableRequest) -_sym_db.RegisterMessage(CreateTableRequest.Split) -CreateTableFromSnapshotRequest = _reflection.GeneratedProtocolMessageType( - "CreateTableFromSnapshotRequest", - (_message.Message,), - dict( - DESCRIPTOR=_CREATETABLEFROMSNAPSHOTREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", - __doc__="""Request message for - [google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot][google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot] - - Note: This is a private alpha release of Cloud Bigtable snapshots. This - feature is not currently available to most Cloud Bigtable customers. - This feature might be changed in backward-incompatible ways and is not - recommended for production use. It is not subject to any SLA or - deprecation policy. - - - Attributes: - parent: - The unique name of the instance in which to create the table. - Values are of the form - ``projects//instances/``. - table_id: - The name by which the new table should be referred to within - the parent instance, e.g., ``foobar`` rather than - ``/tables/foobar``. - source_snapshot: - The unique name of the snapshot from which to restore the - table. The snapshot and the table must be in the same - instance. Values are of the form ``projects//instance - s//clusters//snapshots/``. - """, - # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateTableFromSnapshotRequest) - ), -) -_sym_db.RegisterMessage(CreateTableFromSnapshotRequest) -DropRowRangeRequest = _reflection.GeneratedProtocolMessageType( - "DropRowRangeRequest", - (_message.Message,), - dict( - DESCRIPTOR=_DROPROWRANGEREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", - __doc__="""Request message for - [google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange][google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange] - - - Attributes: - name: - The unique name of the table on which to drop a range of rows. - Values are of the form - ``projects//instances//tables/
``. - target: - Delete all rows or by prefix. - row_key_prefix: - Delete all rows that start with this row key prefix. Prefix - cannot be zero length. - delete_all_data_from_table: - Delete all rows in the table. Setting this to false is a no- +_CREATEBACKUPMETADATA = _descriptor.Descriptor( + name="CreateBackupMetadata", + full_name="google.bigtable.admin.v2.CreateBackupMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.CreateBackupMetadata.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="source_table", + full_name="google.bigtable.admin.v2.CreateBackupMetadata.source_table", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.bigtable.admin.v2.CreateBackupMetadata.start_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.bigtable.admin.v2.CreateBackupMetadata.end_time", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3435, + serialized_end=3587, +) + + +_GETBACKUPREQUEST = _descriptor.Descriptor( + name="GetBackupRequest", + full_name="google.bigtable.admin.v2.GetBackupRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.GetBackupRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=b"\340A\002\372A \n\036bigtable.googleapis.com/Backup", + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3589, + serialized_end=3661, +) + + +_UPDATEBACKUPREQUEST = _descriptor.Descriptor( + name="UpdateBackupRequest", + full_name="google.bigtable.admin.v2.UpdateBackupRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="backup", + full_name="google.bigtable.admin.v2.UpdateBackupRequest.backup", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=b"\340A\002", + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.bigtable.admin.v2.UpdateBackupRequest.update_mask", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=b"\340A\002", + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3664, + serialized_end=3794, +) + + +_DELETEBACKUPREQUEST = _descriptor.Descriptor( + name="DeleteBackupRequest", + full_name="google.bigtable.admin.v2.DeleteBackupRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.DeleteBackupRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=b"\340A\002\372A \n\036bigtable.googleapis.com/Backup", + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3796, + serialized_end=3871, +) + + +_LISTBACKUPSREQUEST = _descriptor.Descriptor( + name="ListBackupsRequest", + full_name="google.bigtable.admin.v2.ListBackupsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.bigtable.admin.v2.ListBackupsRequest.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, + serialized_options=b"\340A\002\372A!\n\037bigtable.googleapis.com/Cluster", + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.bigtable.admin.v2.ListBackupsRequest.filter", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="order_by", + full_name="google.bigtable.admin.v2.ListBackupsRequest.order_by", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.bigtable.admin.v2.ListBackupsRequest.page_size", + index=3, + number=4, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.bigtable.admin.v2.ListBackupsRequest.page_token", + index=4, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3874, + serialized_end=4024, +) + + +_LISTBACKUPSRESPONSE = _descriptor.Descriptor( + name="ListBackupsResponse", + full_name="google.bigtable.admin.v2.ListBackupsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="backups", + full_name="google.bigtable.admin.v2.ListBackupsResponse.backups", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.bigtable.admin.v2.ListBackupsResponse.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, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4026, + serialized_end=4123, +) + + +_RESTORETABLEREQUEST = _descriptor.Descriptor( + name="RestoreTableRequest", + full_name="google.bigtable.admin.v2.RestoreTableRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.bigtable.admin.v2.RestoreTableRequest.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, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="table_id", + full_name="google.bigtable.admin.v2.RestoreTableRequest.table_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="backup", + full_name="google.bigtable.admin.v2.RestoreTableRequest.backup", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="source", + full_name="google.bigtable.admin.v2.RestoreTableRequest.source", + index=0, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[], + ), + ], + serialized_start=4125, + serialized_end=4208, +) + + +_RESTORETABLEMETADATA = _descriptor.Descriptor( + name="RestoreTableMetadata", + full_name="google.bigtable.admin.v2.RestoreTableMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.RestoreTableMetadata.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="source_type", + full_name="google.bigtable.admin.v2.RestoreTableMetadata.source_type", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="backup_info", + full_name="google.bigtable.admin.v2.RestoreTableMetadata.backup_info", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="optimize_table_operation_name", + full_name="google.bigtable.admin.v2.RestoreTableMetadata.optimize_table_operation_name", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="progress", + full_name="google.bigtable.admin.v2.RestoreTableMetadata.progress", + 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, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="source_info", + full_name="google.bigtable.admin.v2.RestoreTableMetadata.source_info", + index=0, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[], + ), + ], + serialized_start=4211, + serialized_end=4491, +) + + +_OPTIMIZERESTOREDTABLEMETADATA = _descriptor.Descriptor( + name="OptimizeRestoredTableMetadata", + full_name="google.bigtable.admin.v2.OptimizeRestoredTableMetadata", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.OptimizeRestoredTableMetadata.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="progress", + full_name="google.bigtable.admin.v2.OptimizeRestoredTableMetadata.progress", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4493, + serialized_end=4601, +) + +_CREATETABLEREQUEST_SPLIT.containing_type = _CREATETABLEREQUEST +_CREATETABLEREQUEST.fields_by_name[ + "table" +].message_type = ( + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2._TABLE +) +_CREATETABLEREQUEST.fields_by_name[ + "initial_splits" +].message_type = _CREATETABLEREQUEST_SPLIT +_DROPROWRANGEREQUEST.oneofs_by_name["target"].fields.append( + _DROPROWRANGEREQUEST.fields_by_name["row_key_prefix"] +) +_DROPROWRANGEREQUEST.fields_by_name[ + "row_key_prefix" +].containing_oneof = _DROPROWRANGEREQUEST.oneofs_by_name["target"] +_DROPROWRANGEREQUEST.oneofs_by_name["target"].fields.append( + _DROPROWRANGEREQUEST.fields_by_name["delete_all_data_from_table"] +) +_DROPROWRANGEREQUEST.fields_by_name[ + "delete_all_data_from_table" +].containing_oneof = _DROPROWRANGEREQUEST.oneofs_by_name["target"] +_LISTTABLESREQUEST.fields_by_name[ + "view" +].enum_type = ( + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2._TABLE_VIEW +) +_LISTTABLESRESPONSE.fields_by_name[ + "tables" +].message_type = ( + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2._TABLE +) +_GETTABLEREQUEST.fields_by_name[ + "view" +].enum_type = ( + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2._TABLE_VIEW +) +_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name[ + "create" +].message_type = ( + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2._COLUMNFAMILY +) +_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name[ + "update" +].message_type = ( + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2._COLUMNFAMILY +) +_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.containing_type = _MODIFYCOLUMNFAMILIESREQUEST +_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.oneofs_by_name["mod"].fields.append( + _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name["create"] +) +_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name[ + "create" +].containing_oneof = _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.oneofs_by_name["mod"] +_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.oneofs_by_name["mod"].fields.append( + _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name["update"] +) +_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name[ + "update" +].containing_oneof = _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.oneofs_by_name["mod"] +_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.oneofs_by_name["mod"].fields.append( + _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name["drop"] +) +_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.fields_by_name[ + "drop" +].containing_oneof = _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION.oneofs_by_name["mod"] +_MODIFYCOLUMNFAMILIESREQUEST.fields_by_name[ + "modifications" +].message_type = _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION +_SNAPSHOTTABLEREQUEST.fields_by_name[ + "ttl" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_LISTSNAPSHOTSRESPONSE.fields_by_name[ + "snapshots" +].message_type = ( + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2._SNAPSHOT +) +_SNAPSHOTTABLEMETADATA.fields_by_name[ + "original_request" +].message_type = _SNAPSHOTTABLEREQUEST +_SNAPSHOTTABLEMETADATA.fields_by_name[ + "request_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_SNAPSHOTTABLEMETADATA.fields_by_name[ + "finish_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CREATETABLEFROMSNAPSHOTMETADATA.fields_by_name[ + "original_request" +].message_type = _CREATETABLEFROMSNAPSHOTREQUEST +_CREATETABLEFROMSNAPSHOTMETADATA.fields_by_name[ + "request_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CREATETABLEFROMSNAPSHOTMETADATA.fields_by_name[ + "finish_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CREATEBACKUPREQUEST.fields_by_name[ + "backup" +].message_type = ( + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2._BACKUP +) +_CREATEBACKUPMETADATA.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_CREATEBACKUPMETADATA.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_UPDATEBACKUPREQUEST.fields_by_name[ + "backup" +].message_type = ( + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2._BACKUP +) +_UPDATEBACKUPREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_LISTBACKUPSRESPONSE.fields_by_name[ + "backups" +].message_type = ( + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2._BACKUP +) +_RESTORETABLEREQUEST.oneofs_by_name["source"].fields.append( + _RESTORETABLEREQUEST.fields_by_name["backup"] +) +_RESTORETABLEREQUEST.fields_by_name[ + "backup" +].containing_oneof = _RESTORETABLEREQUEST.oneofs_by_name["source"] +_RESTORETABLEMETADATA.fields_by_name[ + "source_type" +].enum_type = ( + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2._RESTORESOURCETYPE +) +_RESTORETABLEMETADATA.fields_by_name[ + "backup_info" +].message_type = ( + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2._BACKUPINFO +) +_RESTORETABLEMETADATA.fields_by_name[ + "progress" +].message_type = ( + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_common__pb2._OPERATIONPROGRESS +) +_RESTORETABLEMETADATA.oneofs_by_name["source_info"].fields.append( + _RESTORETABLEMETADATA.fields_by_name["backup_info"] +) +_RESTORETABLEMETADATA.fields_by_name[ + "backup_info" +].containing_oneof = _RESTORETABLEMETADATA.oneofs_by_name["source_info"] +_OPTIMIZERESTOREDTABLEMETADATA.fields_by_name[ + "progress" +].message_type = ( + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_common__pb2._OPERATIONPROGRESS +) +DESCRIPTOR.message_types_by_name["CreateTableRequest"] = _CREATETABLEREQUEST +DESCRIPTOR.message_types_by_name[ + "CreateTableFromSnapshotRequest" +] = _CREATETABLEFROMSNAPSHOTREQUEST +DESCRIPTOR.message_types_by_name["DropRowRangeRequest"] = _DROPROWRANGEREQUEST +DESCRIPTOR.message_types_by_name["ListTablesRequest"] = _LISTTABLESREQUEST +DESCRIPTOR.message_types_by_name["ListTablesResponse"] = _LISTTABLESRESPONSE +DESCRIPTOR.message_types_by_name["GetTableRequest"] = _GETTABLEREQUEST +DESCRIPTOR.message_types_by_name["DeleteTableRequest"] = _DELETETABLEREQUEST +DESCRIPTOR.message_types_by_name[ + "ModifyColumnFamiliesRequest" +] = _MODIFYCOLUMNFAMILIESREQUEST +DESCRIPTOR.message_types_by_name[ + "GenerateConsistencyTokenRequest" +] = _GENERATECONSISTENCYTOKENREQUEST +DESCRIPTOR.message_types_by_name[ + "GenerateConsistencyTokenResponse" +] = _GENERATECONSISTENCYTOKENRESPONSE +DESCRIPTOR.message_types_by_name["CheckConsistencyRequest"] = _CHECKCONSISTENCYREQUEST +DESCRIPTOR.message_types_by_name["CheckConsistencyResponse"] = _CHECKCONSISTENCYRESPONSE +DESCRIPTOR.message_types_by_name["SnapshotTableRequest"] = _SNAPSHOTTABLEREQUEST +DESCRIPTOR.message_types_by_name["GetSnapshotRequest"] = _GETSNAPSHOTREQUEST +DESCRIPTOR.message_types_by_name["ListSnapshotsRequest"] = _LISTSNAPSHOTSREQUEST +DESCRIPTOR.message_types_by_name["ListSnapshotsResponse"] = _LISTSNAPSHOTSRESPONSE +DESCRIPTOR.message_types_by_name["DeleteSnapshotRequest"] = _DELETESNAPSHOTREQUEST +DESCRIPTOR.message_types_by_name["SnapshotTableMetadata"] = _SNAPSHOTTABLEMETADATA +DESCRIPTOR.message_types_by_name[ + "CreateTableFromSnapshotMetadata" +] = _CREATETABLEFROMSNAPSHOTMETADATA +DESCRIPTOR.message_types_by_name["CreateBackupRequest"] = _CREATEBACKUPREQUEST +DESCRIPTOR.message_types_by_name["CreateBackupMetadata"] = _CREATEBACKUPMETADATA +DESCRIPTOR.message_types_by_name["GetBackupRequest"] = _GETBACKUPREQUEST +DESCRIPTOR.message_types_by_name["UpdateBackupRequest"] = _UPDATEBACKUPREQUEST +DESCRIPTOR.message_types_by_name["DeleteBackupRequest"] = _DELETEBACKUPREQUEST +DESCRIPTOR.message_types_by_name["ListBackupsRequest"] = _LISTBACKUPSREQUEST +DESCRIPTOR.message_types_by_name["ListBackupsResponse"] = _LISTBACKUPSRESPONSE +DESCRIPTOR.message_types_by_name["RestoreTableRequest"] = _RESTORETABLEREQUEST +DESCRIPTOR.message_types_by_name["RestoreTableMetadata"] = _RESTORETABLEMETADATA +DESCRIPTOR.message_types_by_name[ + "OptimizeRestoredTableMetadata" +] = _OPTIMIZERESTOREDTABLEMETADATA +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CreateTableRequest = _reflection.GeneratedProtocolMessageType( + "CreateTableRequest", + (_message.Message,), + { + "Split": _reflection.GeneratedProtocolMessageType( + "Split", + (_message.Message,), + { + "DESCRIPTOR": _CREATETABLEREQUEST_SPLIT, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """An initial split point for a newly created table. + Attributes: + key: + Row key to use as an initial tablet boundary. + """, + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateTableRequest.Split) + }, + ), + "DESCRIPTOR": _CREATETABLEREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """Request message for [google.bigtable.admin.v2.BigtableTableAdmin.Creat + eTable][google.bigtable.admin.v2.BigtableTableAdmin.CreateTable] + Attributes: + parent: + Required. The unique name of the instance in which to create + the table. Values are of the form + ``projects/{project}/instances/{instance}``. + table_id: + Required. The name by which the new table should be referred + to within the parent instance, e.g., ``foobar`` rather than + ``{parent}/tables/foobar``. Maximum 50 characters. + table: + Required. The Table to create. + initial_splits: + The optional list of row keys that will be used to initially + split the table into several tablets (tablets are similar to + HBase regions). Given two split keys, ``s1`` and ``s2``, three + tablets will be created, spanning the key ranges: ``[, s1), + [s1, s2), [s2, )``. Example: - Row keys := ``["a", "apple", + "custom", "customer_1", "customer_2",`` ``"other", "zz"]`` + - initial_split_keys := ``["apple", "customer_1", + "customer_2", "other"]`` - Key assignment: - Tablet 1 + ``[, apple) => {"a"}.`` - Tablet 2 + ``[apple, customer_1) => {"apple", "custom"}.`` - + Tablet 3 ``[customer_1, customer_2) => {"customer_1"}.`` - + Tablet 4 ``[customer_2, other) => {"customer_2"}.`` - + Tablet 5 ``[other, ) => {"other", "zz"}.`` + """, + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateTableRequest) + }, +) +_sym_db.RegisterMessage(CreateTableRequest) +_sym_db.RegisterMessage(CreateTableRequest.Split) + +CreateTableFromSnapshotRequest = _reflection.GeneratedProtocolMessageType( + "CreateTableFromSnapshotRequest", + (_message.Message,), + { + "DESCRIPTOR": _CREATETABLEFROMSNAPSHOTREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """Request message for [google.bigtable.admin.v2.BigtableTableAdmin.Creat + eTableFromSnapshot][google.bigtable.admin.v2.BigtableTableAdmin.Create + TableFromSnapshot] Note: This is a private alpha release of Cloud + Bigtable snapshots. This feature is not currently available to most + Cloud Bigtable customers. This feature might be changed in backward- + incompatible ways and is not recommended for production use. It is not + subject to any SLA or deprecation policy. + Attributes: + parent: + Required. The unique name of the instance in which to create + the table. Values are of the form + ``projects/{project}/instances/{instance}``. + table_id: + Required. The name by which the new table should be referred + to within the parent instance, e.g., ``foobar`` rather than + ``{parent}/tables/foobar``. + source_snapshot: + Required. The unique name of the snapshot from which to + restore the table. The snapshot and the table must be in the + same instance. Values are of the form ``projects/{project}/ins + tances/{instance}/clusters/{cluster}/snapshots/{snapshot}``. + """, + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateTableFromSnapshotRequest) + }, +) +_sym_db.RegisterMessage(CreateTableFromSnapshotRequest) + +DropRowRangeRequest = _reflection.GeneratedProtocolMessageType( + "DropRowRangeRequest", + (_message.Message,), + { + "DESCRIPTOR": _DROPROWRANGEREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """Request message for [google.bigtable.admin.v2.BigtableTableAdmin.DropR + owRange][google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange] + Attributes: + name: + Required. The unique name of the table on which to drop a + range of rows. Values are of the form + ``projects/{project}/instances/{instance}/tables/{table}``. + target: + Delete all rows or by prefix. + row_key_prefix: + Delete all rows that start with this row key prefix. Prefix + cannot be zero length. + delete_all_data_from_table: + Delete all rows in the table. Setting this to false is a no- op. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.DropRowRangeRequest) - ), + }, ) _sym_db.RegisterMessage(DropRowRangeRequest) ListTablesRequest = _reflection.GeneratedProtocolMessageType( "ListTablesRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTTABLESREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", - __doc__="""Request message for - [google.bigtable.admin.v2.BigtableTableAdmin.ListTables][google.bigtable.admin.v2.BigtableTableAdmin.ListTables] - - + { + "DESCRIPTOR": _LISTTABLESREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """Request message for [google.bigtable.admin.v2.BigtableTableAdmin.ListT + ables][google.bigtable.admin.v2.BigtableTableAdmin.ListTables] Attributes: parent: - The unique name of the instance for which tables should be - listed. Values are of the form - ``projects//instances/``. + Required. The unique name of the instance for which tables + should be listed. Values are of the form + ``projects/{project}/instances/{instance}``. view: - The view to be applied to the returned tables' fields. - Defaults to ``NAME_ONLY`` if unspecified; no others are - currently supported. + The view to be applied to the returned tables’ fields. Only + NAME_ONLY view (default) and REPLICATION_VIEW are supported. page_size: - Maximum number of results per page. CURRENTLY UNIMPLEMENTED - AND IGNORED. + Maximum number of results per page. A page_size of zero lets + the server choose the number of items to return. A page_size + which is strictly positive will return at most that many + items. A negative page_size will cause an error. Following + the first request, subsequent paginated calls are not required + to pass a page_size. If a page_size is set in subsequent + calls, it must match the page_size given in the first request. page_token: The value of ``next_page_token`` returned by a previous call. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListTablesRequest) - ), + }, ) _sym_db.RegisterMessage(ListTablesRequest) ListTablesResponse = _reflection.GeneratedProtocolMessageType( "ListTablesResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTTABLESRESPONSE, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", - __doc__="""Response message for - [google.bigtable.admin.v2.BigtableTableAdmin.ListTables][google.bigtable.admin.v2.BigtableTableAdmin.ListTables] - - + { + "DESCRIPTOR": _LISTTABLESRESPONSE, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """Response message for [google.bigtable.admin.v2.BigtableTableAdmin.List + Tables][google.bigtable.admin.v2.BigtableTableAdmin.ListTables] Attributes: tables: The tables present in the requested instance. @@ -1685,67 +2592,62 @@ the next page of results. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListTablesResponse) - ), + }, ) _sym_db.RegisterMessage(ListTablesResponse) GetTableRequest = _reflection.GeneratedProtocolMessageType( "GetTableRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETTABLEREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", - __doc__="""Request message for - [google.bigtable.admin.v2.BigtableTableAdmin.GetTable][google.bigtable.admin.v2.BigtableTableAdmin.GetTable] - - + { + "DESCRIPTOR": _GETTABLEREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """Request message for [google.bigtable.admin.v2.BigtableTableAdmin.GetTa + ble][google.bigtable.admin.v2.BigtableTableAdmin.GetTable] Attributes: name: - The unique name of the requested table. Values are of the form - ``projects//instances//tables/
``. + Required. The unique name of the requested table. Values are + of the form + ``projects/{project}/instances/{instance}/tables/{table}``. view: - The view to be applied to the returned table's fields. + The view to be applied to the returned table’s fields. Defaults to ``SCHEMA_VIEW`` if unspecified. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GetTableRequest) - ), + }, ) _sym_db.RegisterMessage(GetTableRequest) DeleteTableRequest = _reflection.GeneratedProtocolMessageType( "DeleteTableRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETETABLEREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", - __doc__="""Request message for - [google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable][google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable] - - + { + "DESCRIPTOR": _DELETETABLEREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """Request message for [google.bigtable.admin.v2.BigtableTableAdmin.Delet + eTable][google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable] Attributes: name: - The unique name of the table to be deleted. Values are of the - form - ``projects//instances//tables/
``. + Required. The unique name of the table to be deleted. Values + are of the form + ``projects/{project}/instances/{instance}/tables/{table}``. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.DeleteTableRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteTableRequest) ModifyColumnFamiliesRequest = _reflection.GeneratedProtocolMessageType( "ModifyColumnFamiliesRequest", (_message.Message,), - dict( - Modification=_reflection.GeneratedProtocolMessageType( + { + "Modification": _reflection.GeneratedProtocolMessageType( "Modification", (_message.Message,), - dict( - DESCRIPTOR=_MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", - __doc__="""A create, update, or delete of a particular column family. - - + { + "DESCRIPTOR": _MODIFYCOLUMNFAMILIESREQUEST_MODIFICATION, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """A create, update, or delete of a particular column family. Attributes: id: The ID of the column family to be modified. @@ -1762,27 +2664,27 @@ no such family exists. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification) - ), - ), - DESCRIPTOR=_MODIFYCOLUMNFAMILIESREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", - __doc__="""Request message for - [google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies][google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies] - - + }, + ), + "DESCRIPTOR": _MODIFYCOLUMNFAMILIESREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """Request message for [google.bigtable.admin.v2.BigtableTableAdmin.Modif + yColumnFamilies][google.bigtable.admin.v2.BigtableTableAdmin.ModifyCol + umnFamilies] Attributes: name: - The unique name of the table whose families should be - modified. Values are of the form - ``projects//instances//tables/
``. + Required. The unique name of the table whose families should + be modified. Values are of the form + ``projects/{project}/instances/{instance}/tables/{table}``. modifications: - Modifications to be atomically applied to the specified - table's families. Entries are applied in order, meaning that - earlier modifications can be masked by later ones (in the case - of repeated updates to the same family, for example). + Required. Modifications to be atomically applied to the + specified table’s families. Entries are applied in order, + meaning that earlier modifications can be masked by later ones + (in the case of repeated updates to the same family, for + example). """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ModifyColumnFamiliesRequest) - ), + }, ) _sym_db.RegisterMessage(ModifyColumnFamiliesRequest) _sym_db.RegisterMessage(ModifyColumnFamiliesRequest.Modification) @@ -1790,77 +2692,73 @@ GenerateConsistencyTokenRequest = _reflection.GeneratedProtocolMessageType( "GenerateConsistencyTokenRequest", (_message.Message,), - dict( - DESCRIPTOR=_GENERATECONSISTENCYTOKENREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", - __doc__="""Request message for - [google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken][google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken] - - + { + "DESCRIPTOR": _GENERATECONSISTENCYTOKENREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """Request message for [google.bigtable.admin.v2.BigtableTableAdmin.Gener + ateConsistencyToken][google.bigtable.admin.v2.BigtableTableAdmin.Gener + ateConsistencyToken] Attributes: name: - The unique name of the Table for which to create a consistency - token. Values are of the form - ``projects//instances//tables/
``. + Required. The unique name of the Table for which to create a + consistency token. Values are of the form + ``projects/{project}/instances/{instance}/tables/{table}``. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GenerateConsistencyTokenRequest) - ), + }, ) _sym_db.RegisterMessage(GenerateConsistencyTokenRequest) GenerateConsistencyTokenResponse = _reflection.GeneratedProtocolMessageType( "GenerateConsistencyTokenResponse", (_message.Message,), - dict( - DESCRIPTOR=_GENERATECONSISTENCYTOKENRESPONSE, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", - __doc__="""Response message for - [google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken][google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken] - - + { + "DESCRIPTOR": _GENERATECONSISTENCYTOKENRESPONSE, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """Response message for [google.bigtable.admin.v2.BigtableTableAdmin.Gene + rateConsistencyToken][google.bigtable.admin.v2.BigtableTableAdmin.Gene + rateConsistencyToken] Attributes: consistency_token: The generated consistency token. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GenerateConsistencyTokenResponse) - ), + }, ) _sym_db.RegisterMessage(GenerateConsistencyTokenResponse) CheckConsistencyRequest = _reflection.GeneratedProtocolMessageType( "CheckConsistencyRequest", (_message.Message,), - dict( - DESCRIPTOR=_CHECKCONSISTENCYREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", - __doc__="""Request message for - [google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency][google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency] - - + { + "DESCRIPTOR": _CHECKCONSISTENCYREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """Request message for [google.bigtable.admin.v2.BigtableTableAdmin.Check + Consistency][google.bigtable.admin.v2.BigtableTableAdmin.CheckConsiste + ncy] Attributes: name: - The unique name of the Table for which to check replication - consistency. Values are of the form - ``projects//instances//tables/
``. + Required. The unique name of the Table for which to check + replication consistency. Values are of the form + ``projects/{project}/instances/{instance}/tables/{table}``. consistency_token: - The token created using GenerateConsistencyToken for the - Table. + Required. The token created using GenerateConsistencyToken for + the Table. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CheckConsistencyRequest) - ), + }, ) _sym_db.RegisterMessage(CheckConsistencyRequest) CheckConsistencyResponse = _reflection.GeneratedProtocolMessageType( "CheckConsistencyResponse", (_message.Message,), - dict( - DESCRIPTOR=_CHECKCONSISTENCYRESPONSE, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", - __doc__="""Response message for - [google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency][google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency] - - + { + "DESCRIPTOR": _CHECKCONSISTENCYRESPONSE, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """Response message for [google.bigtable.admin.v2.BigtableTableAdmin.Chec + kConsistency][google.bigtable.admin.v2.BigtableTableAdmin.CheckConsist + ency] Attributes: consistent: True only if the token is consistent. A token is consistent if @@ -1868,104 +2766,96 @@ the request. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CheckConsistencyResponse) - ), + }, ) _sym_db.RegisterMessage(CheckConsistencyResponse) SnapshotTableRequest = _reflection.GeneratedProtocolMessageType( "SnapshotTableRequest", (_message.Message,), - dict( - DESCRIPTOR=_SNAPSHOTTABLEREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", - __doc__="""Request message for - [google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable][google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable] - - Note: This is a private alpha release of Cloud Bigtable snapshots. This - feature is not currently available to most Cloud Bigtable customers. - This feature might be changed in backward-incompatible ways and is not - recommended for production use. It is not subject to any SLA or - deprecation policy. - - + { + "DESCRIPTOR": _SNAPSHOTTABLEREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """Request message for [google.bigtable.admin.v2.BigtableTableAdmin.Snaps + hotTable][google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable] + Note: This is a private alpha release of Cloud Bigtable snapshots. + This feature is not currently available to most Cloud Bigtable + customers. This feature might be changed in backward-incompatible ways + and is not recommended for production use. It is not subject to any + SLA or deprecation policy. Attributes: name: - The unique name of the table to have the snapshot taken. - Values are of the form - ``projects//instances//tables/
``. + Required. The unique name of the table to have the snapshot + taken. Values are of the form + ``projects/{project}/instances/{instance}/tables/{table}``. cluster: - The name of the cluster where the snapshot will be created in. - Values are of the form ``projects//instances//clusters/``. + Required. The name of the cluster where the snapshot will be + created in. Values are of the form ``projects/{project}/instan + ces/{instance}/clusters/{cluster}``. snapshot_id: - The ID by which the new snapshot should be referred to within - the parent cluster, e.g., ``mysnapshot`` of the form: ``[_a- - zA-Z0-9][-_.a-zA-Z0-9]*`` rather than ``projects//ins - tances//clusters//snapshots/mysnapshot``. + Required. The ID by which the new snapshot should be referred + to within the parent cluster, e.g., ``mysnapshot`` of the + form: ``[_a-zA-Z0-9][-_.a-zA-Z0-9]*`` rather than ``projects/{ + project}/instances/{instance}/clusters/{cluster}/snapshots/mys + napshot``. ttl: The amount of time that the new snapshot can stay active after - it is created. Once 'ttl' expires, the snapshot will get + it is created. Once ‘ttl’ expires, the snapshot will get deleted. The maximum amount of time a snapshot can stay active - is 7 days. If 'ttl' is not specified, the default value of 24 + is 7 days. If ‘ttl’ is not specified, the default value of 24 hours will be used. description: Description of the snapshot. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.SnapshotTableRequest) - ), + }, ) _sym_db.RegisterMessage(SnapshotTableRequest) GetSnapshotRequest = _reflection.GeneratedProtocolMessageType( "GetSnapshotRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETSNAPSHOTREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", - __doc__="""Request message for - [google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot][google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot] - - Note: This is a private alpha release of Cloud Bigtable snapshots. This - feature is not currently available to most Cloud Bigtable customers. - This feature might be changed in backward-incompatible ways and is not - recommended for production use. It is not subject to any SLA or - deprecation policy. - - + { + "DESCRIPTOR": _GETSNAPSHOTREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """Request message for [google.bigtable.admin.v2.BigtableTableAdmin.GetSn + apshot][google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot] + Note: This is a private alpha release of Cloud Bigtable snapshots. + This feature is not currently available to most Cloud Bigtable + customers. This feature might be changed in backward-incompatible ways + and is not recommended for production use. It is not subject to any + SLA or deprecation policy. Attributes: name: - The unique name of the requested snapshot. Values are of the - form ``projects//instances//clusters//snapshots/``. + Required. The unique name of the requested snapshot. Values + are of the form ``projects/{project}/instances/{instance}/clus + ters/{cluster}/snapshots/{snapshot}``. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GetSnapshotRequest) - ), + }, ) _sym_db.RegisterMessage(GetSnapshotRequest) ListSnapshotsRequest = _reflection.GeneratedProtocolMessageType( "ListSnapshotsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTSNAPSHOTSREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", - __doc__="""Request message for - [google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots][google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots] - - Note: This is a private alpha release of Cloud Bigtable snapshots. This - feature is not currently available to most Cloud Bigtable customers. - This feature might be changed in backward-incompatible ways and is not - recommended for production use. It is not subject to any SLA or - deprecation policy. - - + { + "DESCRIPTOR": _LISTSNAPSHOTSREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """Request message for [google.bigtable.admin.v2.BigtableTableAdmin.ListS + napshots][google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots] + Note: This is a private alpha release of Cloud Bigtable snapshots. + This feature is not currently available to most Cloud Bigtable + customers. This feature might be changed in backward-incompatible ways + and is not recommended for production use. It is not subject to any + SLA or deprecation policy. Attributes: parent: - The unique name of the cluster for which snapshots should be - listed. Values are of the form ``projects//instances/ - /clusters/``. Use `` = '-'`` to - list snapshots for all clusters in an instance, e.g., - ``projects//instances//clusters/-``. + Required. The unique name of the cluster for which snapshots + should be listed. Values are of the form ``projects/{project}/ + instances/{instance}/clusters/{cluster}``. Use ``{cluster} = + '-'`` to list snapshots for all clusters in an instance, e.g., + ``projects/{project}/instances/{instance}/clusters/-``. page_size: The maximum number of snapshots to return per page. CURRENTLY UNIMPLEMENTED AND IGNORED. @@ -1973,26 +2863,23 @@ The value of ``next_page_token`` returned by a previous call. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListSnapshotsRequest) - ), + }, ) _sym_db.RegisterMessage(ListSnapshotsRequest) ListSnapshotsResponse = _reflection.GeneratedProtocolMessageType( "ListSnapshotsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTSNAPSHOTSRESPONSE, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", - __doc__="""Response message for - [google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots][google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots] - - Note: This is a private alpha release of Cloud Bigtable snapshots. This - feature is not currently available to most Cloud Bigtable customers. - This feature might be changed in backward-incompatible ways and is not - recommended for production use. It is not subject to any SLA or - deprecation policy. - - + { + "DESCRIPTOR": _LISTSNAPSHOTSRESPONSE, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """Response message for [google.bigtable.admin.v2.BigtableTableAdmin.List + Snapshots][google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots] + Note: This is a private alpha release of Cloud Bigtable snapshots. + This feature is not currently available to most Cloud Bigtable + customers. This feature might be changed in backward-incompatible ways + and is not recommended for production use. It is not subject to any + SLA or deprecation policy. Attributes: snapshots: The snapshots present in the requested cluster. @@ -2002,52 +2889,46 @@ to get the next page of results. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListSnapshotsResponse) - ), + }, ) _sym_db.RegisterMessage(ListSnapshotsResponse) DeleteSnapshotRequest = _reflection.GeneratedProtocolMessageType( "DeleteSnapshotRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETESNAPSHOTREQUEST, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", - __doc__="""Request message for - [google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot][google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot] - - Note: This is a private alpha release of Cloud Bigtable snapshots. This - feature is not currently available to most Cloud Bigtable customers. - This feature might be changed in backward-incompatible ways and is not - recommended for production use. It is not subject to any SLA or - deprecation policy. - - + { + "DESCRIPTOR": _DELETESNAPSHOTREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """Request message for [google.bigtable.admin.v2.BigtableTableAdmin.Delet + eSnapshot][google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot] + Note: This is a private alpha release of Cloud Bigtable snapshots. + This feature is not currently available to most Cloud Bigtable + customers. This feature might be changed in backward-incompatible ways + and is not recommended for production use. It is not subject to any + SLA or deprecation policy. Attributes: name: - The unique name of the snapshot to be deleted. Values are of - the form ``projects//instances//clusters//snapshots/``. + Required. The unique name of the snapshot to be deleted. + Values are of the form ``projects/{project}/instances/{instanc + e}/clusters/{cluster}/snapshots/{snapshot}``. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.DeleteSnapshotRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteSnapshotRequest) SnapshotTableMetadata = _reflection.GeneratedProtocolMessageType( "SnapshotTableMetadata", (_message.Message,), - dict( - DESCRIPTOR=_SNAPSHOTTABLEMETADATA, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", - __doc__="""The metadata for the Operation returned by SnapshotTable. - - Note: This is a private alpha release of Cloud Bigtable snapshots. This - feature is not currently available to most Cloud Bigtable customers. - This feature might be changed in backward-incompatible ways and is not + { + "DESCRIPTOR": _SNAPSHOTTABLEMETADATA, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """The metadata for the Operation returned by SnapshotTable. Note: This + is a private alpha release of Cloud Bigtable snapshots. This feature + is not currently available to most Cloud Bigtable customers. This + feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. - - Attributes: original_request: The request that prompted the initiation of this SnapshotTable @@ -2059,26 +2940,22 @@ successfully. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.SnapshotTableMetadata) - ), + }, ) _sym_db.RegisterMessage(SnapshotTableMetadata) CreateTableFromSnapshotMetadata = _reflection.GeneratedProtocolMessageType( "CreateTableFromSnapshotMetadata", (_message.Message,), - dict( - DESCRIPTOR=_CREATETABLEFROMSNAPSHOTMETADATA, - __module__="google.cloud.bigtable.admin_v2.proto.bigtable_table_admin_pb2", - __doc__="""The metadata for the Operation returned by - CreateTableFromSnapshot. - - Note: This is a private alpha release of Cloud Bigtable snapshots. This - feature is not currently available to most Cloud Bigtable customers. - This feature might be changed in backward-incompatible ways and is not - recommended for production use. It is not subject to any SLA or - deprecation policy. - - + { + "DESCRIPTOR": _CREATETABLEFROMSNAPSHOTMETADATA, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """The metadata for the Operation returned by CreateTableFromSnapshot. + Note: This is a private alpha release of Cloud Bigtable snapshots. + This feature is not currently available to most Cloud Bigtable + customers. This feature might be changed in backward-incompatible ways + and is not recommended for production use. It is not subject to any + SLA or deprecation policy. Attributes: original_request: The request that prompted the initiation of this @@ -2090,21 +2967,352 @@ successfully. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateTableFromSnapshotMetadata) - ), + }, ) _sym_db.RegisterMessage(CreateTableFromSnapshotMetadata) +CreateBackupRequest = _reflection.GeneratedProtocolMessageType( + "CreateBackupRequest", + (_message.Message,), + { + "DESCRIPTOR": _CREATEBACKUPREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """The request for [CreateBackup][google.bigtable.admin.v2.BigtableTableA + dmin.CreateBackup]. + Attributes: + parent: + Required. This must be one of the clusters in the instance in + which this table is located. The backup will be stored in this + cluster. Values are of the form ``projects/{project}/instances + /{instance}/clusters/{cluster}``. + backup_id: + Required. The id of the backup to be created. The + ``backup_id`` along with the parent ``parent`` are combined as + {parent}/backups/{backup_id} to create the full backup name, + of the form: ``projects/{project}/instances/{instance}/cluster + s/{cluster}/backups/{backup_id}``. This string must be between + 1 and 50 characters in length and match the regex [_a- + zA-Z0-9][-_.a-zA-Z0-9]*. + backup: + Required. The backup to create. + """, + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateBackupRequest) + }, +) +_sym_db.RegisterMessage(CreateBackupRequest) + +CreateBackupMetadata = _reflection.GeneratedProtocolMessageType( + "CreateBackupMetadata", + (_message.Message,), + { + "DESCRIPTOR": _CREATEBACKUPMETADATA, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """Metadata type for the operation returned by [CreateBackup][google.bigt + able.admin.v2.BigtableTableAdmin.CreateBackup]. + Attributes: + name: + The name of the backup being created. + source_table: + The name of the table the backup is created from. + start_time: + The time at which this operation started. + end_time: + If set, the time at which this operation finished or was + cancelled. + """, + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CreateBackupMetadata) + }, +) +_sym_db.RegisterMessage(CreateBackupMetadata) + +GetBackupRequest = _reflection.GeneratedProtocolMessageType( + "GetBackupRequest", + (_message.Message,), + { + "DESCRIPTOR": _GETBACKUPREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """The request for + [GetBackup][google.bigtable.admin.v2.BigtableTableAdmin.GetBackup]. + Attributes: + name: + Required. Name of the backup. Values are of the form ``project + s/{project}/instances/{instance}/clusters/{cluster}/backups/{b + ackup}``. + """, + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GetBackupRequest) + }, +) +_sym_db.RegisterMessage(GetBackupRequest) + +UpdateBackupRequest = _reflection.GeneratedProtocolMessageType( + "UpdateBackupRequest", + (_message.Message,), + { + "DESCRIPTOR": _UPDATEBACKUPREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """The request for [UpdateBackup][google.bigtable.admin.v2.BigtableTableA + dmin.UpdateBackup]. + Attributes: + backup: + Required. The backup to update. ``backup.name``, and the + fields to be updated as specified by ``update_mask`` are + required. Other fields are ignored. Update is only supported + for the following fields: \* ``backup.expire_time``. + update_mask: + Required. A mask specifying which fields (e.g. + ``expire_time``) in the Backup resource should be updated. + This mask is relative to the Backup resource, not to the + request message. The field mask must always be specified; this + prevents any future fields from being erased accidentally by + clients that do not know about them. + """, + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.UpdateBackupRequest) + }, +) +_sym_db.RegisterMessage(UpdateBackupRequest) + +DeleteBackupRequest = _reflection.GeneratedProtocolMessageType( + "DeleteBackupRequest", + (_message.Message,), + { + "DESCRIPTOR": _DELETEBACKUPREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """The request for [DeleteBackup][google.bigtable.admin.v2.BigtableTableA + dmin.DeleteBackup]. + Attributes: + name: + Required. Name of the backup to delete. Values are of the form + ``projects/{project}/instances/{instance}/clusters/{cluster}/b + ackups/{backup}``. + """, + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.DeleteBackupRequest) + }, +) +_sym_db.RegisterMessage(DeleteBackupRequest) + +ListBackupsRequest = _reflection.GeneratedProtocolMessageType( + "ListBackupsRequest", + (_message.Message,), + { + "DESCRIPTOR": _LISTBACKUPSREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """The request for [ListBackups][google.bigtable.admin.v2.BigtableTableAd + min.ListBackups]. + Attributes: + parent: + Required. The cluster to list backups from. Values are of the + form ``projects/{project}/instances/{instance}/clusters/{clust + er}``. Use ``{cluster} = '-'`` to list backups for all + clusters in an instance, e.g., + ``projects/{project}/instances/{instance}/clusters/-``. + filter: + A filter expression that filters backups listed in the + response. The expression must specify the field name, a + comparison operator, and the value that you want to use for + filtering. The value must be a string, a number, or a boolean. + The comparison operator must be <, >, <=, >=, !=, =, or :. + Colon ‘:’ represents a HAS operator which is roughly + synonymous with equality. Filter rules are case insensitive. + The fields eligible for filtering are: \* ``name`` \* + ``source_table`` \* ``state`` \* ``start_time`` (and values + are of the format YYYY-MM-DDTHH:MM:SSZ) \* ``end_time`` (and + values are of the format YYYY-MM-DDTHH:MM:SSZ) \* + ``expire_time`` (and values are of the format YYYY-MM- + DDTHH:MM:SSZ) \* ``size_bytes`` To filter on multiple + expressions, provide each separate expression within + parentheses. By default, each expression is an AND expression. + However, you can include AND, OR, and NOT expressions + explicitly. Some examples of using filters are: - + ``name:"exact"`` –> The backup’s name is the string “exact”. - + ``name:howl`` –> The backup’s name contains the string “howl”. + - ``source_table:prod`` –> The source_table’s name contains + the string “prod”. - ``state:CREATING`` –> The backup is + pending creation. - ``state:READY`` –> The backup is fully + created and ready for use. - ``(name:howl) AND (start_time < + \"2018-03-28T14:50:00Z\")`` –> The backup name contains the + string “howl” and start_time of the backup is before + 2018-03-28T14:50:00Z. - ``size_bytes > 10000000000`` –> The + backup’s size is greater than 10GB + order_by: + An expression for specifying the sort order of the results of + the request. The string value should specify one or more + fields in [Backup][google.bigtable.admin.v2.Backup]. The full + syntax is described at https://aip.dev/132#ordering. Fields + supported are: \* name \* source_table \* expire_time \* + start_time \* end_time \* size_bytes \* state For example, + “start_time”. The default sorting order is ascending. To + specify descending order for the field, a suffix " desc" + should be appended to the field name. For example, “start_time + desc”. Redundant space characters in the syntax are + insigificant. If order_by is empty, results will be sorted by + ``start_time`` in descending order starting from the most + recently created backup. + page_size: + Number of backups to be returned in the response. If 0 or + less, defaults to the server’s maximum allowed page size. + page_token: + If non-empty, ``page_token`` should contain a [next_page_token + ][google.bigtable.admin.v2.ListBackupsResponse.next_page_token + ] from a previous [ListBackupsResponse][google.bigtable.admin. + v2.ListBackupsResponse] to the same ``parent`` and with the + same ``filter``. + """, + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListBackupsRequest) + }, +) +_sym_db.RegisterMessage(ListBackupsRequest) + +ListBackupsResponse = _reflection.GeneratedProtocolMessageType( + "ListBackupsResponse", + (_message.Message,), + { + "DESCRIPTOR": _LISTBACKUPSRESPONSE, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """The response for [ListBackups][google.bigtable.admin.v2.BigtableTableA + dmin.ListBackups]. + Attributes: + backups: + The list of matching backups. + next_page_token: + \ ``next_page_token`` can be sent in a subsequent [ListBackups + ][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] + call to fetch more of the matching backups. + """, + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ListBackupsResponse) + }, +) +_sym_db.RegisterMessage(ListBackupsResponse) + +RestoreTableRequest = _reflection.GeneratedProtocolMessageType( + "RestoreTableRequest", + (_message.Message,), + { + "DESCRIPTOR": _RESTORETABLEREQUEST, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """The request for [RestoreTable][google.bigtable.admin.v2.BigtableTableA + dmin.RestoreTable]. + Attributes: + parent: + Required. The name of the instance in which to create the + restored table. This instance must be the parent of the source + backup. Values are of the form + ``projects//instances/``. + table_id: + Required. The id of the table to create and restore to. This + table must not already exist. The ``table_id`` appended to + ``parent`` forms the full table name of the form + ``projects//instances//tables/``. + source: + Required. The source from which to restore. + backup: + Name of the backup from which to restore. Values are of the + form ``projects//instances//clusters//backups/``. + """, + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.RestoreTableRequest) + }, +) +_sym_db.RegisterMessage(RestoreTableRequest) + +RestoreTableMetadata = _reflection.GeneratedProtocolMessageType( + "RestoreTableMetadata", + (_message.Message,), + { + "DESCRIPTOR": _RESTORETABLEMETADATA, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """Metadata type for the long-running operation returned by [RestoreTable + ][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]. + Attributes: + name: + Name of the table being created and restored to. + source_type: + The type of the restore source. + source_info: + Information about the source used to restore the table, as + specified by ``source`` in [RestoreTableRequest][google.bigtab + le.admin.v2.RestoreTableRequest]. + optimize_table_operation_name: + If exists, the name of the long-running operation that will be + used to track the post-restore optimization process to + optimize the performance of the restored table. The metadata + type of the long-running operation is + [OptimizeRestoreTableMetadata][]. The response type is + [Empty][google.protobuf.Empty]. This long-running operation + may be automatically created by the system if applicable after + the RestoreTable long-running operation completes + successfully. This operation may not be created if the table + is already optimized or the restore was not successful. + progress: + The progress of the [RestoreTable][google.bigtable.admin.v2.Bi + gtableTableAdmin.RestoreTable] operation. + """, + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.RestoreTableMetadata) + }, +) +_sym_db.RegisterMessage(RestoreTableMetadata) + +OptimizeRestoredTableMetadata = _reflection.GeneratedProtocolMessageType( + "OptimizeRestoredTableMetadata", + (_message.Message,), + { + "DESCRIPTOR": _OPTIMIZERESTOREDTABLEMETADATA, + "__module__": "google.cloud.bigtable_admin_v2.proto.bigtable_table_admin_pb2", + "__doc__": """Metadata type for the long-running operation used to track the + progress of optimizations performed on a newly restored table. This + long-running operation is automatically created by the system after + the successful completion of a table restore, and cannot be cancelled. + Attributes: + name: + Name of the restored table being optimized. + progress: + The progress of the post-restore optimizations. + """, + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.OptimizeRestoredTableMetadata) + }, +) +_sym_db.RegisterMessage(OptimizeRestoredTableMetadata) + DESCRIPTOR._options = None +_CREATETABLEREQUEST.fields_by_name["parent"]._options = None +_CREATETABLEREQUEST.fields_by_name["table_id"]._options = None +_CREATETABLEREQUEST.fields_by_name["table"]._options = None +_CREATETABLEFROMSNAPSHOTREQUEST.fields_by_name["parent"]._options = None +_CREATETABLEFROMSNAPSHOTREQUEST.fields_by_name["table_id"]._options = None +_CREATETABLEFROMSNAPSHOTREQUEST.fields_by_name["source_snapshot"]._options = None +_DROPROWRANGEREQUEST.fields_by_name["name"]._options = None +_LISTTABLESREQUEST.fields_by_name["parent"]._options = None +_GETTABLEREQUEST.fields_by_name["name"]._options = None +_DELETETABLEREQUEST.fields_by_name["name"]._options = None +_MODIFYCOLUMNFAMILIESREQUEST.fields_by_name["name"]._options = None +_MODIFYCOLUMNFAMILIESREQUEST.fields_by_name["modifications"]._options = None +_GENERATECONSISTENCYTOKENREQUEST.fields_by_name["name"]._options = None +_CHECKCONSISTENCYREQUEST.fields_by_name["name"]._options = None +_CHECKCONSISTENCYREQUEST.fields_by_name["consistency_token"]._options = None +_SNAPSHOTTABLEREQUEST.fields_by_name["name"]._options = None +_SNAPSHOTTABLEREQUEST.fields_by_name["cluster"]._options = None +_SNAPSHOTTABLEREQUEST.fields_by_name["snapshot_id"]._options = None +_GETSNAPSHOTREQUEST.fields_by_name["name"]._options = None +_LISTSNAPSHOTSREQUEST.fields_by_name["parent"]._options = None +_DELETESNAPSHOTREQUEST.fields_by_name["name"]._options = None +_CREATEBACKUPREQUEST.fields_by_name["parent"]._options = None +_CREATEBACKUPREQUEST.fields_by_name["backup_id"]._options = None +_CREATEBACKUPREQUEST.fields_by_name["backup"]._options = None +_GETBACKUPREQUEST.fields_by_name["name"]._options = None +_UPDATEBACKUPREQUEST.fields_by_name["backup"]._options = None +_UPDATEBACKUPREQUEST.fields_by_name["update_mask"]._options = None +_DELETEBACKUPREQUEST.fields_by_name["name"]._options = None +_LISTBACKUPSREQUEST.fields_by_name["parent"]._options = None _BIGTABLETABLEADMIN = _descriptor.ServiceDescriptor( name="BigtableTableAdmin", full_name="google.bigtable.admin.v2.BigtableTableAdmin", file=DESCRIPTOR, index=0, - serialized_options=None, - serialized_start=2465, - serialized_end=5178, + serialized_options=b"\312A\034bigtableadmin.googleapis.com\322A\273\002https://www.googleapis.com/auth/bigtable.admin,https://www.googleapis.com/auth/bigtable.admin.table,https://www.googleapis.com/auth/cloud-bigtable.admin,https://www.googleapis.com/auth/cloud-bigtable.admin.table,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only", + create_key=_descriptor._internal_create_key, + serialized_start=4604, + serialized_end=9284, methods=[ _descriptor.MethodDescriptor( name="CreateTable", @@ -2112,10 +3320,9 @@ index=0, containing_service=None, input_type=_CREATETABLEREQUEST, - output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._TABLE, - serialized_options=_b( - '\202\323\344\223\002/"*/v2/{parent=projects/*/instances/*}/tables:\001*' - ), + output_type=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2._TABLE, + serialized_options=b'\202\323\344\223\002/"*/v2/{parent=projects/*/instances/*}/tables:\001*\332A\025parent,table_id,table', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="CreateTableFromSnapshot", @@ -2124,9 +3331,8 @@ containing_service=None, input_type=_CREATETABLEFROMSNAPSHOTREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\002B"=/v2/{parent=projects/*/instances/*}/tables:createFromSnapshot:\001*' - ), + serialized_options=b'\202\323\344\223\002B"=/v2/{parent=projects/*/instances/*}/tables:createFromSnapshot:\001*\332A\037parent,table_id,source_snapshot\312A(\n\005Table\022\037CreateTableFromSnapshotMetadata', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListTables", @@ -2135,9 +3341,8 @@ containing_service=None, input_type=_LISTTABLESREQUEST, output_type=_LISTTABLESRESPONSE, - serialized_options=_b( - "\202\323\344\223\002,\022*/v2/{parent=projects/*/instances/*}/tables" - ), + serialized_options=b"\202\323\344\223\002,\022*/v2/{parent=projects/*/instances/*}/tables\332A\006parent", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetTable", @@ -2145,10 +3350,9 @@ index=3, containing_service=None, input_type=_GETTABLEREQUEST, - output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._TABLE, - serialized_options=_b( - "\202\323\344\223\002,\022*/v2/{name=projects/*/instances/*/tables/*}" - ), + output_type=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2._TABLE, + serialized_options=b"\202\323\344\223\002,\022*/v2/{name=projects/*/instances/*/tables/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteTable", @@ -2157,9 +3361,8 @@ containing_service=None, input_type=_DELETETABLEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002,**/v2/{name=projects/*/instances/*/tables/*}" - ), + serialized_options=b"\202\323\344\223\002,**/v2/{name=projects/*/instances/*/tables/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ModifyColumnFamilies", @@ -2167,10 +3370,9 @@ index=5, containing_service=None, input_type=_MODIFYCOLUMNFAMILIESREQUEST, - output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._TABLE, - serialized_options=_b( - '\202\323\344\223\002D"?/v2/{name=projects/*/instances/*/tables/*}:modifyColumnFamilies:\001*' - ), + output_type=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2._TABLE, + serialized_options=b'\202\323\344\223\002D"?/v2/{name=projects/*/instances/*/tables/*}:modifyColumnFamilies:\001*\332A\022name,modifications', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DropRowRange", @@ -2179,9 +3381,8 @@ containing_service=None, input_type=_DROPROWRANGEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - '\202\323\344\223\002<"7/v2/{name=projects/*/instances/*/tables/*}:dropRowRange:\001*' - ), + serialized_options=b'\202\323\344\223\002<"7/v2/{name=projects/*/instances/*/tables/*}:dropRowRange:\001*', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GenerateConsistencyToken", @@ -2190,9 +3391,8 @@ containing_service=None, input_type=_GENERATECONSISTENCYTOKENREQUEST, output_type=_GENERATECONSISTENCYTOKENRESPONSE, - serialized_options=_b( - '\202\323\344\223\002H"C/v2/{name=projects/*/instances/*/tables/*}:generateConsistencyToken:\001*' - ), + serialized_options=b'\202\323\344\223\002H"C/v2/{name=projects/*/instances/*/tables/*}:generateConsistencyToken:\001*\332A\004name', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="CheckConsistency", @@ -2201,9 +3401,8 @@ containing_service=None, input_type=_CHECKCONSISTENCYREQUEST, output_type=_CHECKCONSISTENCYRESPONSE, - serialized_options=_b( - '\202\323\344\223\002@";/v2/{name=projects/*/instances/*/tables/*}:checkConsistency:\001*' - ), + serialized_options=b'\202\323\344\223\002@";/v2/{name=projects/*/instances/*/tables/*}:checkConsistency:\001*\332A\026name,consistency_token', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="SnapshotTable", @@ -2212,9 +3411,8 @@ containing_service=None, input_type=_SNAPSHOTTABLEREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\0028"3/v2/{name=projects/*/instances/*/tables/*}:snapshot:\001*' - ), + serialized_options=b'\202\323\344\223\0028"3/v2/{name=projects/*/instances/*/tables/*}:snapshot:\001*\332A$name,cluster,snapshot_id,description\312A!\n\010Snapshot\022\025SnapshotTableMetadata', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetSnapshot", @@ -2222,10 +3420,9 @@ index=10, containing_service=None, input_type=_GETSNAPSHOTREQUEST, - output_type=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2._SNAPSHOT, - serialized_options=_b( - "\202\323\344\223\002:\0228/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}" - ), + output_type=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2._SNAPSHOT, + serialized_options=b"\202\323\344\223\002:\0228/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListSnapshots", @@ -2234,9 +3431,8 @@ containing_service=None, input_type=_LISTSNAPSHOTSREQUEST, output_type=_LISTSNAPSHOTSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002:\0228/v2/{parent=projects/*/instances/*/clusters/*}/snapshots" - ), + serialized_options=b"\202\323\344\223\002:\0228/v2/{parent=projects/*/instances/*/clusters/*}/snapshots\332A\006parent", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteSnapshot", @@ -2245,42 +3441,98 @@ containing_service=None, input_type=_DELETESNAPSHOTREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002:*8/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}" - ), + serialized_options=b"\202\323\344\223\002:*8/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}\332A\004name", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="CreateBackup", + full_name="google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup", + index=13, + containing_service=None, + input_type=_CREATEBACKUPREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + serialized_options=b'\202\323\344\223\002@"6/v2/{parent=projects/*/instances/*/clusters/*}/backups:\006backup\312A\036\n\006Backup\022\024CreateBackupMetadata\332A\027parent,backup_id,backup', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="GetBackup", + full_name="google.bigtable.admin.v2.BigtableTableAdmin.GetBackup", + index=14, + containing_service=None, + input_type=_GETBACKUPREQUEST, + output_type=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2._BACKUP, + serialized_options=b"\202\323\344\223\0028\0226/v2/{name=projects/*/instances/*/clusters/*/backups/*}\332A\004name", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="UpdateBackup", + full_name="google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup", + index=15, + containing_service=None, + input_type=_UPDATEBACKUPREQUEST, + output_type=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2._BACKUP, + serialized_options=b"\202\323\344\223\002G2=/v2/{backup.name=projects/*/instances/*/clusters/*/backups/*}:\006backup\332A\022backup,update_mask", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="DeleteBackup", + full_name="google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup", + index=16, + containing_service=None, + input_type=_DELETEBACKUPREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + serialized_options=b"\202\323\344\223\0028*6/v2/{name=projects/*/instances/*/clusters/*/backups/*}\332A\004name", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="ListBackups", + full_name="google.bigtable.admin.v2.BigtableTableAdmin.ListBackups", + index=17, + containing_service=None, + input_type=_LISTBACKUPSREQUEST, + output_type=_LISTBACKUPSRESPONSE, + serialized_options=b"\202\323\344\223\0028\0226/v2/{parent=projects/*/instances/*/clusters/*}/backups\332A\006parent", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="RestoreTable", + full_name="google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable", + index=18, + containing_service=None, + input_type=_RESTORETABLEREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + serialized_options=b'\202\323\344\223\0027"2/v2/{parent=projects/*/instances/*}/tables:restore:\001*\312A\035\n\005Table\022\024RestoreTableMetadata', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetIamPolicy", full_name="google.bigtable.admin.v2.BigtableTableAdmin.GetIamPolicy", - index=13, + index=19, containing_service=None, input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._GETIAMPOLICYREQUEST, output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, - serialized_options=_b( - '\202\323\344\223\002@";/v2/{resource=projects/*/instances/*/tables/*}:getIamPolicy:\001*' - ), + serialized_options=b'\202\323\344\223\002@";/v2/{resource=projects/*/instances/*/tables/*}:getIamPolicy:\001*\332A\010resource', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="SetIamPolicy", full_name="google.bigtable.admin.v2.BigtableTableAdmin.SetIamPolicy", - index=14, + index=20, containing_service=None, input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._SETIAMPOLICYREQUEST, output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, - serialized_options=_b( - '\202\323\344\223\002@";/v2/{resource=projects/*/instances/*/tables/*}:setIamPolicy:\001*' - ), + serialized_options=b'\202\323\344\223\002\216\001";/v2/{resource=projects/*/instances/*/tables/*}:setIamPolicy:\001*ZL"G/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:setIamPolicy:\001*\332A\017resource,policy', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="TestIamPermissions", full_name="google.bigtable.admin.v2.BigtableTableAdmin.TestIamPermissions", - index=15, + index=21, containing_service=None, input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSREQUEST, output_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSRESPONSE, - serialized_options=_b( - '\202\323\344\223\002F"A/v2/{resource=projects/*/instances/*/tables/*}:testIamPermissions:\001*' - ), + serialized_options=b'\202\323\344\223\002\232\001"A/v2/{resource=projects/*/instances/*/tables/*}:testIamPermissions:\001*ZR"M/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:testIamPermissions:\001*\332A\024resource,permissions', + create_key=_descriptor._internal_create_key, ), ], ) diff --git a/google/cloud/bigtable_admin_v2/proto/bigtable_table_admin_pb2_grpc.py b/google/cloud/bigtable_admin_v2/proto/bigtable_table_admin_pb2_grpc.py index f152581fe..54d6ac9cc 100644 --- a/google/cloud/bigtable_admin_v2/proto/bigtable_table_admin_pb2_grpc.py +++ b/google/cloud/bigtable_admin_v2/proto/bigtable_table_admin_pb2_grpc.py @@ -2,10 +2,10 @@ import grpc from google.cloud.bigtable_admin_v2.proto import ( - bigtable_table_admin_pb2 as google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2, + bigtable_table_admin_pb2 as google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2, ) from google.cloud.bigtable_admin_v2.proto import ( - table_pb2 as google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2, + table_pb2 as google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2, ) from google.iam.v1 import iam_policy_pb2 as google_dot_iam_dot_v1_dot_iam__policy__pb2 from google.iam.v1 import policy_pb2 as google_dot_iam_dot_v1_dot_policy__pb2 @@ -31,69 +31,99 @@ def __init__(self, channel): """ self.CreateTable = channel.unary_unary( "/google.bigtable.admin.v2.BigtableTableAdmin/CreateTable", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CreateTableRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.Table.FromString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CreateTableRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2.Table.FromString, ) self.CreateTableFromSnapshot = channel.unary_unary( "/google.bigtable.admin.v2.BigtableTableAdmin/CreateTableFromSnapshot", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CreateTableFromSnapshotRequest.SerializeToString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CreateTableFromSnapshotRequest.SerializeToString, response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) self.ListTables = channel.unary_unary( "/google.bigtable.admin.v2.BigtableTableAdmin/ListTables", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListTablesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListTablesResponse.FromString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListTablesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListTablesResponse.FromString, ) self.GetTable = channel.unary_unary( "/google.bigtable.admin.v2.BigtableTableAdmin/GetTable", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GetTableRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.Table.FromString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GetTableRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2.Table.FromString, ) self.DeleteTable = channel.unary_unary( "/google.bigtable.admin.v2.BigtableTableAdmin/DeleteTable", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DeleteTableRequest.SerializeToString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DeleteTableRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) self.ModifyColumnFamilies = channel.unary_unary( "/google.bigtable.admin.v2.BigtableTableAdmin/ModifyColumnFamilies", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ModifyColumnFamiliesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.Table.FromString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ModifyColumnFamiliesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2.Table.FromString, ) self.DropRowRange = channel.unary_unary( "/google.bigtable.admin.v2.BigtableTableAdmin/DropRowRange", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DropRowRangeRequest.SerializeToString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DropRowRangeRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) self.GenerateConsistencyToken = channel.unary_unary( "/google.bigtable.admin.v2.BigtableTableAdmin/GenerateConsistencyToken", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GenerateConsistencyTokenRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GenerateConsistencyTokenResponse.FromString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GenerateConsistencyTokenRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GenerateConsistencyTokenResponse.FromString, ) self.CheckConsistency = channel.unary_unary( "/google.bigtable.admin.v2.BigtableTableAdmin/CheckConsistency", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CheckConsistencyRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CheckConsistencyResponse.FromString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CheckConsistencyRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CheckConsistencyResponse.FromString, ) self.SnapshotTable = channel.unary_unary( "/google.bigtable.admin.v2.BigtableTableAdmin/SnapshotTable", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.SnapshotTableRequest.SerializeToString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.SnapshotTableRequest.SerializeToString, response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) self.GetSnapshot = channel.unary_unary( "/google.bigtable.admin.v2.BigtableTableAdmin/GetSnapshot", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GetSnapshotRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.Snapshot.FromString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GetSnapshotRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2.Snapshot.FromString, ) self.ListSnapshots = channel.unary_unary( "/google.bigtable.admin.v2.BigtableTableAdmin/ListSnapshots", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListSnapshotsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListSnapshotsResponse.FromString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListSnapshotsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListSnapshotsResponse.FromString, ) self.DeleteSnapshot = channel.unary_unary( "/google.bigtable.admin.v2.BigtableTableAdmin/DeleteSnapshot", - request_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DeleteSnapshotRequest.SerializeToString, + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DeleteSnapshotRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) + self.CreateBackup = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableTableAdmin/CreateBackup", + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CreateBackupRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + ) + self.GetBackup = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableTableAdmin/GetBackup", + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GetBackupRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2.Backup.FromString, + ) + self.UpdateBackup = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableTableAdmin/UpdateBackup", + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.UpdateBackupRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2.Backup.FromString, + ) + self.DeleteBackup = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableTableAdmin/DeleteBackup", + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DeleteBackupRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.ListBackups = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableTableAdmin/ListBackups", + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListBackupsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListBackupsResponse.FromString, + ) + self.RestoreTable = channel.unary_unary( + "/google.bigtable.admin.v2.BigtableTableAdmin/RestoreTable", + request_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.RestoreTableRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + ) self.GetIamPolicy = channel.unary_unary( "/google.bigtable.admin.v2.BigtableTableAdmin/GetIamPolicy", request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.SerializeToString, @@ -254,17 +284,75 @@ def DeleteSnapshot(self, request, context): context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") + def CreateBackup(self, request, context): + """Starts creating a new Cloud Bigtable Backup. The returned backup + [long-running operation][google.longrunning.Operation] can be used to + track creation of the backup. The + [metadata][google.longrunning.Operation.metadata] field type is + [CreateBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata]. The + [response][google.longrunning.Operation.response] field type is + [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the + returned operation will stop the creation and delete the backup. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def GetBackup(self, request, context): + """Gets metadata on a pending or completed Cloud Bigtable Backup. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def UpdateBackup(self, request, context): + """Updates a pending or completed Cloud Bigtable Backup. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def DeleteBackup(self, request, context): + """Deletes a pending or completed Cloud Bigtable backup. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def ListBackups(self, request, context): + """Lists Cloud Bigtable backups. Returns both completed and pending + backups. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def RestoreTable(self, request, context): + """Create a new table by restoring from a completed backup. The new table + must be in the same instance as the instance containing the backup. The + returned table [long-running operation][google.longrunning.Operation] can + be used to track the progress of the operation, and to cancel it. The + [metadata][google.longrunning.Operation.metadata] field type is + [RestoreTableMetadata][google.bigtable.admin.RestoreTableMetadata]. The + [response][google.longrunning.Operation.response] type is + [Table][google.bigtable.admin.v2.Table], if successful. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + def GetIamPolicy(self, request, context): - """Gets the access control policy for a table resource. Returns an empty - policy if an table exists but does not have a policy set. + """Gets the access control policy for a resource. + Returns an empty policy if the resource exists but does not have a policy + set. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def SetIamPolicy(self, request, context): - """Sets the access control policy on a table resource. Replaces any existing - policy. + """Sets the access control policy on a Table or Backup resource. + Replaces any existing policy. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") @@ -282,69 +370,99 @@ def add_BigtableTableAdminServicer_to_server(servicer, server): rpc_method_handlers = { "CreateTable": grpc.unary_unary_rpc_method_handler( servicer.CreateTable, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CreateTableRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.Table.SerializeToString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CreateTableRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2.Table.SerializeToString, ), "CreateTableFromSnapshot": grpc.unary_unary_rpc_method_handler( servicer.CreateTableFromSnapshot, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CreateTableFromSnapshotRequest.FromString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CreateTableFromSnapshotRequest.FromString, response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, ), "ListTables": grpc.unary_unary_rpc_method_handler( servicer.ListTables, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListTablesRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListTablesResponse.SerializeToString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListTablesRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListTablesResponse.SerializeToString, ), "GetTable": grpc.unary_unary_rpc_method_handler( servicer.GetTable, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GetTableRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.Table.SerializeToString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GetTableRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2.Table.SerializeToString, ), "DeleteTable": grpc.unary_unary_rpc_method_handler( servicer.DeleteTable, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DeleteTableRequest.FromString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DeleteTableRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), "ModifyColumnFamilies": grpc.unary_unary_rpc_method_handler( servicer.ModifyColumnFamilies, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ModifyColumnFamiliesRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.Table.SerializeToString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ModifyColumnFamiliesRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2.Table.SerializeToString, ), "DropRowRange": grpc.unary_unary_rpc_method_handler( servicer.DropRowRange, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DropRowRangeRequest.FromString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DropRowRangeRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), "GenerateConsistencyToken": grpc.unary_unary_rpc_method_handler( servicer.GenerateConsistencyToken, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GenerateConsistencyTokenRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GenerateConsistencyTokenResponse.SerializeToString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GenerateConsistencyTokenRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GenerateConsistencyTokenResponse.SerializeToString, ), "CheckConsistency": grpc.unary_unary_rpc_method_handler( servicer.CheckConsistency, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CheckConsistencyRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CheckConsistencyResponse.SerializeToString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CheckConsistencyRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CheckConsistencyResponse.SerializeToString, ), "SnapshotTable": grpc.unary_unary_rpc_method_handler( servicer.SnapshotTable, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.SnapshotTableRequest.FromString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.SnapshotTableRequest.FromString, response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, ), "GetSnapshot": grpc.unary_unary_rpc_method_handler( servicer.GetSnapshot, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GetSnapshotRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_table__pb2.Snapshot.SerializeToString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GetSnapshotRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2.Snapshot.SerializeToString, ), "ListSnapshots": grpc.unary_unary_rpc_method_handler( servicer.ListSnapshots, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListSnapshotsRequest.FromString, - response_serializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListSnapshotsResponse.SerializeToString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListSnapshotsRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListSnapshotsResponse.SerializeToString, ), "DeleteSnapshot": grpc.unary_unary_rpc_method_handler( servicer.DeleteSnapshot, - request_deserializer=google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DeleteSnapshotRequest.FromString, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DeleteSnapshotRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "CreateBackup": grpc.unary_unary_rpc_method_handler( + servicer.CreateBackup, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.CreateBackupRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + "GetBackup": grpc.unary_unary_rpc_method_handler( + servicer.GetBackup, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.GetBackupRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2.Backup.SerializeToString, + ), + "UpdateBackup": grpc.unary_unary_rpc_method_handler( + servicer.UpdateBackup, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.UpdateBackupRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_table__pb2.Backup.SerializeToString, + ), + "DeleteBackup": grpc.unary_unary_rpc_method_handler( + servicer.DeleteBackup, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.DeleteBackupRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), + "ListBackups": grpc.unary_unary_rpc_method_handler( + servicer.ListBackups, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListBackupsRequest.FromString, + response_serializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.ListBackupsResponse.SerializeToString, + ), + "RestoreTable": grpc.unary_unary_rpc_method_handler( + servicer.RestoreTable, + request_deserializer=google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_bigtable__table__admin__pb2.RestoreTableRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), "GetIamPolicy": grpc.unary_unary_rpc_method_handler( servicer.GetIamPolicy, request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.FromString, diff --git a/google/cloud/bigtable_admin_v2/proto/common.proto b/google/cloud/bigtable_admin_v2/proto/common.proto index ad4d73599..89d24ea97 100644 --- a/google/cloud/bigtable_admin_v2/proto/common.proto +++ b/google/cloud/bigtable_admin_v2/proto/common.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,13 +11,11 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// syntax = "proto3"; package google.bigtable.admin.v2; -import "google/api/annotations.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Bigtable.Admin.V2"; @@ -38,3 +36,18 @@ enum StorageType { // Magnetic drive (HDD) storage should be used. HDD = 2; } + +// Encapsulates progress related information for a Cloud Bigtable long +// running operation. +message OperationProgress { + // Percent completion of the operation. + // Values are between 0 and 100 inclusive. + int32 progress_percent = 1; + + // Time the request was received. + google.protobuf.Timestamp start_time = 2; + + // If set, the time at which this operation failed or was completed + // successfully. + google.protobuf.Timestamp end_time = 3; +} diff --git a/google/cloud/bigtable_admin_v2/proto/common_pb2.py b/google/cloud/bigtable_admin_v2/proto/common_pb2.py index 7d40f043d..f0f5ff399 100644 --- a/google/cloud/bigtable_admin_v2/proto/common_pb2.py +++ b/google/cloud/bigtable_admin_v2/proto/common_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/bigtable/admin_v2/proto/common.proto +# source: google/cloud/bigtable_admin_v2/proto/common.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message @@ -16,24 +13,17 @@ _sym_db = _symbol_database.Default() -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name="google/cloud/bigtable/admin_v2/proto/common.proto", + name="google/cloud/bigtable_admin_v2/proto/common.proto", package="google.bigtable.admin.v2", syntax="proto3", - serialized_options=_b( - "\n\034com.google.bigtable.admin.v2B\013CommonProtoP\001Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\252\002\036Google.Cloud.Bigtable.Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V2" - ), - serialized_pb=_b( - "\n1google/cloud/bigtable/admin_v2/proto/common.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto*=\n\x0bStorageType\x12\x1c\n\x18STORAGE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03SSD\x10\x01\x12\x07\n\x03HDD\x10\x02\x42\xae\x01\n\x1c\x63om.google.bigtable.admin.v2B\x0b\x43ommonProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2b\x06proto3" - ), - dependencies=[ - google_dot_api_dot_annotations__pb2.DESCRIPTOR, - google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, - ], + serialized_options=b"\n\034com.google.bigtable.admin.v2B\013CommonProtoP\001Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\252\002\036Google.Cloud.Bigtable.Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V2", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n1google/cloud/bigtable_admin_v2/proto/common.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/protobuf/timestamp.proto"\x8b\x01\n\x11OperationProgress\x12\x18\n\x10progress_percent\x18\x01 \x01(\x05\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp*=\n\x0bStorageType\x12\x1c\n\x18STORAGE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03SSD\x10\x01\x12\x07\n\x03HDD\x10\x02\x42\xae\x01\n\x1c\x63om.google.bigtable.admin.v2B\x0b\x43ommonProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2b\x06proto3', + dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,], ) _STORAGETYPE = _descriptor.EnumDescriptor( @@ -41,6 +31,7 @@ full_name="google.bigtable.admin.v2.StorageType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="STORAGE_TYPE_UNSPECIFIED", @@ -48,18 +39,29 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SSD", index=1, number=1, serialized_options=None, type=None + name="SSD", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="HDD", index=2, number=2, serialized_options=None, type=None + name="HDD", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=142, - serialized_end=203, + serialized_start=254, + serialized_end=315, ) _sym_db.RegisterEnumDescriptor(_STORAGETYPE) @@ -69,9 +71,117 @@ HDD = 2 +_OPERATIONPROGRESS = _descriptor.Descriptor( + name="OperationProgress", + full_name="google.bigtable.admin.v2.OperationProgress", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="progress_percent", + full_name="google.bigtable.admin.v2.OperationProgress.progress_percent", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.bigtable.admin.v2.OperationProgress.start_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.bigtable.admin.v2.OperationProgress.end_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=113, + serialized_end=252, +) + +_OPERATIONPROGRESS.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_OPERATIONPROGRESS.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +DESCRIPTOR.message_types_by_name["OperationProgress"] = _OPERATIONPROGRESS DESCRIPTOR.enum_types_by_name["StorageType"] = _STORAGETYPE _sym_db.RegisterFileDescriptor(DESCRIPTOR) +OperationProgress = _reflection.GeneratedProtocolMessageType( + "OperationProgress", + (_message.Message,), + { + "DESCRIPTOR": _OPERATIONPROGRESS, + "__module__": "google.cloud.bigtable_admin_v2.proto.common_pb2", + "__doc__": """Encapsulates progress related information for a Cloud Bigtable long + running operation. + Attributes: + progress_percent: + Percent completion of the operation. Values are between 0 and + 100 inclusive. + start_time: + Time the request was received. + end_time: + If set, the time at which this operation failed or was + completed successfully. + """, + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.OperationProgress) + }, +) +_sym_db.RegisterMessage(OperationProgress) + DESCRIPTOR._options = None # @@protoc_insertion_point(module_scope) diff --git a/google/cloud/bigtable_admin_v2/proto/instance.proto b/google/cloud/bigtable_admin_v2/proto/instance.proto index ef8599bfe..e15f63ac0 100644 --- a/google/cloud/bigtable_admin_v2/proto/instance.proto +++ b/google/cloud/bigtable_admin_v2/proto/instance.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,7 +17,8 @@ syntax = "proto3"; package google.bigtable.admin.v2; -import "google/api/annotations.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/bigtable/admin/v2/common.proto"; option csharp_namespace = "Google.Cloud.Bigtable.Admin.V2"; @@ -29,9 +30,14 @@ option php_namespace = "Google\\Cloud\\Bigtable\\Admin\\V2"; // A collection of Bigtable [Tables][google.bigtable.admin.v2.Table] and // the resources that serve them. -// All tables in an instance are served from a single -// [Cluster][google.bigtable.admin.v2.Cluster]. +// All tables in an instance are served from all +// [Clusters][google.bigtable.admin.v2.Cluster] in the instance. message Instance { + option (google.api.resource) = { + type: "bigtable.googleapis.com/Instance" + pattern: "projects/{project}/instances/{instance}" + }; + // Possible states of an instance. enum State { // The state of the instance could not be determined. @@ -67,15 +73,14 @@ message Instance { DEVELOPMENT = 2; } - // (`OutputOnly`) // The unique name of the instance. Values are of the form - // `projects//instances/[a-z][a-z0-9\\-]+[a-z0-9]`. - string name = 1; + // `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The descriptive name for this instance as it appears in UIs. + // Required. The descriptive name for this instance as it appears in UIs. // Can be changed at any time, but should be kept globally unique // to avoid confusion. - string display_name = 2; + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; // (`OutputOnly`) // The current state of the instance. @@ -102,6 +107,11 @@ message Instance { // of serving all [Tables][google.bigtable.admin.v2.Table] in the parent // [Instance][google.bigtable.admin.v2.Instance]. message Cluster { + option (google.api.resource) = { + type: "bigtable.googleapis.com/Cluster" + pattern: "projects/{project}/instances/{instance}/clusters/{cluster}" + }; + // Possible states of a cluster. enum State { // The state of the cluster could not be determined. @@ -127,25 +137,25 @@ message Cluster { DISABLED = 4; } - // (`OutputOnly`) // The unique name of the cluster. Values are of the form - // `projects//instances//clusters/[a-z][-a-z0-9]*`. - string name = 1; + // `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // (`CreationOnly`) // The location where this cluster's nodes and storage reside. For best // performance, clients should be located as close as possible to this // cluster. Currently only zones are supported, so values should be of the - // form `projects//locations/`. - string location = 2; + // form `projects/{project}/locations/{zone}`. + string location = 2 [(google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + }]; - // (`OutputOnly`) // The current state of the cluster. - State state = 3; + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The number of nodes allocated to this cluster. More nodes enable higher - // throughput and more consistent performance. - int32 serve_nodes = 4; + // Required. The number of nodes allocated to this cluster. More nodes enable + // higher throughput and more consistent performance. + int32 serve_nodes = 4 [(google.api.field_behavior) = REQUIRED]; // (`CreationOnly`) // The type of storage used by this cluster to serve its @@ -156,14 +166,20 @@ message Cluster { // A configuration object describing how Cloud Bigtable should treat traffic // from a particular end user application. message AppProfile { - // Read/write requests may be routed to any cluster in the instance, and will - // fail over to another cluster in the event of transient errors or delays. - // Choosing this option sacrifices read-your-writes consistency to improve - // availability. + option (google.api.resource) = { + type: "bigtable.googleapis.com/AppProfile" + pattern: "projects/{project}/instances/{instance}/appProfiles/{app_profile}" + }; + + // Read/write requests are routed to the nearest cluster in the instance, and + // will fail over to the nearest cluster that is available in the event of + // transient errors or delays. Clusters in a region are considered + // equidistant. Choosing this option sacrifices read-your-writes consistency + // to improve availability. message MultiClusterRoutingUseAny {} // Unconditionally routes all read/write requests to a specific cluster. - // This option preserves read-your-writes consistency, but does not improve + // This option preserves read-your-writes consistency but does not improve // availability. message SingleClusterRouting { // The cluster to which read/write requests should be routed. @@ -193,10 +209,10 @@ message AppProfile { // Optional long form description of the use case for this AppProfile. string description = 3; - // The routing policy for all read/write requests which use this app profile. + // The routing policy for all read/write requests that use this app profile. // A value must be explicitly set. oneof routing_policy { - // Use a multi-cluster routing policy that may pick any cluster. + // Use a multi-cluster routing policy. MultiClusterRoutingUseAny multi_cluster_routing_use_any = 5; // Use a single-cluster routing policy. diff --git a/google/cloud/bigtable_admin_v2/proto/instance_pb2.py b/google/cloud/bigtable_admin_v2/proto/instance_pb2.py index 5f45909fc..58d5a036c 100644 --- a/google/cloud/bigtable_admin_v2/proto/instance_pb2.py +++ b/google/cloud/bigtable_admin_v2/proto/instance_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/bigtable/admin_v2/proto/instance.proto +# source: google/cloud/bigtable_admin_v2/proto/instance.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -15,25 +12,24 @@ _sym_db = _symbol_database.Default() -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 from google.cloud.bigtable_admin_v2.proto import ( - common_pb2 as google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_common__pb2, + common_pb2 as google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_common__pb2, ) DESCRIPTOR = _descriptor.FileDescriptor( - name="google/cloud/bigtable/admin_v2/proto/instance.proto", + name="google/cloud/bigtable_admin_v2/proto/instance.proto", package="google.bigtable.admin.v2", syntax="proto3", - serialized_options=_b( - "\n\034com.google.bigtable.admin.v2B\rInstanceProtoP\001Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\252\002\036Google.Cloud.Bigtable.Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V2" - ), - serialized_pb=_b( - '\n3google/cloud/bigtable/admin_v2/proto/instance.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x31google/cloud/bigtable/admin_v2/proto/common.proto"\x83\x03\n\x08Instance\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x37\n\x05state\x18\x03 \x01(\x0e\x32(.google.bigtable.admin.v2.Instance.State\x12\x35\n\x04type\x18\x04 \x01(\x0e\x32\'.google.bigtable.admin.v2.Instance.Type\x12>\n\x06labels\x18\x05 \x03(\x0b\x32..google.bigtable.admin.v2.Instance.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02"=\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPRODUCTION\x10\x01\x12\x0f\n\x0b\x44\x45VELOPMENT\x10\x02"\x8e\x02\n\x07\x43luster\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08location\x18\x02 \x01(\t\x12\x36\n\x05state\x18\x03 \x01(\x0e\x32\'.google.bigtable.admin.v2.Cluster.State\x12\x13\n\x0bserve_nodes\x18\x04 \x01(\x05\x12\x43\n\x14\x64\x65\x66\x61ult_storage_type\x18\x05 \x01(\x0e\x32%.google.bigtable.admin.v2.StorageType"Q\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\x0c\n\x08RESIZING\x10\x03\x12\x0c\n\x08\x44ISABLED\x10\x04"\x82\x03\n\nAppProfile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12g\n\x1dmulti_cluster_routing_use_any\x18\x05 \x01(\x0b\x32>.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAnyH\x00\x12[\n\x16single_cluster_routing\x18\x06 \x01(\x0b\x32\x39.google.bigtable.admin.v2.AppProfile.SingleClusterRoutingH\x00\x1a\x1b\n\x19MultiClusterRoutingUseAny\x1aN\n\x14SingleClusterRouting\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12"\n\x1a\x61llow_transactional_writes\x18\x02 \x01(\x08\x42\x10\n\x0erouting_policyB\xb0\x01\n\x1c\x63om.google.bigtable.admin.v2B\rInstanceProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2b\x06proto3' - ), + serialized_options=b"\n\034com.google.bigtable.admin.v2B\rInstanceProtoP\001Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\252\002\036Google.Cloud.Bigtable.Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V2", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n3google/cloud/bigtable_admin_v2/proto/instance.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x31google/cloud/bigtable_admin_v2/proto/common.proto"\xdd\x03\n\x08Instance\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x05state\x18\x03 \x01(\x0e\x32(.google.bigtable.admin.v2.Instance.State\x12\x35\n\x04type\x18\x04 \x01(\x0e\x32\'.google.bigtable.admin.v2.Instance.Type\x12>\n\x06labels\x18\x05 \x03(\x0b\x32..google.bigtable.admin.v2.Instance.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02"=\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPRODUCTION\x10\x01\x12\x0f\n\x0b\x44\x45VELOPMENT\x10\x02:N\xea\x41K\n bigtable.googleapis.com/Instance\x12\'projects/{project}/instances/{instance}"\xa7\x03\n\x07\x43luster\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x38\n\x08location\x18\x02 \x01(\tB&\xfa\x41#\n!locations.googleapis.com/Location\x12;\n\x05state\x18\x03 \x01(\x0e\x32\'.google.bigtable.admin.v2.Cluster.StateB\x03\xe0\x41\x03\x12\x18\n\x0bserve_nodes\x18\x04 \x01(\x05\x42\x03\xe0\x41\x02\x12\x43\n\x14\x64\x65\x66\x61ult_storage_type\x18\x05 \x01(\x0e\x32%.google.bigtable.admin.v2.StorageType"Q\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\x0c\n\x08RESIZING\x10\x03\x12\x0c\n\x08\x44ISABLED\x10\x04:`\xea\x41]\n\x1f\x62igtable.googleapis.com/Cluster\x12:projects/{project}/instances/{instance}/clusters/{cluster}"\xee\x03\n\nAppProfile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12g\n\x1dmulti_cluster_routing_use_any\x18\x05 \x01(\x0b\x32>.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAnyH\x00\x12[\n\x16single_cluster_routing\x18\x06 \x01(\x0b\x32\x39.google.bigtable.admin.v2.AppProfile.SingleClusterRoutingH\x00\x1a\x1b\n\x19MultiClusterRoutingUseAny\x1aN\n\x14SingleClusterRouting\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12"\n\x1a\x61llow_transactional_writes\x18\x02 \x01(\x08:j\xea\x41g\n"bigtable.googleapis.com/AppProfile\x12\x41projects/{project}/instances/{instance}/appProfiles/{app_profile}B\x10\n\x0erouting_policyB\xb0\x01\n\x1c\x63om.google.bigtable.admin.v2B\rInstanceProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2b\x06proto3', dependencies=[ - google_dot_api_dot_annotations__pb2.DESCRIPTOR, - google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_common__pb2.DESCRIPTOR, + google_dot_api_dot_field__behavior__pb2.DESCRIPTOR, + google_dot_api_dot_resource__pb2.DESCRIPTOR, + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_common__pb2.DESCRIPTOR, ], ) @@ -43,6 +39,7 @@ full_name="google.bigtable.admin.v2.Instance.State", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="STATE_NOT_KNOWN", @@ -50,18 +47,29 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="READY", index=1, number=1, serialized_options=None, type=None + name="READY", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CREATING", index=2, number=2, serialized_options=None, type=None + name="CREATING", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=434, - serialized_end=487, + serialized_start=474, + serialized_end=527, ) _sym_db.RegisterEnumDescriptor(_INSTANCE_STATE) @@ -70,6 +78,7 @@ full_name="google.bigtable.admin.v2.Instance.Type", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="TYPE_UNSPECIFIED", @@ -77,18 +86,29 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PRODUCTION", index=1, number=1, serialized_options=None, type=None + name="PRODUCTION", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DEVELOPMENT", index=2, number=2, serialized_options=None, type=None + name="DEVELOPMENT", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=489, - serialized_end=550, + serialized_start=529, + serialized_end=590, ) _sym_db.RegisterEnumDescriptor(_INSTANCE_TYPE) @@ -97,6 +117,7 @@ full_name="google.bigtable.admin.v2.Cluster.State", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="STATE_NOT_KNOWN", @@ -104,24 +125,45 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="READY", index=1, number=1, serialized_options=None, type=None + name="READY", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CREATING", index=2, number=2, serialized_options=None, type=None + name="CREATING", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="RESIZING", index=3, number=3, serialized_options=None, type=None + name="RESIZING", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DISABLED", index=4, number=4, serialized_options=None, type=None + name="DISABLED", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=742, - serialized_end=823, + serialized_start=917, + serialized_end=998, ) _sym_db.RegisterEnumDescriptor(_CLUSTER_STATE) @@ -132,6 +174,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="key", @@ -142,7 +185,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -150,6 +193,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -160,7 +204,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -168,18 +212,19 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], - serialized_options=_b("8\001"), + serialized_options=b"8\001", is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=387, - serialized_end=432, + serialized_start=427, + serialized_end=472, ) _INSTANCE = _descriptor.Descriptor( @@ -188,6 +233,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -198,14 +244,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="display_name", @@ -216,14 +263,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="state", @@ -242,6 +290,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="type", @@ -260,6 +309,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="labels", @@ -278,18 +328,19 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[_INSTANCE_LABELSENTRY,], enum_types=[_INSTANCE_STATE, _INSTANCE_TYPE,], - serialized_options=None, + serialized_options=b"\352AK\n bigtable.googleapis.com/Instance\022'projects/{project}/instances/{instance}", is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=163, - serialized_end=550, + serialized_start=193, + serialized_end=670, ) @@ -299,6 +350,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -309,14 +361,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="location", @@ -327,14 +380,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\372A#\n!locations.googleapis.com/Location", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="state", @@ -351,8 +405,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="serve_nodes", @@ -369,8 +424,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="default_storage_type", @@ -389,18 +445,19 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[_CLUSTER_STATE,], - serialized_options=None, + serialized_options=b"\352A]\n\037bigtable.googleapis.com/Cluster\022:projects/{project}/instances/{instance}/clusters/{cluster}", is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=553, - serialized_end=823, + serialized_start=673, + serialized_end=1096, ) @@ -410,6 +467,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], extensions=[], nested_types=[], @@ -419,8 +477,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1087, - serialized_end=1114, + serialized_start=1360, + serialized_end=1387, ) _APPPROFILE_SINGLECLUSTERROUTING = _descriptor.Descriptor( @@ -429,6 +487,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="cluster_id", @@ -439,7 +498,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -447,6 +506,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="allow_transactional_writes", @@ -465,6 +525,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -475,8 +536,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1116, - serialized_end=1194, + serialized_start=1389, + serialized_end=1467, ) _APPPROFILE = _descriptor.Descriptor( @@ -485,6 +546,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -495,7 +557,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -503,6 +565,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="etag", @@ -513,7 +576,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -521,6 +584,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -531,7 +595,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -539,6 +603,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="multi_cluster_routing_use_any", @@ -557,6 +622,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="single_cluster_routing", @@ -575,6 +641,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -583,7 +650,7 @@ _APPPROFILE_SINGLECLUSTERROUTING, ], enum_types=[], - serialized_options=None, + serialized_options=b'\352Ag\n"bigtable.googleapis.com/AppProfile\022Aprojects/{project}/instances/{instance}/appProfiles/{app_profile}', is_extendable=False, syntax="proto3", extension_ranges=[], @@ -593,11 +660,12 @@ full_name="google.bigtable.admin.v2.AppProfile.routing_policy", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ), ], - serialized_start=826, - serialized_end=1212, + serialized_start=1099, + serialized_end=1593, ) _INSTANCE_LABELSENTRY.containing_type = _INSTANCE @@ -610,7 +678,7 @@ _CLUSTER.fields_by_name[ "default_storage_type" ].enum_type = ( - google_dot_cloud_dot_bigtable_dot_admin__v2_dot_proto_dot_common__pb2._STORAGETYPE + google_dot_cloud_dot_bigtable__admin__v2_dot_proto_dot_common__pb2._STORAGETYPE ) _CLUSTER_STATE.containing_type = _CLUSTER _APPPROFILE_MULTICLUSTERROUTINGUSEANY.containing_type = _APPPROFILE @@ -641,40 +709,36 @@ Instance = _reflection.GeneratedProtocolMessageType( "Instance", (_message.Message,), - dict( - LabelsEntry=_reflection.GeneratedProtocolMessageType( + { + "LabelsEntry": _reflection.GeneratedProtocolMessageType( "LabelsEntry", (_message.Message,), - dict( - DESCRIPTOR=_INSTANCE_LABELSENTRY, - __module__="google.cloud.bigtable.admin_v2.proto.instance_pb2" + { + "DESCRIPTOR": _INSTANCE_LABELSENTRY, + "__module__": "google.cloud.bigtable_admin_v2.proto.instance_pb2" # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Instance.LabelsEntry) - ), - ), - DESCRIPTOR=_INSTANCE, - __module__="google.cloud.bigtable.admin_v2.proto.instance_pb2", - __doc__="""A collection of Bigtable - [Tables][google.bigtable.admin.v2.Table] and the resources that serve - them. All tables in an instance are served from a single - [Cluster][google.bigtable.admin.v2.Cluster]. - - + }, + ), + "DESCRIPTOR": _INSTANCE, + "__module__": "google.cloud.bigtable_admin_v2.proto.instance_pb2", + "__doc__": """A collection of Bigtable [Tables][google.bigtable.admin.v2.Table] and + the resources that serve them. All tables in an instance are served + from all [Clusters][google.bigtable.admin.v2.Cluster] in the instance. Attributes: name: - (\ ``OutputOnly``) The unique name of the instance. Values are - of the form - ``projects//instances/[a-z][a-z0-9\\-]+[a-z0-9]``. + The unique name of the instance. Values are of the form + ``projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]``. display_name: - The descriptive name for this instance as it appears in UIs. - Can be changed at any time, but should be kept globally unique - to avoid confusion. + Required. The descriptive name for this instance as it appears + in UIs. Can be changed at any time, but should be kept + globally unique to avoid confusion. state: (\ ``OutputOnly``) The current state of the instance. type: The type of the instance. Defaults to ``PRODUCTION``. labels: Labels are a flexible and lightweight mechanism for organizing - cloud resources into groups that reflect a customer's + cloud resources into groups that reflect a customer’s organizational needs and deployment strategies. They can be used to filter resources and aggregate metrics. - Label keys must be between 1 and 63 characters long and must conform @@ -686,7 +750,7 @@ resource. - Keys and values must both be under 128 bytes. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Instance) - ), + }, ) _sym_db.RegisterMessage(Instance) _sym_db.RegisterMessage(Instance.LabelsEntry) @@ -694,70 +758,65 @@ Cluster = _reflection.GeneratedProtocolMessageType( "Cluster", (_message.Message,), - dict( - DESCRIPTOR=_CLUSTER, - __module__="google.cloud.bigtable.admin_v2.proto.instance_pb2", - __doc__="""A resizable group of nodes in a particular cloud location, - capable of serving all [Tables][google.bigtable.admin.v2.Table] in the - parent [Instance][google.bigtable.admin.v2.Instance]. - - + { + "DESCRIPTOR": _CLUSTER, + "__module__": "google.cloud.bigtable_admin_v2.proto.instance_pb2", + "__doc__": """A resizable group of nodes in a particular cloud location, capable of + serving all [Tables][google.bigtable.admin.v2.Table] in the parent + [Instance][google.bigtable.admin.v2.Instance]. Attributes: name: - (\ ``OutputOnly``) The unique name of the cluster. Values are - of the form ``projects//instances//clusters - /[a-z][-a-z0-9]*``. + The unique name of the cluster. Values are of the form ``proje + cts/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*``. location: - (\ ``CreationOnly``) The location where this cluster's nodes + (\ ``CreationOnly``) The location where this cluster’s nodes and storage reside. For best performance, clients should be located as close as possible to this cluster. Currently only zones are supported, so values should be of the form - ``projects//locations/``. + ``projects/{project}/locations/{zone}``. state: - (\ ``OutputOnly``) The current state of the cluster. + The current state of the cluster. serve_nodes: - The number of nodes allocated to this cluster. More nodes - enable higher throughput and more consistent performance. + Required. The number of nodes allocated to this cluster. More + nodes enable higher throughput and more consistent + performance. default_storage_type: (\ ``CreationOnly``) The type of storage used by this cluster - to serve its parent instance's tables, unless explicitly + to serve its parent instance’s tables, unless explicitly overridden. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Cluster) - ), + }, ) _sym_db.RegisterMessage(Cluster) AppProfile = _reflection.GeneratedProtocolMessageType( "AppProfile", (_message.Message,), - dict( - MultiClusterRoutingUseAny=_reflection.GeneratedProtocolMessageType( + { + "MultiClusterRoutingUseAny": _reflection.GeneratedProtocolMessageType( "MultiClusterRoutingUseAny", (_message.Message,), - dict( - DESCRIPTOR=_APPPROFILE_MULTICLUSTERROUTINGUSEANY, - __module__="google.cloud.bigtable.admin_v2.proto.instance_pb2", - __doc__="""Read/write requests may be routed to any cluster in the - instance, and will fail over to another cluster in the event of - transient errors or delays. Choosing this option sacrifices - read-your-writes consistency to improve availability. - - """, + { + "DESCRIPTOR": _APPPROFILE_MULTICLUSTERROUTINGUSEANY, + "__module__": "google.cloud.bigtable_admin_v2.proto.instance_pb2", + "__doc__": """Read/write requests are routed to the nearest cluster in the instance, + and will fail over to the nearest cluster that is available in the + event of transient errors or delays. Clusters in a region are + considered equidistant. Choosing this option sacrifices read-your- + writes consistency to improve availability.""", # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny) - ), + }, ), - SingleClusterRouting=_reflection.GeneratedProtocolMessageType( + "SingleClusterRouting": _reflection.GeneratedProtocolMessageType( "SingleClusterRouting", (_message.Message,), - dict( - DESCRIPTOR=_APPPROFILE_SINGLECLUSTERROUTING, - __module__="google.cloud.bigtable.admin_v2.proto.instance_pb2", - __doc__="""Unconditionally routes all read/write requests to a - specific cluster. This option preserves read-your-writes consistency, - but does not improve availability. - - + { + "DESCRIPTOR": _APPPROFILE_SINGLECLUSTERROUTING, + "__module__": "google.cloud.bigtable_admin_v2.proto.instance_pb2", + "__doc__": """Unconditionally routes all read/write requests to a specific cluster. + This option preserves read-your-writes consistency but does not + improve availability. Attributes: cluster_id: The cluster to which read/write requests should be routed. @@ -768,14 +827,12 @@ table/row/column in multiple clusters. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.AppProfile.SingleClusterRouting) - ), - ), - DESCRIPTOR=_APPPROFILE, - __module__="google.cloud.bigtable.admin_v2.proto.instance_pb2", - __doc__="""A configuration object describing how Cloud Bigtable - should treat traffic from a particular end user application. - - + }, + ), + "DESCRIPTOR": _APPPROFILE, + "__module__": "google.cloud.bigtable_admin_v2.proto.instance_pb2", + "__doc__": """A configuration object describing how Cloud Bigtable should treat + traffic from a particular end user application. Attributes: name: (\ ``OutputOnly``) The unique name of the app profile. Values @@ -796,15 +853,15 @@ Optional long form description of the use case for this AppProfile. routing_policy: - The routing policy for all read/write requests which use this + The routing policy for all read/write requests that use this app profile. A value must be explicitly set. multi_cluster_routing_use_any: - Use a multi-cluster routing policy that may pick any cluster. + Use a multi-cluster routing policy. single_cluster_routing: Use a single-cluster routing policy. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.AppProfile) - ), + }, ) _sym_db.RegisterMessage(AppProfile) _sym_db.RegisterMessage(AppProfile.MultiClusterRoutingUseAny) @@ -813,4 +870,13 @@ DESCRIPTOR._options = None _INSTANCE_LABELSENTRY._options = None +_INSTANCE.fields_by_name["name"]._options = None +_INSTANCE.fields_by_name["display_name"]._options = None +_INSTANCE._options = None +_CLUSTER.fields_by_name["name"]._options = None +_CLUSTER.fields_by_name["location"]._options = None +_CLUSTER.fields_by_name["state"]._options = None +_CLUSTER.fields_by_name["serve_nodes"]._options = None +_CLUSTER._options = None +_APPPROFILE._options = None # @@protoc_insertion_point(module_scope) diff --git a/google/cloud/bigtable_admin_v2/proto/table.proto b/google/cloud/bigtable_admin_v2/proto/table.proto index 5019d8b86..535378989 100644 --- a/google/cloud/bigtable_admin_v2/proto/table.proto +++ b/google/cloud/bigtable_admin_v2/proto/table.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,13 +11,13 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// syntax = "proto3"; package google.bigtable.admin.v2; -import "google/api/annotations.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; @@ -28,9 +28,36 @@ option java_outer_classname = "TableProto"; option java_package = "com.google.bigtable.admin.v2"; option php_namespace = "Google\\Cloud\\Bigtable\\Admin\\V2"; +// Indicates the type of the restore source. +enum RestoreSourceType { + // No restore associated. + RESTORE_SOURCE_TYPE_UNSPECIFIED = 0; + + // A backup was used as the source of the restore. + BACKUP = 1; +} + +// Information about a table restore. +message RestoreInfo { + // The type of the restore source. + RestoreSourceType source_type = 1; + + // Information about the source used to restore the table. + oneof source_info { + // Information about the backup used to restore the table. The backup + // may no longer exist. + BackupInfo backup_info = 2; + } +} + // A collection of user data indexed by row, column, and timestamp. // Each table is served using the resources of its parent cluster. message Table { + option (google.api.resource) = { + type: "bigtable.googleapis.com/Table" + pattern: "projects/{project}/instances/{instance}/tables/{table}" + }; + // The state of a table's data in a particular cluster. message ClusterState { // Table replication states. @@ -55,10 +82,14 @@ message Table { // replication delay, reads may not immediately reflect the state of the // table in other clusters. READY = 4; + + // The table is fully created and ready for use after a restore, and is + // being optimized for performance. When optimizations are complete, the + // table will transition to `READY` state. + READY_OPTIMIZING = 5; } - // (`OutputOnly`) - // The state of replication for the table in this cluster. + // Output only. The state of replication for the table in this cluster. ReplicationState replication_state = 1; } @@ -84,22 +115,20 @@ message Table { // Only populates `name` and fields related to the table's schema. SCHEMA_VIEW = 2; - // Only populates `name` and fields related to the table's - // replication state. + // Only populates `name` and fields related to the table's replication + // state. REPLICATION_VIEW = 3; // Populates all fields. FULL = 4; } - // (`OutputOnly`) - // The unique name of the table. Values are of the form + // Output only. The unique name of the table. Values are of the form // `projects//instances//tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. // Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL` string name = 1; - // (`OutputOnly`) - // Map from cluster ID to per-cluster table state. + // Output only. Map from cluster ID to per-cluster table state. // If it could not be determined whether or not the table has data in a // particular cluster (for example, if its zone is unavailable), then // there will be an entry for the cluster with UNKNOWN `replication_status`. @@ -115,8 +144,12 @@ message Table { // The granularity (i.e. `MILLIS`) at which timestamps are stored in // this table. Timestamps not matching the granularity will be rejected. // If unspecified at creation time, the value will be set to `MILLIS`. - // Views: `SCHEMA_VIEW`, `FULL` + // Views: `SCHEMA_VIEW`, `FULL`. TimestampGranularity granularity = 4; + + // Output only. If this table was restored from another data source (e.g. a + // backup), this field will be populated with information about the restore. + RestoreInfo restore_info = 6; } // A set of columns within a table which share a common configuration. @@ -170,6 +203,11 @@ message GcRule { // feature might be changed in backward-incompatible ways and is not recommended // for production use. It is not subject to any SLA or deprecation policy. message Snapshot { + option (google.api.resource) = { + type: "bigtable.googleapis.com/Snapshot" + pattern: "projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}" + }; + // Possible states of a snapshot. enum State { // The state of the snapshot could not be determined. @@ -184,37 +222,118 @@ message Snapshot { CREATING = 2; } - // (`OutputOnly`) - // The unique name of the snapshot. + // Output only. The unique name of the snapshot. // Values are of the form // `projects//instances//clusters//snapshots/`. string name = 1; - // (`OutputOnly`) - // The source table at the time the snapshot was taken. + // Output only. The source table at the time the snapshot was taken. Table source_table = 2; - // (`OutputOnly`) - // The size of the data in the source table at the time the snapshot was - // taken. In some cases, this value may be computed asynchronously via a - // background process and a placeholder of 0 will be used in the meantime. + // Output only. The size of the data in the source table at the time the + // snapshot was taken. In some cases, this value may be computed + // asynchronously via a background process and a placeholder of 0 will be used + // in the meantime. int64 data_size_bytes = 3; - // (`OutputOnly`) - // The time when the snapshot is created. + // Output only. The time when the snapshot is created. google.protobuf.Timestamp create_time = 4; - // (`OutputOnly`) - // The time when the snapshot will be deleted. The maximum amount of time a - // snapshot can stay active is 365 days. If 'ttl' is not specified, + // Output only. The time when the snapshot will be deleted. The maximum amount + // of time a snapshot can stay active is 365 days. If 'ttl' is not specified, // the default maximum of 365 days will be used. google.protobuf.Timestamp delete_time = 5; - // (`OutputOnly`) - // The current state of the snapshot. + // Output only. The current state of the snapshot. State state = 6; - // (`OutputOnly`) - // Description of the snapshot. + // Output only. Description of the snapshot. string description = 7; } + +// A backup of a Cloud Bigtable table. +message Backup { + option (google.api.resource) = { + type: "bigtable.googleapis.com/Backup" + pattern: "projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}" + }; + + // Indicates the current state of the backup. + enum State { + // Not specified. + STATE_UNSPECIFIED = 0; + + // The pending backup is still being created. Operations on the + // backup may fail with `FAILED_PRECONDITION` in this state. + CREATING = 1; + + // The backup is complete and ready for use. + READY = 2; + } + + // Output only. A globally unique identifier for the backup which cannot be + // changed. Values are of the form + // `projects/{project}/instances/{instance}/clusters/{cluster}/ + // backups/[_a-zA-Z0-9][-_.a-zA-Z0-9]*` + // The final segment of the name must be between 1 and 50 characters + // in length. + // + // The backup is stored in the cluster identified by the prefix of the backup + // name of the form + // `projects/{project}/instances/{instance}/clusters/{cluster}`. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Immutable. Name of the table from which this backup was created. + // This needs to be in the same instance as the backup. Values are of the form + // `projects/{project}/instances/{instance}/tables/{source_table}`. + string source_table = 2 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = REQUIRED + ]; + + // Required. The expiration time of the backup, with microseconds + // granularity that must be at least 6 hours and at most 30 days + // from the time the request is received. Once the `expire_time` + // has passed, Cloud Bigtable will delete the backup and free the + // resources used by the backup. + google.protobuf.Timestamp expire_time = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Output only. `start_time` is the time that the backup was started + // (i.e. approximately the time the + // [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] + // request is received). The row data in this backup will be no older than + // this timestamp. + google.protobuf.Timestamp start_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. `end_time` is the time that the backup was finished. The row + // data in the backup will be no newer than this timestamp. + google.protobuf.Timestamp end_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Size of the backup in bytes. + int64 size_bytes = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the backup. + State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Information about a backup. +message BackupInfo { + // Output only. Name of the backup. + string backup = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time that the backup was started. Row data in the backup + // will be no older than this timestamp. + google.protobuf.Timestamp start_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. This time that the backup was finished. Row data in the + // backup will be no newer than this timestamp. + google.protobuf.Timestamp end_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the table the backup was created from. + string source_table = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/google/cloud/bigtable_admin_v2/proto/table_pb2.py b/google/cloud/bigtable_admin_v2/proto/table_pb2.py index b026dff95..a52b2c297 100644 --- a/google/cloud/bigtable_admin_v2/proto/table_pb2.py +++ b/google/cloud/bigtable_admin_v2/proto/table_pb2.py @@ -1,10 +1,8 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/bigtable/admin_v2/proto/table.proto +# source: google/cloud/bigtable_admin_v2/proto/table.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) +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 @@ -15,34 +13,69 @@ _sym_db = _symbol_database.Default() -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name="google/cloud/bigtable/admin_v2/proto/table.proto", + name="google/cloud/bigtable_admin_v2/proto/table.proto", package="google.bigtable.admin.v2", syntax="proto3", - serialized_options=_b( - "\n\034com.google.bigtable.admin.v2B\nTableProtoP\001Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\252\002\036Google.Cloud.Bigtable.Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V2" - ), - serialized_pb=_b( - '\n0google/cloud/bigtable/admin_v2/proto/table.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xcb\x06\n\x05Table\x12\x0c\n\x04name\x18\x01 \x01(\t\x12J\n\x0e\x63luster_states\x18\x02 \x03(\x0b\x32\x32.google.bigtable.admin.v2.Table.ClusterStatesEntry\x12L\n\x0f\x63olumn_families\x18\x03 \x03(\x0b\x32\x33.google.bigtable.admin.v2.Table.ColumnFamiliesEntry\x12I\n\x0bgranularity\x18\x04 \x01(\x0e\x32\x34.google.bigtable.admin.v2.Table.TimestampGranularity\x1a\xe2\x01\n\x0c\x43lusterState\x12X\n\x11replication_state\x18\x01 \x01(\x0e\x32=.google.bigtable.admin.v2.Table.ClusterState.ReplicationState"x\n\x10ReplicationState\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x17\n\x13PLANNED_MAINTENANCE\x10\x02\x12\x19\n\x15UNPLANNED_MAINTENANCE\x10\x03\x12\t\n\x05READY\x10\x04\x1a\x62\n\x12\x43lusterStatesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.Table.ClusterState:\x02\x38\x01\x1a]\n\x13\x43olumnFamiliesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamily:\x02\x38\x01"I\n\x14TimestampGranularity\x12%\n!TIMESTAMP_GRANULARITY_UNSPECIFIED\x10\x00\x12\n\n\x06MILLIS\x10\x01"\\\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\x0f\n\x0bSCHEMA_VIEW\x10\x02\x12\x14\n\x10REPLICATION_VIEW\x10\x03\x12\x08\n\x04\x46ULL\x10\x04"A\n\x0c\x43olumnFamily\x12\x31\n\x07gc_rule\x18\x01 \x01(\x0b\x32 .google.bigtable.admin.v2.GcRule"\xd5\x02\n\x06GcRule\x12\x1a\n\x10max_num_versions\x18\x01 \x01(\x05H\x00\x12,\n\x07max_age\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x45\n\x0cintersection\x18\x03 \x01(\x0b\x32-.google.bigtable.admin.v2.GcRule.IntersectionH\x00\x12\x37\n\x05union\x18\x04 \x01(\x0b\x32&.google.bigtable.admin.v2.GcRule.UnionH\x00\x1a?\n\x0cIntersection\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRule\x1a\x38\n\x05Union\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRuleB\x06\n\x04rule"\xcf\x02\n\x08Snapshot\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x35\n\x0csource_table\x18\x02 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.Table\x12\x17\n\x0f\x64\x61ta_size_bytes\x18\x03 \x01(\x03\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x64\x65lete_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x05state\x18\x06 \x01(\x0e\x32(.google.bigtable.admin.v2.Snapshot.State\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x42\xad\x01\n\x1c\x63om.google.bigtable.admin.v2B\nTableProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2b\x06proto3' - ), + serialized_options=b"\n\034com.google.bigtable.admin.v2B\nTableProtoP\001Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\252\002\036Google.Cloud.Bigtable.Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V2", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n0google/cloud/bigtable_admin_v2/proto/table.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x9b\x01\n\x0bRestoreInfo\x12@\n\x0bsource_type\x18\x01 \x01(\x0e\x32+.google.bigtable.admin.v2.RestoreSourceType\x12;\n\x0b\x62\x61\x63kup_info\x18\x02 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfoH\x00\x42\r\n\x0bsource_info"\xfb\x07\n\x05Table\x12\x0c\n\x04name\x18\x01 \x01(\t\x12J\n\x0e\x63luster_states\x18\x02 \x03(\x0b\x32\x32.google.bigtable.admin.v2.Table.ClusterStatesEntry\x12L\n\x0f\x63olumn_families\x18\x03 \x03(\x0b\x32\x33.google.bigtable.admin.v2.Table.ColumnFamiliesEntry\x12I\n\x0bgranularity\x18\x04 \x01(\x0e\x32\x34.google.bigtable.admin.v2.Table.TimestampGranularity\x12;\n\x0crestore_info\x18\x06 \x01(\x0b\x32%.google.bigtable.admin.v2.RestoreInfo\x1a\xf9\x01\n\x0c\x43lusterState\x12X\n\x11replication_state\x18\x01 \x01(\x0e\x32=.google.bigtable.admin.v2.Table.ClusterState.ReplicationState"\x8e\x01\n\x10ReplicationState\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x17\n\x13PLANNED_MAINTENANCE\x10\x02\x12\x19\n\x15UNPLANNED_MAINTENANCE\x10\x03\x12\t\n\x05READY\x10\x04\x12\x14\n\x10READY_OPTIMIZING\x10\x05\x1a\x62\n\x12\x43lusterStatesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.Table.ClusterState:\x02\x38\x01\x1a]\n\x13\x43olumnFamiliesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamily:\x02\x38\x01"I\n\x14TimestampGranularity\x12%\n!TIMESTAMP_GRANULARITY_UNSPECIFIED\x10\x00\x12\n\n\x06MILLIS\x10\x01"\\\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\x0f\n\x0bSCHEMA_VIEW\x10\x02\x12\x14\n\x10REPLICATION_VIEW\x10\x03\x12\x08\n\x04\x46ULL\x10\x04:Z\xea\x41W\n\x1d\x62igtable.googleapis.com/Table\x12\x36projects/{project}/instances/{instance}/tables/{table}"A\n\x0c\x43olumnFamily\x12\x31\n\x07gc_rule\x18\x01 \x01(\x0b\x32 .google.bigtable.admin.v2.GcRule"\xd5\x02\n\x06GcRule\x12\x1a\n\x10max_num_versions\x18\x01 \x01(\x05H\x00\x12,\n\x07max_age\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x45\n\x0cintersection\x18\x03 \x01(\x0b\x32-.google.bigtable.admin.v2.GcRule.IntersectionH\x00\x12\x37\n\x05union\x18\x04 \x01(\x0b\x32&.google.bigtable.admin.v2.GcRule.UnionH\x00\x1a?\n\x0cIntersection\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRule\x1a\x38\n\x05Union\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRuleB\x06\n\x04rule"\xc7\x03\n\x08Snapshot\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x35\n\x0csource_table\x18\x02 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.Table\x12\x17\n\x0f\x64\x61ta_size_bytes\x18\x03 \x01(\x03\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x64\x65lete_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x05state\x18\x06 \x01(\x0e\x32(.google.bigtable.admin.v2.Snapshot.State\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02:v\xea\x41s\n bigtable.googleapis.com/Snapshot\x12Oprojects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}"\xd7\x03\n\x06\x42\x61\x63kup\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0csource_table\x18\x02 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02\x12\x34\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x33\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nsize_bytes\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x12:\n\x05state\x18\x07 \x01(\x0e\x32&.google.bigtable.admin.v2.Backup.StateB\x03\xe0\x41\x03"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02:p\xea\x41m\n\x1e\x62igtable.googleapis.com/Backup\x12Kprojects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}"\xa4\x01\n\nBackupInfo\x12\x13\n\x06\x62\x61\x63kup\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0csource_table\x18\x04 \x01(\tB\x03\xe0\x41\x03*D\n\x11RestoreSourceType\x12#\n\x1fRESTORE_SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x42\x41\x43KUP\x10\x01\x42\xad\x01\n\x1c\x63om.google.bigtable.admin.v2B\nTableProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2b\x06proto3', dependencies=[ - google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_api_dot_field__behavior__pb2.DESCRIPTOR, + google_dot_api_dot_resource__pb2.DESCRIPTOR, google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, ], ) +_RESTORESOURCETYPE = _descriptor.EnumDescriptor( + name="RestoreSourceType", + full_name="google.bigtable.admin.v2.RestoreSourceType", + filename=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + values=[ + _descriptor.EnumValueDescriptor( + name="RESTORE_SOURCE_TYPE_UNSPECIFIED", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.EnumValueDescriptor( + name="BACKUP", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, + ), + ], + containing_type=None, + serialized_options=None, + serialized_start=2893, + serialized_end=2961, +) +_sym_db.RegisterEnumDescriptor(_RESTORESOURCETYPE) + +RestoreSourceType = enum_type_wrapper.EnumTypeWrapper(_RESTORESOURCETYPE) +RESTORE_SOURCE_TYPE_UNSPECIFIED = 0 +BACKUP = 1 + _TABLE_CLUSTERSTATE_REPLICATIONSTATE = _descriptor.EnumDescriptor( name="ReplicationState", full_name="google.bigtable.admin.v2.Table.ClusterState.ReplicationState", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="STATE_NOT_KNOWN", @@ -50,9 +83,15 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="INITIALIZING", index=1, number=1, serialized_options=None, type=None + name="INITIALIZING", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="PLANNED_MAINTENANCE", @@ -60,6 +99,7 @@ number=2, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="UNPLANNED_MAINTENANCE", @@ -67,15 +107,29 @@ number=3, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.EnumValueDescriptor( + name="READY", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="READY", index=4, number=4, serialized_options=None, type=None + name="READY_OPTIMIZING", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=533, - serialized_end=653, + serialized_start=783, + serialized_end=925, ) _sym_db.RegisterEnumDescriptor(_TABLE_CLUSTERSTATE_REPLICATIONSTATE) @@ -84,6 +138,7 @@ full_name="google.bigtable.admin.v2.Table.TimestampGranularity", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="TIMESTAMP_GRANULARITY_UNSPECIFIED", @@ -91,15 +146,21 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MILLIS", index=1, number=1, serialized_options=None, type=None + name="MILLIS", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=850, - serialized_end=923, + serialized_start=1122, + serialized_end=1195, ) _sym_db.RegisterEnumDescriptor(_TABLE_TIMESTAMPGRANULARITY) @@ -108,6 +169,7 @@ full_name="google.bigtable.admin.v2.Table.View", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="VIEW_UNSPECIFIED", @@ -115,12 +177,23 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NAME_ONLY", index=1, number=1, serialized_options=None, type=None + name="NAME_ONLY", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SCHEMA_VIEW", index=2, number=2, serialized_options=None, type=None + name="SCHEMA_VIEW", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="REPLICATION_VIEW", @@ -128,15 +201,21 @@ number=3, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FULL", index=4, number=4, serialized_options=None, type=None + name="FULL", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=925, - serialized_end=1017, + serialized_start=1197, + serialized_end=1289, ) _sym_db.RegisterEnumDescriptor(_TABLE_VIEW) @@ -145,6 +224,7 @@ full_name="google.bigtable.admin.v2.Snapshot.State", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="STATE_NOT_KNOWN", @@ -152,21 +232,140 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="READY", index=1, number=1, serialized_options=None, type=None + name="READY", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CREATING", index=2, number=2, serialized_options=None, type=None + name="CREATING", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=1713, - serialized_end=1766, + serialized_start=2077, + serialized_end=2130, ) _sym_db.RegisterEnumDescriptor(_SNAPSHOT_STATE) +_BACKUP_STATE = _descriptor.EnumDescriptor( + name="State", + full_name="google.bigtable.admin.v2.Backup.State", + filename=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + values=[ + _descriptor.EnumValueDescriptor( + name="STATE_UNSPECIFIED", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.EnumValueDescriptor( + name="CREATING", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.EnumValueDescriptor( + name="READY", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, + ), + ], + containing_type=None, + serialized_options=None, + serialized_start=2555, + serialized_end=2610, +) +_sym_db.RegisterEnumDescriptor(_BACKUP_STATE) + + +_RESTOREINFO = _descriptor.Descriptor( + name="RestoreInfo", + full_name="google.bigtable.admin.v2.RestoreInfo", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="source_type", + full_name="google.bigtable.admin.v2.RestoreInfo.source_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, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="backup_info", + full_name="google.bigtable.admin.v2.RestoreInfo.backup_info", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="source_info", + full_name="google.bigtable.admin.v2.RestoreInfo.source_info", + index=0, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[], + ), + ], + serialized_start=204, + serialized_end=359, +) + _TABLE_CLUSTERSTATE = _descriptor.Descriptor( name="ClusterState", @@ -174,6 +373,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="replication_state", @@ -192,6 +392,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -202,8 +403,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=427, - serialized_end=653, + serialized_start=676, + serialized_end=925, ) _TABLE_CLUSTERSTATESENTRY = _descriptor.Descriptor( @@ -212,6 +413,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="key", @@ -222,7 +424,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -230,6 +432,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -248,18 +451,19 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], - serialized_options=_b("8\001"), + serialized_options=b"8\001", is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=655, - serialized_end=753, + serialized_start=927, + serialized_end=1025, ) _TABLE_COLUMNFAMILIESENTRY = _descriptor.Descriptor( @@ -268,6 +472,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="key", @@ -278,7 +483,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -286,6 +491,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -304,18 +510,19 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], - serialized_options=_b("8\001"), + serialized_options=b"8\001", is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=755, - serialized_end=848, + serialized_start=1027, + serialized_end=1120, ) _TABLE = _descriptor.Descriptor( @@ -324,6 +531,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -334,7 +542,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -342,6 +550,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="cluster_states", @@ -360,6 +569,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="column_families", @@ -378,6 +588,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="granularity", @@ -396,6 +607,26 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="restore_info", + full_name="google.bigtable.admin.v2.Table.restore_info", + index=4, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -405,13 +636,13 @@ _TABLE_COLUMNFAMILIESENTRY, ], enum_types=[_TABLE_TIMESTAMPGRANULARITY, _TABLE_VIEW,], - serialized_options=None, + serialized_options=b"\352AW\n\035bigtable.googleapis.com/Table\0226projects/{project}/instances/{instance}/tables/{table}", is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=174, - serialized_end=1017, + serialized_start=362, + serialized_end=1381, ) @@ -421,6 +652,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="gc_rule", @@ -439,6 +671,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -449,8 +682,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1019, - serialized_end=1084, + serialized_start=1383, + serialized_end=1448, ) @@ -460,6 +693,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="rules", @@ -478,6 +712,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -488,8 +723,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1299, - serialized_end=1362, + serialized_start=1663, + serialized_end=1726, ) _GCRULE_UNION = _descriptor.Descriptor( @@ -498,6 +733,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="rules", @@ -516,6 +752,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -526,8 +763,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1364, - serialized_end=1420, + serialized_start=1728, + serialized_end=1784, ) _GCRULE = _descriptor.Descriptor( @@ -536,6 +773,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="max_num_versions", @@ -554,6 +792,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="max_age", @@ -572,6 +811,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="intersection", @@ -590,6 +830,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="union", @@ -608,6 +849,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -623,11 +865,12 @@ full_name="google.bigtable.admin.v2.GcRule.rule", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ), ], - serialized_start=1087, - serialized_end=1428, + serialized_start=1451, + serialized_end=1792, ) @@ -637,6 +880,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -647,7 +891,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -655,6 +899,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="source_table", @@ -673,6 +918,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="data_size_bytes", @@ -691,6 +937,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="create_time", @@ -709,6 +956,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="delete_time", @@ -727,6 +975,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="state", @@ -745,6 +994,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -755,7 +1005,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -763,20 +1013,282 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[_SNAPSHOT_STATE,], + serialized_options=b"\352As\n bigtable.googleapis.com/Snapshot\022Oprojects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}", + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1795, + serialized_end=2250, +) + + +_BACKUP = _descriptor.Descriptor( + name="Backup", + full_name="google.bigtable.admin.v2.Backup", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.bigtable.admin.v2.Backup.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=b"\340A\003", + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="source_table", + full_name="google.bigtable.admin.v2.Backup.source_table", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=b"\340A\005\340A\002", + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="expire_time", + full_name="google.bigtable.admin.v2.Backup.expire_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=b"\340A\002", + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.bigtable.admin.v2.Backup.start_time", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=b"\340A\003", + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.bigtable.admin.v2.Backup.end_time", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=b"\340A\003", + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="size_bytes", + full_name="google.bigtable.admin.v2.Backup.size_bytes", + index=5, + number=6, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=b"\340A\003", + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="state", + full_name="google.bigtable.admin.v2.Backup.state", + index=6, + number=7, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=b"\340A\003", + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_BACKUP_STATE,], + serialized_options=b"\352Am\n\036bigtable.googleapis.com/Backup\022Kprojects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}", + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2253, + serialized_end=2724, +) + + +_BACKUPINFO = _descriptor.Descriptor( + name="BackupInfo", + full_name="google.bigtable.admin.v2.BackupInfo", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="backup", + full_name="google.bigtable.admin.v2.BackupInfo.backup", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=b"\340A\003", + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.bigtable.admin.v2.BackupInfo.start_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=b"\340A\003", + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.bigtable.admin.v2.BackupInfo.end_time", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=b"\340A\003", + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="source_table", + full_name="google.bigtable.admin.v2.BackupInfo.source_table", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=b"\340A\003", + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], serialized_options=None, is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1431, - serialized_end=1766, + serialized_start=2727, + serialized_end=2891, ) +_RESTOREINFO.fields_by_name["source_type"].enum_type = _RESTORESOURCETYPE +_RESTOREINFO.fields_by_name["backup_info"].message_type = _BACKUPINFO +_RESTOREINFO.oneofs_by_name["source_info"].fields.append( + _RESTOREINFO.fields_by_name["backup_info"] +) +_RESTOREINFO.fields_by_name[ + "backup_info" +].containing_oneof = _RESTOREINFO.oneofs_by_name["source_info"] _TABLE_CLUSTERSTATE.fields_by_name[ "replication_state" ].enum_type = _TABLE_CLUSTERSTATE_REPLICATIONSTATE @@ -789,6 +1301,7 @@ _TABLE.fields_by_name["cluster_states"].message_type = _TABLE_CLUSTERSTATESENTRY _TABLE.fields_by_name["column_families"].message_type = _TABLE_COLUMNFAMILIESENTRY _TABLE.fields_by_name["granularity"].enum_type = _TABLE_TIMESTAMPGRANULARITY +_TABLE.fields_by_name["restore_info"].message_type = _RESTOREINFO _TABLE_TIMESTAMPGRANULARITY.containing_type = _TABLE _TABLE_VIEW.containing_type = _TABLE _COLUMNFAMILY.fields_by_name["gc_rule"].message_type = _GCRULE @@ -820,68 +1333,105 @@ ].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _SNAPSHOT.fields_by_name["state"].enum_type = _SNAPSHOT_STATE _SNAPSHOT_STATE.containing_type = _SNAPSHOT +_BACKUP.fields_by_name[ + "expire_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_BACKUP.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_BACKUP.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_BACKUP.fields_by_name["state"].enum_type = _BACKUP_STATE +_BACKUP_STATE.containing_type = _BACKUP +_BACKUPINFO.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_BACKUPINFO.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +DESCRIPTOR.message_types_by_name["RestoreInfo"] = _RESTOREINFO DESCRIPTOR.message_types_by_name["Table"] = _TABLE DESCRIPTOR.message_types_by_name["ColumnFamily"] = _COLUMNFAMILY DESCRIPTOR.message_types_by_name["GcRule"] = _GCRULE DESCRIPTOR.message_types_by_name["Snapshot"] = _SNAPSHOT +DESCRIPTOR.message_types_by_name["Backup"] = _BACKUP +DESCRIPTOR.message_types_by_name["BackupInfo"] = _BACKUPINFO +DESCRIPTOR.enum_types_by_name["RestoreSourceType"] = _RESTORESOURCETYPE _sym_db.RegisterFileDescriptor(DESCRIPTOR) +RestoreInfo = _reflection.GeneratedProtocolMessageType( + "RestoreInfo", + (_message.Message,), + { + "DESCRIPTOR": _RESTOREINFO, + "__module__": "google.cloud.bigtable_admin_v2.proto.table_pb2", + "__doc__": """Information about a table restore. + Attributes: + source_type: + The type of the restore source. + source_info: + Information about the source used to restore the table. + backup_info: + Information about the backup used to restore the table. The + backup may no longer exist. + """, + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.RestoreInfo) + }, +) +_sym_db.RegisterMessage(RestoreInfo) + Table = _reflection.GeneratedProtocolMessageType( "Table", (_message.Message,), - dict( - ClusterState=_reflection.GeneratedProtocolMessageType( + { + "ClusterState": _reflection.GeneratedProtocolMessageType( "ClusterState", (_message.Message,), - dict( - DESCRIPTOR=_TABLE_CLUSTERSTATE, - __module__="google.cloud.bigtable.admin_v2.proto.table_pb2", - __doc__="""The state of a table's data in a particular cluster. - - + { + "DESCRIPTOR": _TABLE_CLUSTERSTATE, + "__module__": "google.cloud.bigtable_admin_v2.proto.table_pb2", + "__doc__": """The state of a table’s data in a particular cluster. Attributes: replication_state: - (\ ``OutputOnly``) The state of replication for the table in - this cluster. + Output only. The state of replication for the table in this + cluster. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Table.ClusterState) - ), + }, ), - ClusterStatesEntry=_reflection.GeneratedProtocolMessageType( + "ClusterStatesEntry": _reflection.GeneratedProtocolMessageType( "ClusterStatesEntry", (_message.Message,), - dict( - DESCRIPTOR=_TABLE_CLUSTERSTATESENTRY, - __module__="google.cloud.bigtable.admin_v2.proto.table_pb2" + { + "DESCRIPTOR": _TABLE_CLUSTERSTATESENTRY, + "__module__": "google.cloud.bigtable_admin_v2.proto.table_pb2" # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Table.ClusterStatesEntry) - ), + }, ), - ColumnFamiliesEntry=_reflection.GeneratedProtocolMessageType( + "ColumnFamiliesEntry": _reflection.GeneratedProtocolMessageType( "ColumnFamiliesEntry", (_message.Message,), - dict( - DESCRIPTOR=_TABLE_COLUMNFAMILIESENTRY, - __module__="google.cloud.bigtable.admin_v2.proto.table_pb2" + { + "DESCRIPTOR": _TABLE_COLUMNFAMILIESENTRY, + "__module__": "google.cloud.bigtable_admin_v2.proto.table_pb2" # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Table.ColumnFamiliesEntry) - ), - ), - DESCRIPTOR=_TABLE, - __module__="google.cloud.bigtable.admin_v2.proto.table_pb2", - __doc__="""A collection of user data indexed by row, column, and - timestamp. Each table is served using the resources of its parent - cluster. - - + }, + ), + "DESCRIPTOR": _TABLE, + "__module__": "google.cloud.bigtable_admin_v2.proto.table_pb2", + "__doc__": """A collection of user data indexed by row, column, and timestamp. Each + table is served using the resources of its parent cluster. Attributes: name: - (\ ``OutputOnly``) The unique name of the table. Values are of - the form ``projects//instances//tables/[_a- + Output only. The unique name of the table. Values are of the + form ``projects//instances//tables/[_a- zA-Z0-9][-_.a-zA-Z0-9]*``. Views: ``NAME_ONLY``, ``SCHEMA_VIEW``, ``REPLICATION_VIEW``, ``FULL`` cluster_states: - (\ ``OutputOnly``) Map from cluster ID to per-cluster table - state. If it could not be determined whether or not the table - has data in a particular cluster (for example, if its zone is + Output only. Map from cluster ID to per-cluster table state. + If it could not be determined whether or not the table has + data in a particular cluster (for example, if its zone is unavailable), then there will be an entry for the cluster with UNKNOWN ``replication_status``. Views: ``REPLICATION_VIEW``, ``FULL`` @@ -894,10 +1444,14 @@ which timestamps are stored in this table. Timestamps not matching the granularity will be rejected. If unspecified at creation time, the value will be set to ``MILLIS``. Views: - ``SCHEMA_VIEW``, ``FULL`` + ``SCHEMA_VIEW``, ``FULL``. + restore_info: + Output only. If this table was restored from another data + source (e.g. a backup), this field will be populated with + information about the restore. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Table) - ), + }, ) _sym_db.RegisterMessage(Table) _sym_db.RegisterMessage(Table.ClusterState) @@ -907,72 +1461,60 @@ ColumnFamily = _reflection.GeneratedProtocolMessageType( "ColumnFamily", (_message.Message,), - dict( - DESCRIPTOR=_COLUMNFAMILY, - __module__="google.cloud.bigtable.admin_v2.proto.table_pb2", - __doc__="""A set of columns within a table which share a common - configuration. - - + { + "DESCRIPTOR": _COLUMNFAMILY, + "__module__": "google.cloud.bigtable_admin_v2.proto.table_pb2", + "__doc__": """A set of columns within a table which share a common configuration. Attributes: gc_rule: Garbage collection rule specified as a protobuf. Must serialize to at most 500 bytes. NOTE: Garbage collection - executes opportunistically in the background, and so it's + executes opportunistically in the background, and so it’s possible for reads to return a cell even if it matches the active GC expression for its family. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.ColumnFamily) - ), + }, ) _sym_db.RegisterMessage(ColumnFamily) GcRule = _reflection.GeneratedProtocolMessageType( "GcRule", (_message.Message,), - dict( - Intersection=_reflection.GeneratedProtocolMessageType( + { + "Intersection": _reflection.GeneratedProtocolMessageType( "Intersection", (_message.Message,), - dict( - DESCRIPTOR=_GCRULE_INTERSECTION, - __module__="google.cloud.bigtable.admin_v2.proto.table_pb2", - __doc__="""A GcRule which deletes cells matching all of the given - rules. - - + { + "DESCRIPTOR": _GCRULE_INTERSECTION, + "__module__": "google.cloud.bigtable_admin_v2.proto.table_pb2", + "__doc__": """A GcRule which deletes cells matching all of the given rules. Attributes: rules: Only delete cells which would be deleted by every element of ``rules``. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GcRule.Intersection) - ), + }, ), - Union=_reflection.GeneratedProtocolMessageType( + "Union": _reflection.GeneratedProtocolMessageType( "Union", (_message.Message,), - dict( - DESCRIPTOR=_GCRULE_UNION, - __module__="google.cloud.bigtable.admin_v2.proto.table_pb2", - __doc__="""A GcRule which deletes cells matching any of the given - rules. - - + { + "DESCRIPTOR": _GCRULE_UNION, + "__module__": "google.cloud.bigtable_admin_v2.proto.table_pb2", + "__doc__": """A GcRule which deletes cells matching any of the given rules. Attributes: rules: Delete cells which would be deleted by any element of ``rules``. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GcRule.Union) - ), - ), - DESCRIPTOR=_GCRULE, - __module__="google.cloud.bigtable.admin_v2.proto.table_pb2", - __doc__="""Rule for determining which cells to delete during garbage - collection. - - + }, + ), + "DESCRIPTOR": _GCRULE, + "__module__": "google.cloud.bigtable_admin_v2.proto.table_pb2", + "__doc__": """Rule for determining which cells to delete during garbage collection. Attributes: rule: Garbage collection rules. @@ -988,7 +1530,7 @@ Delete cells that would be deleted by any nested rule. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.GcRule) - ), + }, ) _sym_db.RegisterMessage(GcRule) _sym_db.RegisterMessage(GcRule.Intersection) @@ -997,52 +1539,134 @@ Snapshot = _reflection.GeneratedProtocolMessageType( "Snapshot", (_message.Message,), - dict( - DESCRIPTOR=_SNAPSHOT, - __module__="google.cloud.bigtable.admin_v2.proto.table_pb2", - __doc__="""A snapshot of a table at a particular time. A snapshot can - be used as a checkpoint for data restoration or a data source for a new - table. - - Note: This is a private alpha release of Cloud Bigtable snapshots. This - feature is not currently available to most Cloud Bigtable customers. - This feature might be changed in backward-incompatible ways and is not - recommended for production use. It is not subject to any SLA or - deprecation policy. - - + { + "DESCRIPTOR": _SNAPSHOT, + "__module__": "google.cloud.bigtable_admin_v2.proto.table_pb2", + "__doc__": """A snapshot of a table at a particular time. A snapshot can be used as + a checkpoint for data restoration or a data source for a new table. + Note: This is a private alpha release of Cloud Bigtable snapshots. + This feature is not currently available to most Cloud Bigtable + customers. This feature might be changed in backward-incompatible ways + and is not recommended for production use. It is not subject to any + SLA or deprecation policy. Attributes: name: - (\ ``OutputOnly``) The unique name of the snapshot. Values are - of the form ``projects//instances//clusters - //snapshots/``. + Output only. The unique name of the snapshot. Values are of + the form ``projects//instances//clusters//snapshots/``. source_table: - (\ ``OutputOnly``) The source table at the time the snapshot - was taken. + Output only. The source table at the time the snapshot was + taken. data_size_bytes: - (\ ``OutputOnly``) The size of the data in the source table at - the time the snapshot was taken. In some cases, this value may - be computed asynchronously via a background process and a + Output only. The size of the data in the source table at the + time the snapshot was taken. In some cases, this value may be + computed asynchronously via a background process and a placeholder of 0 will be used in the meantime. create_time: - (\ ``OutputOnly``) The time when the snapshot is created. + Output only. The time when the snapshot is created. delete_time: - (\ ``OutputOnly``) The time when the snapshot will be deleted. - The maximum amount of time a snapshot can stay active is 365 - days. If 'ttl' is not specified, the default maximum of 365 - days will be used. + Output only. The time when the snapshot will be deleted. The + maximum amount of time a snapshot can stay active is 365 days. + If ‘ttl’ is not specified, the default maximum of 365 days + will be used. state: - (\ ``OutputOnly``) The current state of the snapshot. + Output only. The current state of the snapshot. description: - (\ ``OutputOnly``) Description of the snapshot. + Output only. Description of the snapshot. """, # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Snapshot) - ), + }, ) _sym_db.RegisterMessage(Snapshot) +Backup = _reflection.GeneratedProtocolMessageType( + "Backup", + (_message.Message,), + { + "DESCRIPTOR": _BACKUP, + "__module__": "google.cloud.bigtable_admin_v2.proto.table_pb2", + "__doc__": """A backup of a Cloud Bigtable table. + Attributes: + name: + Output only. A globally unique identifier for the backup which + cannot be changed. Values are of the form + ``projects/{project}/instances/{instance}/clusters/{cluster}/ + backups/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`` The final segment of the + name must be between 1 and 50 characters in length. The + backup is stored in the cluster identified by the prefix of + the backup name of the form ``projects/{project}/instances/{in + stance}/clusters/{cluster}``. + source_table: + Required. Immutable. Name of the table from which this backup + was created. This needs to be in the same instance as the + backup. Values are of the form ``projects/{project}/instances/ + {instance}/tables/{source_table}``. + expire_time: + Required. The expiration time of the backup, with microseconds + granularity that must be at least 6 hours and at most 30 days + from the time the request is received. Once the + ``expire_time`` has passed, Cloud Bigtable will delete the + backup and free the resources used by the backup. + start_time: + Output only. ``start_time`` is the time that the backup was + started (i.e. approximately the time the [CreateBackup][google + .bigtable.admin.v2.BigtableTableAdmin.CreateBackup] request is + received). The row data in this backup will be no older than + this timestamp. + end_time: + Output only. ``end_time`` is the time that the backup was + finished. The row data in the backup will be no newer than + this timestamp. + size_bytes: + Output only. Size of the backup in bytes. + state: + Output only. The current state of the backup. + """, + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Backup) + }, +) +_sym_db.RegisterMessage(Backup) + +BackupInfo = _reflection.GeneratedProtocolMessageType( + "BackupInfo", + (_message.Message,), + { + "DESCRIPTOR": _BACKUPINFO, + "__module__": "google.cloud.bigtable_admin_v2.proto.table_pb2", + "__doc__": """Information about a backup. + Attributes: + backup: + Output only. Name of the backup. + start_time: + Output only. The time that the backup was started. Row data in + the backup will be no older than this timestamp. + end_time: + Output only. This time that the backup was finished. Row data + in the backup will be no newer than this timestamp. + source_table: + Output only. Name of the table the backup was created from. + """, + # @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.BackupInfo) + }, +) +_sym_db.RegisterMessage(BackupInfo) + DESCRIPTOR._options = None _TABLE_CLUSTERSTATESENTRY._options = None _TABLE_COLUMNFAMILIESENTRY._options = None +_TABLE._options = None +_SNAPSHOT._options = None +_BACKUP.fields_by_name["name"]._options = None +_BACKUP.fields_by_name["source_table"]._options = None +_BACKUP.fields_by_name["expire_time"]._options = None +_BACKUP.fields_by_name["start_time"]._options = None +_BACKUP.fields_by_name["end_time"]._options = None +_BACKUP.fields_by_name["size_bytes"]._options = None +_BACKUP.fields_by_name["state"]._options = None +_BACKUP._options = None +_BACKUPINFO.fields_by_name["backup"]._options = None +_BACKUPINFO.fields_by_name["start_time"]._options = None +_BACKUPINFO.fields_by_name["end_time"]._options = None +_BACKUPINFO.fields_by_name["source_table"]._options = None # @@protoc_insertion_point(module_scope) diff --git a/google/cloud/bigtable_admin_v2/types.py b/google/cloud/bigtable_admin_v2/types.py index 2b149637e..7dbb939d1 100644 --- a/google/cloud/bigtable_admin_v2/types.py +++ b/google/cloud/bigtable_admin_v2/types.py @@ -22,6 +22,7 @@ from google.cloud.bigtable_admin_v2.proto import bigtable_instance_admin_pb2 from google.cloud.bigtable_admin_v2.proto import bigtable_table_admin_pb2 +from google.cloud.bigtable_admin_v2.proto import common_pb2 from google.cloud.bigtable_admin_v2.proto import instance_pb2 from google.cloud.bigtable_admin_v2.proto import table_pb2 from google.iam.v1 import iam_policy_pb2 @@ -54,6 +55,7 @@ _local_modules = [ bigtable_instance_admin_pb2, bigtable_table_admin_pb2, + common_pb2, instance_pb2, table_pb2, ] diff --git a/google/cloud/bigtable_v2/__init__.py b/google/cloud/bigtable_v2/__init__.py index a649c8cf4..8c31017cc 100644 --- a/google/cloud/bigtable_v2/__init__.py +++ b/google/cloud/bigtable_v2/__init__.py @@ -25,8 +25,8 @@ if sys.version_info[:2] == (2, 7): message = ( - "A future version of this library will drop support for Python 2.7." - "More details about Python 2 support for Google Cloud Client Libraries" + "A future version of this library will drop support for Python 2.7. " + "More details about Python 2 support for Google Cloud Client Libraries " "can be found at https://cloud.google.com/python/docs/python2-sunset/" ) warnings.warn(message, DeprecationWarning) diff --git a/google/cloud/bigtable_v2/gapic/bigtable_client.py b/google/cloud/bigtable_v2/gapic/bigtable_client.py index abe6130df..f02e0048f 100644 --- a/google/cloud/bigtable_v2/gapic/bigtable_client.py +++ b/google/cloud/bigtable_v2/gapic/bigtable_client.py @@ -224,8 +224,9 @@ def read_rows( ... pass Args: - table_name (str): Required. The unique name of the table from which to read. Values are of - the form ``projects//instances//tables/
``. + table_name (str): Required. The unique name of the table from which to read. Values + are of the form + ``projects//instances//tables/
``. app_profile_id (str): This value specifies routing for replication. If not specified, the "default" application profile will be used. rows (Union[dict, ~google.cloud.bigtable_v2.types.RowSet]): The row keys and/or ranges to read. If not specified, reads from all rows. @@ -319,8 +320,8 @@ def sample_row_keys( ... pass Args: - table_name (str): Required. The unique name of the table from which to sample row keys. - Values are of the form + table_name (str): Required. The unique name of the table from which to sample row + keys. Values are of the form ``projects//instances//tables/
``. app_profile_id (str): This value specifies routing for replication. If not specified, the "default" application profile will be used. @@ -404,8 +405,8 @@ def mutate_row( >>> response = client.mutate_row(table_name, row_key, mutations) Args: - table_name (str): Required. The unique name of the table to which the mutation should be - applied. Values are of the form + table_name (str): Required. The unique name of the table to which the mutation should + be applied. Values are of the form ``projects//instances//tables/
``. row_key (bytes): Required. The key of the row to which the mutation should be applied. mutations (list[Union[dict, ~google.cloud.bigtable_v2.types.Mutation]]): Required. Changes to be atomically applied to the specified row. Entries are applied @@ -587,16 +588,16 @@ def check_and_mutate_row( >>> response = client.check_and_mutate_row(table_name, row_key) Args: - table_name (str): Required. The unique name of the table to which the conditional mutation - should be applied. Values are of the form + table_name (str): Required. The unique name of the table to which the conditional + mutation should be applied. Values are of the form ``projects//instances//tables/
``. row_key (bytes): Required. The key of the row to which the conditional mutation should be applied. app_profile_id (str): This value specifies routing for replication. If not specified, the "default" application profile will be used. - predicate_filter (Union[dict, ~google.cloud.bigtable_v2.types.RowFilter]): The filter to be applied to the contents of the specified row. Depending - on whether or not any results are yielded, either ``true_mutations`` or - ``false_mutations`` will be executed. If unset, checks that the row - contains any values at all. + predicate_filter (Union[dict, ~google.cloud.bigtable_v2.types.RowFilter]): The filter to be applied to the contents of the specified row. + Depending on whether or not any results are yielded, either + ``true_mutations`` or ``false_mutations`` will be executed. If unset, + checks that the row contains any values at all. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.bigtable_v2.types.RowFilter` @@ -704,8 +705,8 @@ def read_modify_write_row( >>> response = client.read_modify_write_row(table_name, row_key, rules) Args: - table_name (str): Required. The unique name of the table to which the read/modify/write - rules should be applied. Values are of the form + table_name (str): Required. The unique name of the table to which the + read/modify/write rules should be applied. Values are of the form ``projects//instances//tables/
``. row_key (bytes): Required. The key of the row to which the read/modify/write rules should be applied. rules (list[Union[dict, ~google.cloud.bigtable_v2.types.ReadModifyWriteRule]]): Required. Rules specifying how the specified row's contents are to be transformed diff --git a/google/cloud/bigtable_v2/gapic/bigtable_client_config.py b/google/cloud/bigtable_v2/gapic/bigtable_client_config.py index 3096f33e0..8a57847bf 100644 --- a/google/cloud/bigtable_v2/gapic/bigtable_client_config.py +++ b/google/cloud/bigtable_v2/gapic/bigtable_client_config.py @@ -46,22 +46,22 @@ "methods": { "ReadRows": { "timeout_millis": 43200000, - "retry_codes_name": "idempotent", + "retry_codes_name": "non_idempotent", "retry_params_name": "read_rows_params", }, "SampleRowKeys": { - "timeout_millis": 20000, - "retry_codes_name": "idempotent", - "retry_params_name": "idempotent_params", + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "non_idempotent_params", }, "MutateRow": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "idempotent", "retry_params_name": "idempotent_params", }, "MutateRows": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", + "timeout_millis": 600000, + "retry_codes_name": "non_idempotent", "retry_params_name": "mutate_rows_params", }, "CheckAndMutateRow": { diff --git a/google/cloud/bigtable_v2/proto/bigtable_pb2.py b/google/cloud/bigtable_v2/proto/bigtable_pb2.py index 59fb73a65..9da778ae7 100644 --- a/google/cloud/bigtable_v2/proto/bigtable_pb2.py +++ b/google/cloud/bigtable_v2/proto/bigtable_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/bigtable_v2/proto/bigtable.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -30,12 +27,9 @@ name="google/cloud/bigtable_v2/proto/bigtable.proto", package="google.bigtable.v2", syntax="proto3", - serialized_options=_b( - "\n\026com.google.bigtable.v2B\rBigtableProtoP\001Z:google.golang.org/genproto/googleapis/bigtable/v2;bigtable\252\002\030Google.Cloud.Bigtable.V2\312\002\030Google\\Cloud\\Bigtable\\V2\352AW\n\035bigtable.googleapis.com/Table\0226projects/{project}/instances/{instance}/tables/{table}" - ), - serialized_pb=_b( - '\n-google/cloud/bigtable_v2/proto/bigtable.proto\x12\x12google.bigtable.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/bigtable_v2/proto/data.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto"\xd1\x01\n\x0fReadRowsRequest\x12\x39\n\ntable_name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x62igtable.googleapis.com/Table\x12\x16\n\x0e\x61pp_profile_id\x18\x05 \x01(\t\x12(\n\x04rows\x18\x02 \x01(\x0b\x32\x1a.google.bigtable.v2.RowSet\x12-\n\x06\x66ilter\x18\x03 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x12\x12\n\nrows_limit\x18\x04 \x01(\x03"\xf8\x02\n\x10ReadRowsResponse\x12>\n\x06\x63hunks\x18\x01 \x03(\x0b\x32..google.bigtable.v2.ReadRowsResponse.CellChunk\x12\x1c\n\x14last_scanned_row_key\x18\x02 \x01(\x0c\x1a\x85\x02\n\tCellChunk\x12\x0f\n\x07row_key\x18\x01 \x01(\x0c\x12\x31\n\x0b\x66\x61mily_name\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\tqualifier\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.BytesValue\x12\x18\n\x10timestamp_micros\x18\x04 \x01(\x03\x12\x0e\n\x06labels\x18\x05 \x03(\t\x12\r\n\x05value\x18\x06 \x01(\x0c\x12\x12\n\nvalue_size\x18\x07 \x01(\x05\x12\x13\n\treset_row\x18\x08 \x01(\x08H\x00\x12\x14\n\ncommit_row\x18\t \x01(\x08H\x00\x42\x0c\n\nrow_status"i\n\x14SampleRowKeysRequest\x12\x39\n\ntable_name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x62igtable.googleapis.com/Table\x12\x16\n\x0e\x61pp_profile_id\x18\x02 \x01(\t">\n\x15SampleRowKeysResponse\x12\x0f\n\x07row_key\x18\x01 \x01(\x0c\x12\x14\n\x0coffset_bytes\x18\x02 \x01(\x03"\xb1\x01\n\x10MutateRowRequest\x12\x39\n\ntable_name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x62igtable.googleapis.com/Table\x12\x16\n\x0e\x61pp_profile_id\x18\x04 \x01(\t\x12\x14\n\x07row_key\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\x12\x34\n\tmutations\x18\x03 \x03(\x0b\x32\x1c.google.bigtable.v2.MutationB\x03\xe0\x41\x02"\x13\n\x11MutateRowResponse"\xf9\x01\n\x11MutateRowsRequest\x12\x39\n\ntable_name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x62igtable.googleapis.com/Table\x12\x16\n\x0e\x61pp_profile_id\x18\x03 \x01(\t\x12\x41\n\x07\x65ntries\x18\x02 \x03(\x0b\x32+.google.bigtable.v2.MutateRowsRequest.EntryB\x03\xe0\x41\x02\x1aN\n\x05\x45ntry\x12\x0f\n\x07row_key\x18\x01 \x01(\x0c\x12\x34\n\tmutations\x18\x02 \x03(\x0b\x32\x1c.google.bigtable.v2.MutationB\x03\xe0\x41\x02"\x8f\x01\n\x12MutateRowsResponse\x12=\n\x07\x65ntries\x18\x01 \x03(\x0b\x32,.google.bigtable.v2.MutateRowsResponse.Entry\x1a:\n\x05\x45ntry\x12\r\n\x05index\x18\x01 \x01(\x03\x12"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status"\xa9\x02\n\x18\x43heckAndMutateRowRequest\x12\x39\n\ntable_name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x62igtable.googleapis.com/Table\x12\x16\n\x0e\x61pp_profile_id\x18\x07 \x01(\t\x12\x14\n\x07row_key\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\x12\x37\n\x10predicate_filter\x18\x06 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x12\x34\n\x0etrue_mutations\x18\x04 \x03(\x0b\x32\x1c.google.bigtable.v2.Mutation\x12\x35\n\x0f\x66\x61lse_mutations\x18\x05 \x03(\x0b\x32\x1c.google.bigtable.v2.Mutation"6\n\x19\x43heckAndMutateRowResponse\x12\x19\n\x11predicate_matched\x18\x01 \x01(\x08"\xc1\x01\n\x19ReadModifyWriteRowRequest\x12\x39\n\ntable_name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x62igtable.googleapis.com/Table\x12\x16\n\x0e\x61pp_profile_id\x18\x04 \x01(\t\x12\x14\n\x07row_key\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\x12;\n\x05rules\x18\x03 \x03(\x0b\x32\'.google.bigtable.v2.ReadModifyWriteRuleB\x03\xe0\x41\x02"B\n\x1aReadModifyWriteRowResponse\x12$\n\x03row\x18\x01 \x01(\x0b\x32\x17.google.bigtable.v2.Row2\xc4\x0e\n\x08\x42igtable\x12\xc6\x01\n\x08ReadRows\x12#.google.bigtable.v2.ReadRowsRequest\x1a$.google.bigtable.v2.ReadRowsResponse"m\x82\xd3\xe4\x93\x02>"9/v2/{table_name=projects/*/instances/*/tables/*}:readRows:\x01*\xda\x41\ntable_name\xda\x41\x19table_name,app_profile_id0\x01\x12\xd7\x01\n\rSampleRowKeys\x12(.google.bigtable.v2.SampleRowKeysRequest\x1a).google.bigtable.v2.SampleRowKeysResponse"o\x82\xd3\xe4\x93\x02@\x12>/v2/{table_name=projects/*/instances/*/tables/*}:sampleRowKeys\xda\x41\ntable_name\xda\x41\x19table_name,app_profile_id0\x01\x12\xed\x01\n\tMutateRow\x12$.google.bigtable.v2.MutateRowRequest\x1a%.google.bigtable.v2.MutateRowResponse"\x92\x01\x82\xd3\xe4\x93\x02?":/v2/{table_name=projects/*/instances/*/tables/*}:mutateRow:\x01*\xda\x41\x1ctable_name,row_key,mutations\xda\x41+table_name,row_key,mutations,app_profile_id\x12\xde\x01\n\nMutateRows\x12%.google.bigtable.v2.MutateRowsRequest\x1a&.google.bigtable.v2.MutateRowsResponse"\x7f\x82\xd3\xe4\x93\x02@";/v2/{table_name=projects/*/instances/*/tables/*}:mutateRows:\x01*\xda\x41\x12table_name,entries\xda\x41!table_name,entries,app_profile_id0\x01\x12\xd9\x02\n\x11\x43heckAndMutateRow\x12,.google.bigtable.v2.CheckAndMutateRowRequest\x1a-.google.bigtable.v2.CheckAndMutateRowResponse"\xe6\x01\x82\xd3\xe4\x93\x02G"B/v2/{table_name=projects/*/instances/*/tables/*}:checkAndMutateRow:\x01*\xda\x41\x42table_name,row_key,predicate_filter,true_mutations,false_mutations\xda\x41Qtable_name,row_key,predicate_filter,true_mutations,false_mutations,app_profile_id\x12\x89\x02\n\x12ReadModifyWriteRow\x12-.google.bigtable.v2.ReadModifyWriteRowRequest\x1a..google.bigtable.v2.ReadModifyWriteRowResponse"\x93\x01\x82\xd3\xe4\x93\x02H"C/v2/{table_name=projects/*/instances/*/tables/*}:readModifyWriteRow:\x01*\xda\x41\x18table_name,row_key,rules\xda\x41\'table_name,row_key,rules,app_profile_id\x1a\xdb\x02\xca\x41\x17\x62igtable.googleapis.com\xd2\x41\xbd\x02https://www.googleapis.com/auth/bigtable.data,https://www.googleapis.com/auth/bigtable.data.readonly,https://www.googleapis.com/auth/cloud-bigtable.data,https://www.googleapis.com/auth/cloud-bigtable.data.readonly,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xf5\x01\n\x16\x63om.google.bigtable.v2B\rBigtableProtoP\x01Z:google.golang.org/genproto/googleapis/bigtable/v2;bigtable\xaa\x02\x18Google.Cloud.Bigtable.V2\xca\x02\x18Google\\Cloud\\Bigtable\\V2\xea\x41W\n\x1d\x62igtable.googleapis.com/Table\x12\x36projects/{project}/instances/{instance}/tables/{table}b\x06proto3' - ), + serialized_options=b"\n\026com.google.bigtable.v2B\rBigtableProtoP\001Z:google.golang.org/genproto/googleapis/bigtable/v2;bigtable\252\002\030Google.Cloud.Bigtable.V2\312\002\030Google\\Cloud\\Bigtable\\V2\352AW\n\035bigtable.googleapis.com/Table\0226projects/{project}/instances/{instance}/tables/{table}", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n-google/cloud/bigtable_v2/proto/bigtable.proto\x12\x12google.bigtable.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/bigtable_v2/proto/data.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto"\xd1\x01\n\x0fReadRowsRequest\x12\x39\n\ntable_name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x62igtable.googleapis.com/Table\x12\x16\n\x0e\x61pp_profile_id\x18\x05 \x01(\t\x12(\n\x04rows\x18\x02 \x01(\x0b\x32\x1a.google.bigtable.v2.RowSet\x12-\n\x06\x66ilter\x18\x03 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x12\x12\n\nrows_limit\x18\x04 \x01(\x03"\xf8\x02\n\x10ReadRowsResponse\x12>\n\x06\x63hunks\x18\x01 \x03(\x0b\x32..google.bigtable.v2.ReadRowsResponse.CellChunk\x12\x1c\n\x14last_scanned_row_key\x18\x02 \x01(\x0c\x1a\x85\x02\n\tCellChunk\x12\x0f\n\x07row_key\x18\x01 \x01(\x0c\x12\x31\n\x0b\x66\x61mily_name\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\tqualifier\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.BytesValue\x12\x18\n\x10timestamp_micros\x18\x04 \x01(\x03\x12\x0e\n\x06labels\x18\x05 \x03(\t\x12\r\n\x05value\x18\x06 \x01(\x0c\x12\x12\n\nvalue_size\x18\x07 \x01(\x05\x12\x13\n\treset_row\x18\x08 \x01(\x08H\x00\x12\x14\n\ncommit_row\x18\t \x01(\x08H\x00\x42\x0c\n\nrow_status"i\n\x14SampleRowKeysRequest\x12\x39\n\ntable_name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x62igtable.googleapis.com/Table\x12\x16\n\x0e\x61pp_profile_id\x18\x02 \x01(\t">\n\x15SampleRowKeysResponse\x12\x0f\n\x07row_key\x18\x01 \x01(\x0c\x12\x14\n\x0coffset_bytes\x18\x02 \x01(\x03"\xb1\x01\n\x10MutateRowRequest\x12\x39\n\ntable_name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x62igtable.googleapis.com/Table\x12\x16\n\x0e\x61pp_profile_id\x18\x04 \x01(\t\x12\x14\n\x07row_key\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\x12\x34\n\tmutations\x18\x03 \x03(\x0b\x32\x1c.google.bigtable.v2.MutationB\x03\xe0\x41\x02"\x13\n\x11MutateRowResponse"\xf9\x01\n\x11MutateRowsRequest\x12\x39\n\ntable_name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x62igtable.googleapis.com/Table\x12\x16\n\x0e\x61pp_profile_id\x18\x03 \x01(\t\x12\x41\n\x07\x65ntries\x18\x02 \x03(\x0b\x32+.google.bigtable.v2.MutateRowsRequest.EntryB\x03\xe0\x41\x02\x1aN\n\x05\x45ntry\x12\x0f\n\x07row_key\x18\x01 \x01(\x0c\x12\x34\n\tmutations\x18\x02 \x03(\x0b\x32\x1c.google.bigtable.v2.MutationB\x03\xe0\x41\x02"\x8f\x01\n\x12MutateRowsResponse\x12=\n\x07\x65ntries\x18\x01 \x03(\x0b\x32,.google.bigtable.v2.MutateRowsResponse.Entry\x1a:\n\x05\x45ntry\x12\r\n\x05index\x18\x01 \x01(\x03\x12"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status"\xa9\x02\n\x18\x43heckAndMutateRowRequest\x12\x39\n\ntable_name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x62igtable.googleapis.com/Table\x12\x16\n\x0e\x61pp_profile_id\x18\x07 \x01(\t\x12\x14\n\x07row_key\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\x12\x37\n\x10predicate_filter\x18\x06 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x12\x34\n\x0etrue_mutations\x18\x04 \x03(\x0b\x32\x1c.google.bigtable.v2.Mutation\x12\x35\n\x0f\x66\x61lse_mutations\x18\x05 \x03(\x0b\x32\x1c.google.bigtable.v2.Mutation"6\n\x19\x43heckAndMutateRowResponse\x12\x19\n\x11predicate_matched\x18\x01 \x01(\x08"\xc1\x01\n\x19ReadModifyWriteRowRequest\x12\x39\n\ntable_name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x62igtable.googleapis.com/Table\x12\x16\n\x0e\x61pp_profile_id\x18\x04 \x01(\t\x12\x14\n\x07row_key\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\x12;\n\x05rules\x18\x03 \x03(\x0b\x32\'.google.bigtable.v2.ReadModifyWriteRuleB\x03\xe0\x41\x02"B\n\x1aReadModifyWriteRowResponse\x12$\n\x03row\x18\x01 \x01(\x0b\x32\x17.google.bigtable.v2.Row2\xc4\x0e\n\x08\x42igtable\x12\xc6\x01\n\x08ReadRows\x12#.google.bigtable.v2.ReadRowsRequest\x1a$.google.bigtable.v2.ReadRowsResponse"m\x82\xd3\xe4\x93\x02>"9/v2/{table_name=projects/*/instances/*/tables/*}:readRows:\x01*\xda\x41\ntable_name\xda\x41\x19table_name,app_profile_id0\x01\x12\xd7\x01\n\rSampleRowKeys\x12(.google.bigtable.v2.SampleRowKeysRequest\x1a).google.bigtable.v2.SampleRowKeysResponse"o\x82\xd3\xe4\x93\x02@\x12>/v2/{table_name=projects/*/instances/*/tables/*}:sampleRowKeys\xda\x41\ntable_name\xda\x41\x19table_name,app_profile_id0\x01\x12\xed\x01\n\tMutateRow\x12$.google.bigtable.v2.MutateRowRequest\x1a%.google.bigtable.v2.MutateRowResponse"\x92\x01\x82\xd3\xe4\x93\x02?":/v2/{table_name=projects/*/instances/*/tables/*}:mutateRow:\x01*\xda\x41\x1ctable_name,row_key,mutations\xda\x41+table_name,row_key,mutations,app_profile_id\x12\xde\x01\n\nMutateRows\x12%.google.bigtable.v2.MutateRowsRequest\x1a&.google.bigtable.v2.MutateRowsResponse"\x7f\x82\xd3\xe4\x93\x02@";/v2/{table_name=projects/*/instances/*/tables/*}:mutateRows:\x01*\xda\x41\x12table_name,entries\xda\x41!table_name,entries,app_profile_id0\x01\x12\xd9\x02\n\x11\x43heckAndMutateRow\x12,.google.bigtable.v2.CheckAndMutateRowRequest\x1a-.google.bigtable.v2.CheckAndMutateRowResponse"\xe6\x01\x82\xd3\xe4\x93\x02G"B/v2/{table_name=projects/*/instances/*/tables/*}:checkAndMutateRow:\x01*\xda\x41\x42table_name,row_key,predicate_filter,true_mutations,false_mutations\xda\x41Qtable_name,row_key,predicate_filter,true_mutations,false_mutations,app_profile_id\x12\x89\x02\n\x12ReadModifyWriteRow\x12-.google.bigtable.v2.ReadModifyWriteRowRequest\x1a..google.bigtable.v2.ReadModifyWriteRowResponse"\x93\x01\x82\xd3\xe4\x93\x02H"C/v2/{table_name=projects/*/instances/*/tables/*}:readModifyWriteRow:\x01*\xda\x41\x18table_name,row_key,rules\xda\x41\'table_name,row_key,rules,app_profile_id\x1a\xdb\x02\xca\x41\x17\x62igtable.googleapis.com\xd2\x41\xbd\x02https://www.googleapis.com/auth/bigtable.data,https://www.googleapis.com/auth/bigtable.data.readonly,https://www.googleapis.com/auth/cloud-bigtable.data,https://www.googleapis.com/auth/cloud-bigtable.data.readonly,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xf5\x01\n\x16\x63om.google.bigtable.v2B\rBigtableProtoP\x01Z:google.golang.org/genproto/googleapis/bigtable/v2;bigtable\xaa\x02\x18Google.Cloud.Bigtable.V2\xca\x02\x18Google\\Cloud\\Bigtable\\V2\xea\x41W\n\x1d\x62igtable.googleapis.com/Table\x12\x36projects/{project}/instances/{instance}/tables/{table}b\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -54,6 +48,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="table_name", @@ -64,16 +59,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A\037\n\035bigtable.googleapis.com/Table" - ), + serialized_options=b"\340A\002\372A\037\n\035bigtable.googleapis.com/Table", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="app_profile_id", @@ -84,7 +78,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -92,6 +86,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="rows", @@ -110,6 +105,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="filter", @@ -128,6 +124,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="rows_limit", @@ -146,6 +143,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -167,6 +165,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="row_key", @@ -177,7 +176,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -185,6 +184,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="family_name", @@ -203,6 +203,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="qualifier", @@ -221,6 +222,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="timestamp_micros", @@ -239,6 +241,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="labels", @@ -257,6 +260,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -267,7 +271,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -275,6 +279,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value_size", @@ -293,6 +298,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="reset_row", @@ -311,6 +317,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="commit_row", @@ -329,6 +336,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -344,6 +352,7 @@ full_name="google.bigtable.v2.ReadRowsResponse.CellChunk.row_status", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ), ], @@ -357,6 +366,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="chunks", @@ -375,6 +385,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="last_scanned_row_key", @@ -385,7 +396,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -393,6 +404,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -414,6 +426,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="table_name", @@ -424,16 +437,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A\037\n\035bigtable.googleapis.com/Table" - ), + serialized_options=b"\340A\002\372A\037\n\035bigtable.googleapis.com/Table", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="app_profile_id", @@ -444,7 +456,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -452,6 +464,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -473,6 +486,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="row_key", @@ -483,7 +497,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -491,6 +505,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="offset_bytes", @@ -509,6 +524,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -530,6 +546,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="table_name", @@ -540,16 +557,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A\037\n\035bigtable.googleapis.com/Table" - ), + serialized_options=b"\340A\002\372A\037\n\035bigtable.googleapis.com/Table", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="app_profile_id", @@ -560,7 +576,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -568,6 +584,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="row_key", @@ -578,14 +595,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="mutations", @@ -602,8 +620,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -625,6 +644,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], extensions=[], nested_types=[], @@ -645,6 +665,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="row_key", @@ -655,7 +676,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -663,6 +684,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="mutations", @@ -679,8 +701,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -701,6 +724,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="table_name", @@ -711,16 +735,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A\037\n\035bigtable.googleapis.com/Table" - ), + serialized_options=b"\340A\002\372A\037\n\035bigtable.googleapis.com/Table", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="app_profile_id", @@ -731,7 +754,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -739,6 +762,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="entries", @@ -755,8 +779,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -778,6 +803,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="index", @@ -796,6 +822,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="status", @@ -814,6 +841,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -834,6 +862,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="entries", @@ -852,6 +881,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -873,6 +903,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="table_name", @@ -883,16 +914,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A\037\n\035bigtable.googleapis.com/Table" - ), + serialized_options=b"\340A\002\372A\037\n\035bigtable.googleapis.com/Table", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="app_profile_id", @@ -903,7 +933,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -911,6 +941,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="row_key", @@ -921,14 +952,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="predicate_filter", @@ -947,6 +979,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="true_mutations", @@ -965,6 +998,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="false_mutations", @@ -983,6 +1017,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1004,6 +1039,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="predicate_matched", @@ -1022,6 +1058,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1043,6 +1080,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="table_name", @@ -1053,16 +1091,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A\037\n\035bigtable.googleapis.com/Table" - ), + serialized_options=b"\340A\002\372A\037\n\035bigtable.googleapis.com/Table", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="app_profile_id", @@ -1073,7 +1110,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1081,6 +1118,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="row_key", @@ -1091,14 +1129,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="rules", @@ -1115,8 +1154,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1138,6 +1178,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="row", @@ -1156,6 +1197,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1249,12 +1291,10 @@ ReadRowsRequest = _reflection.GeneratedProtocolMessageType( "ReadRowsRequest", (_message.Message,), - dict( - DESCRIPTOR=_READROWSREQUEST, - __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", - __doc__="""Request message for Bigtable.ReadRows. - - + { + "DESCRIPTOR": _READROWSREQUEST, + "__module__": "google.cloud.bigtable_v2.proto.bigtable_pb2", + "__doc__": """Request message for Bigtable.ReadRows. Attributes: table_name: Required. The unique name of the table from which to read. @@ -1262,7 +1302,7 @@ ``projects//instances//tables/
``. app_profile_id: This value specifies routing for replication. If not - specified, the "default" application profile will be used. + specified, the “default” application profile will be used. rows: The row keys and/or ranges to read. If not specified, reads from all rows. @@ -1270,28 +1310,26 @@ The filter to apply to the contents of the specified row(s). If unset, reads the entirety of each row. rows_limit: - The read will terminate after committing to N rows' worth of + The read will terminate after committing to N rows’ worth of results. The default (zero) is to return all results. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.ReadRowsRequest) - ), + }, ) _sym_db.RegisterMessage(ReadRowsRequest) ReadRowsResponse = _reflection.GeneratedProtocolMessageType( "ReadRowsResponse", (_message.Message,), - dict( - CellChunk=_reflection.GeneratedProtocolMessageType( + { + "CellChunk": _reflection.GeneratedProtocolMessageType( "CellChunk", (_message.Message,), - dict( - DESCRIPTOR=_READROWSRESPONSE_CELLCHUNK, - __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", - __doc__="""Specifies a piece of a row's contents returned as part of the read + { + "DESCRIPTOR": _READROWSRESPONSE_CELLCHUNK, + "__module__": "google.cloud.bigtable_v2.proto.bigtable_pb2", + "__doc__": """Specifies a piece of a row’s contents returned as part of the read response stream. - - Attributes: row_key: The row key for this chunk of data. If the row key is empty, @@ -1312,7 +1350,7 @@ empty so clients must check for the presence of this message, not just for ``qualifier.value`` being non-empty. timestamp_micros: - The cell's stored timestamp, which also uniquely identifies it + The cell’s stored timestamp, which also uniquely identifies it within its column. Values are always expressed in microseconds, but individual tables may set a coarser granularity to further restrict the allowed values. For @@ -1332,7 +1370,7 @@ CellChunk came in a previous ReadRowsResponse. value_size: If this CellChunk is part of a chunked cell value and this is - not the final chunk of that cell, value\_size will be set to + not the final chunk of that cell, value_size will be set to the total length of the cell value. The client can use this size to pre-allocate memory to hold the full cell value. row_status: @@ -1345,16 +1383,14 @@ chunks for ``row_key``, as its data has been fully read. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.ReadRowsResponse.CellChunk) - ), + }, ), - DESCRIPTOR=_READROWSRESPONSE, - __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", - __doc__="""Response message for Bigtable.ReadRows. - - + "DESCRIPTOR": _READROWSRESPONSE, + "__module__": "google.cloud.bigtable_v2.proto.bigtable_pb2", + "__doc__": """Response message for Bigtable.ReadRows. Attributes: chunks: - A collection of a row's contents as part of the read request. + A collection of a row’s contents as part of the read request. last_scanned_row_key: Optionally the server might return the row key of the last row it has scanned. The client can use this to construct a more @@ -1365,7 +1401,7 @@ key, allowing the client to skip that work on a retry. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.ReadRowsResponse) - ), + }, ) _sym_db.RegisterMessage(ReadRowsResponse) _sym_db.RegisterMessage(ReadRowsResponse.CellChunk) @@ -1373,12 +1409,10 @@ SampleRowKeysRequest = _reflection.GeneratedProtocolMessageType( "SampleRowKeysRequest", (_message.Message,), - dict( - DESCRIPTOR=_SAMPLEROWKEYSREQUEST, - __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", - __doc__="""Request message for Bigtable.SampleRowKeys. - - + { + "DESCRIPTOR": _SAMPLEROWKEYSREQUEST, + "__module__": "google.cloud.bigtable_v2.proto.bigtable_pb2", + "__doc__": """Request message for Bigtable.SampleRowKeys. Attributes: table_name: Required. The unique name of the table from which to sample @@ -1386,28 +1420,26 @@ ``projects//instances//tables/
``. app_profile_id: This value specifies routing for replication. If not - specified, the "default" application profile will be used. + specified, the “default” application profile will be used. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.SampleRowKeysRequest) - ), + }, ) _sym_db.RegisterMessage(SampleRowKeysRequest) SampleRowKeysResponse = _reflection.GeneratedProtocolMessageType( "SampleRowKeysResponse", (_message.Message,), - dict( - DESCRIPTOR=_SAMPLEROWKEYSRESPONSE, - __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", - __doc__="""Response message for Bigtable.SampleRowKeys. - - + { + "DESCRIPTOR": _SAMPLEROWKEYSRESPONSE, + "__module__": "google.cloud.bigtable_v2.proto.bigtable_pb2", + "__doc__": """Response message for Bigtable.SampleRowKeys. Attributes: row_key: Sorted streamed sequence of sample row keys in the table. The table might have contents before the first row key in the list and after the last one, but a key containing the empty string - indicates "end of table" and will be the last response given, + indicates “end of table” and will be the last response given, if present. Note that row keys in this list may not have ever been written to or read from, and users should therefore not make any assumptions about the row key structure that are @@ -1419,19 +1451,17 @@ equal to the difference in their ``offset_bytes`` fields. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.SampleRowKeysResponse) - ), + }, ) _sym_db.RegisterMessage(SampleRowKeysResponse) MutateRowRequest = _reflection.GeneratedProtocolMessageType( "MutateRowRequest", (_message.Message,), - dict( - DESCRIPTOR=_MUTATEROWREQUEST, - __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", - __doc__="""Request message for Bigtable.MutateRow. - - + { + "DESCRIPTOR": _MUTATEROWREQUEST, + "__module__": "google.cloud.bigtable_v2.proto.bigtable_pb2", + "__doc__": """Request message for Bigtable.MutateRow. Attributes: table_name: Required. The unique name of the table to which the mutation @@ -1439,7 +1469,7 @@ ``projects//instances//tables/
``. app_profile_id: This value specifies routing for replication. If not - specified, the "default" application profile will be used. + specified, the “default” application profile will be used. row_key: Required. The key of the row to which the mutation should be applied. @@ -1450,37 +1480,33 @@ one entry and at most 100000. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.MutateRowRequest) - ), + }, ) _sym_db.RegisterMessage(MutateRowRequest) MutateRowResponse = _reflection.GeneratedProtocolMessageType( "MutateRowResponse", (_message.Message,), - dict( - DESCRIPTOR=_MUTATEROWRESPONSE, - __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", - __doc__="""Response message for Bigtable.MutateRow. - - """, + { + "DESCRIPTOR": _MUTATEROWRESPONSE, + "__module__": "google.cloud.bigtable_v2.proto.bigtable_pb2", + "__doc__": """Response message for Bigtable.MutateRow.""", # @@protoc_insertion_point(class_scope:google.bigtable.v2.MutateRowResponse) - ), + }, ) _sym_db.RegisterMessage(MutateRowResponse) MutateRowsRequest = _reflection.GeneratedProtocolMessageType( "MutateRowsRequest", (_message.Message,), - dict( - Entry=_reflection.GeneratedProtocolMessageType( + { + "Entry": _reflection.GeneratedProtocolMessageType( "Entry", (_message.Message,), - dict( - DESCRIPTOR=_MUTATEROWSREQUEST_ENTRY, - __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", - __doc__="""A mutation for a given row. - - + { + "DESCRIPTOR": _MUTATEROWSREQUEST_ENTRY, + "__module__": "google.cloud.bigtable_v2.proto.bigtable_pb2", + "__doc__": """A mutation for a given row. Attributes: row_key: The key of the row to which the ``mutations`` should be @@ -1492,20 +1518,18 @@ least one mutation. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.MutateRowsRequest.Entry) - ), + }, ), - DESCRIPTOR=_MUTATEROWSREQUEST, - __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", - __doc__="""Request message for BigtableService.MutateRows. - - + "DESCRIPTOR": _MUTATEROWSREQUEST, + "__module__": "google.cloud.bigtable_v2.proto.bigtable_pb2", + "__doc__": """Request message for BigtableService.MutateRows. Attributes: table_name: Required. The unique name of the table to which the mutations should be applied. app_profile_id: This value specifies routing for replication. If not - specified, the "default" application profile will be used. + specified, the “default” application profile will be used. entries: Required. The row keys and corresponding mutations to be applied in bulk. Each entry is applied as an atomic mutation, @@ -1515,7 +1539,7 @@ mutations. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.MutateRowsRequest) - ), + }, ) _sym_db.RegisterMessage(MutateRowsRequest) _sym_db.RegisterMessage(MutateRowsRequest.Entry) @@ -1523,20 +1547,17 @@ MutateRowsResponse = _reflection.GeneratedProtocolMessageType( "MutateRowsResponse", (_message.Message,), - dict( - Entry=_reflection.GeneratedProtocolMessageType( + { + "Entry": _reflection.GeneratedProtocolMessageType( "Entry", (_message.Message,), - dict( - DESCRIPTOR=_MUTATEROWSRESPONSE_ENTRY, - __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", - __doc__="""The result of applying a passed mutation in the original - request. - - + { + "DESCRIPTOR": _MUTATEROWSRESPONSE_ENTRY, + "__module__": "google.cloud.bigtable_v2.proto.bigtable_pb2", + "__doc__": """The result of applying a passed mutation in the original request. Attributes: index: - The index into the original request's ``entries`` list of the + The index into the original request’s ``entries`` list of the Entry for which a result is being reported. status: The result of the request Entry identified by ``index``. @@ -1546,19 +1567,17 @@ reported for both entries. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.MutateRowsResponse.Entry) - ), + }, ), - DESCRIPTOR=_MUTATEROWSRESPONSE, - __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", - __doc__="""Response message for BigtableService.MutateRows. - - + "DESCRIPTOR": _MUTATEROWSRESPONSE, + "__module__": "google.cloud.bigtable_v2.proto.bigtable_pb2", + "__doc__": """Response message for BigtableService.MutateRows. Attributes: entries: One or more results for Entries from the batch request. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.MutateRowsResponse) - ), + }, ) _sym_db.RegisterMessage(MutateRowsResponse) _sym_db.RegisterMessage(MutateRowsResponse.Entry) @@ -1566,12 +1585,10 @@ CheckAndMutateRowRequest = _reflection.GeneratedProtocolMessageType( "CheckAndMutateRowRequest", (_message.Message,), - dict( - DESCRIPTOR=_CHECKANDMUTATEROWREQUEST, - __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", - __doc__="""Request message for Bigtable.CheckAndMutateRow. - - + { + "DESCRIPTOR": _CHECKANDMUTATEROWREQUEST, + "__module__": "google.cloud.bigtable_v2.proto.bigtable_pb2", + "__doc__": """Request message for Bigtable.CheckAndMutateRow. Attributes: table_name: Required. The unique name of the table to which the @@ -1579,7 +1596,7 @@ ``projects//instances//tables/
``. app_profile_id: This value specifies routing for replication. If not - specified, the "default" application profile will be used. + specified, the “default” application profile will be used. row_key: Required. The key of the row to which the conditional mutation should be applied. @@ -1604,38 +1621,34 @@ 100000. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.CheckAndMutateRowRequest) - ), + }, ) _sym_db.RegisterMessage(CheckAndMutateRowRequest) CheckAndMutateRowResponse = _reflection.GeneratedProtocolMessageType( "CheckAndMutateRowResponse", (_message.Message,), - dict( - DESCRIPTOR=_CHECKANDMUTATEROWRESPONSE, - __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", - __doc__="""Response message for Bigtable.CheckAndMutateRow. - - + { + "DESCRIPTOR": _CHECKANDMUTATEROWRESPONSE, + "__module__": "google.cloud.bigtable_v2.proto.bigtable_pb2", + "__doc__": """Response message for Bigtable.CheckAndMutateRow. Attributes: predicate_matched: - Whether or not the request's ``predicate_filter`` yielded any + Whether or not the request’s ``predicate_filter`` yielded any results for the specified row. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.CheckAndMutateRowResponse) - ), + }, ) _sym_db.RegisterMessage(CheckAndMutateRowResponse) ReadModifyWriteRowRequest = _reflection.GeneratedProtocolMessageType( "ReadModifyWriteRowRequest", (_message.Message,), - dict( - DESCRIPTOR=_READMODIFYWRITEROWREQUEST, - __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", - __doc__="""Request message for Bigtable.ReadModifyWriteRow. - - + { + "DESCRIPTOR": _READMODIFYWRITEROWREQUEST, + "__module__": "google.cloud.bigtable_v2.proto.bigtable_pb2", + "__doc__": """Request message for Bigtable.ReadModifyWriteRow. Attributes: table_name: Required. The unique name of the table to which the @@ -1644,37 +1657,35 @@ ``projects//instances//tables/
``. app_profile_id: This value specifies routing for replication. If not - specified, the "default" application profile will be used. + specified, the “default” application profile will be used. row_key: Required. The key of the row to which the read/modify/write rules should be applied. rules: - Required. Rules specifying how the specified row's contents + Required. Rules specifying how the specified row’s contents are to be transformed into writes. Entries are applied in order, meaning that earlier rules will affect the results of later ones. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.ReadModifyWriteRowRequest) - ), + }, ) _sym_db.RegisterMessage(ReadModifyWriteRowRequest) ReadModifyWriteRowResponse = _reflection.GeneratedProtocolMessageType( "ReadModifyWriteRowResponse", (_message.Message,), - dict( - DESCRIPTOR=_READMODIFYWRITEROWRESPONSE, - __module__="google.cloud.bigtable_v2.proto.bigtable_pb2", - __doc__="""Response message for Bigtable.ReadModifyWriteRow. - - + { + "DESCRIPTOR": _READMODIFYWRITEROWRESPONSE, + "__module__": "google.cloud.bigtable_v2.proto.bigtable_pb2", + "__doc__": """Response message for Bigtable.ReadModifyWriteRow. Attributes: row: A Row containing the new contents of all cells modified by the request. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.ReadModifyWriteRowResponse) - ), + }, ) _sym_db.RegisterMessage(ReadModifyWriteRowResponse) @@ -1699,9 +1710,8 @@ full_name="google.bigtable.v2.Bigtable", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\027bigtable.googleapis.com\322A\275\002https://www.googleapis.com/auth/bigtable.data,https://www.googleapis.com/auth/bigtable.data.readonly,https://www.googleapis.com/auth/cloud-bigtable.data,https://www.googleapis.com/auth/cloud-bigtable.data.readonly,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only" - ), + serialized_options=b"\312A\027bigtable.googleapis.com\322A\275\002https://www.googleapis.com/auth/bigtable.data,https://www.googleapis.com/auth/bigtable.data.readonly,https://www.googleapis.com/auth/cloud-bigtable.data,https://www.googleapis.com/auth/cloud-bigtable.data.readonly,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only", + create_key=_descriptor._internal_create_key, serialized_start=2266, serialized_end=4126, methods=[ @@ -1712,9 +1722,8 @@ containing_service=None, input_type=_READROWSREQUEST, output_type=_READROWSRESPONSE, - serialized_options=_b( - '\202\323\344\223\002>"9/v2/{table_name=projects/*/instances/*/tables/*}:readRows:\001*\332A\ntable_name\332A\031table_name,app_profile_id' - ), + serialized_options=b'\202\323\344\223\002>"9/v2/{table_name=projects/*/instances/*/tables/*}:readRows:\001*\332A\ntable_name\332A\031table_name,app_profile_id', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="SampleRowKeys", @@ -1723,9 +1732,8 @@ containing_service=None, input_type=_SAMPLEROWKEYSREQUEST, output_type=_SAMPLEROWKEYSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002@\022>/v2/{table_name=projects/*/instances/*/tables/*}:sampleRowKeys\332A\ntable_name\332A\031table_name,app_profile_id" - ), + serialized_options=b"\202\323\344\223\002@\022>/v2/{table_name=projects/*/instances/*/tables/*}:sampleRowKeys\332A\ntable_name\332A\031table_name,app_profile_id", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="MutateRow", @@ -1734,9 +1742,8 @@ containing_service=None, input_type=_MUTATEROWREQUEST, output_type=_MUTATEROWRESPONSE, - serialized_options=_b( - '\202\323\344\223\002?":/v2/{table_name=projects/*/instances/*/tables/*}:mutateRow:\001*\332A\034table_name,row_key,mutations\332A+table_name,row_key,mutations,app_profile_id' - ), + serialized_options=b'\202\323\344\223\002?":/v2/{table_name=projects/*/instances/*/tables/*}:mutateRow:\001*\332A\034table_name,row_key,mutations\332A+table_name,row_key,mutations,app_profile_id', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="MutateRows", @@ -1745,9 +1752,8 @@ containing_service=None, input_type=_MUTATEROWSREQUEST, output_type=_MUTATEROWSRESPONSE, - serialized_options=_b( - '\202\323\344\223\002@";/v2/{table_name=projects/*/instances/*/tables/*}:mutateRows:\001*\332A\022table_name,entries\332A!table_name,entries,app_profile_id' - ), + serialized_options=b'\202\323\344\223\002@";/v2/{table_name=projects/*/instances/*/tables/*}:mutateRows:\001*\332A\022table_name,entries\332A!table_name,entries,app_profile_id', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="CheckAndMutateRow", @@ -1756,9 +1762,8 @@ containing_service=None, input_type=_CHECKANDMUTATEROWREQUEST, output_type=_CHECKANDMUTATEROWRESPONSE, - serialized_options=_b( - '\202\323\344\223\002G"B/v2/{table_name=projects/*/instances/*/tables/*}:checkAndMutateRow:\001*\332ABtable_name,row_key,predicate_filter,true_mutations,false_mutations\332AQtable_name,row_key,predicate_filter,true_mutations,false_mutations,app_profile_id' - ), + serialized_options=b'\202\323\344\223\002G"B/v2/{table_name=projects/*/instances/*/tables/*}:checkAndMutateRow:\001*\332ABtable_name,row_key,predicate_filter,true_mutations,false_mutations\332AQtable_name,row_key,predicate_filter,true_mutations,false_mutations,app_profile_id', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ReadModifyWriteRow", @@ -1767,9 +1772,8 @@ containing_service=None, input_type=_READMODIFYWRITEROWREQUEST, output_type=_READMODIFYWRITEROWRESPONSE, - serialized_options=_b( - "\202\323\344\223\002H\"C/v2/{table_name=projects/*/instances/*/tables/*}:readModifyWriteRow:\001*\332A\030table_name,row_key,rules\332A'table_name,row_key,rules,app_profile_id" - ), + serialized_options=b"\202\323\344\223\002H\"C/v2/{table_name=projects/*/instances/*/tables/*}:readModifyWriteRow:\001*\332A\030table_name,row_key,rules\332A'table_name,row_key,rules,app_profile_id", + create_key=_descriptor._internal_create_key, ), ], ) diff --git a/google/cloud/bigtable_v2/proto/data_pb2.py b/google/cloud/bigtable_v2/proto/data_pb2.py index fb753be1e..419e147e4 100644 --- a/google/cloud/bigtable_v2/proto/data_pb2.py +++ b/google/cloud/bigtable_v2/proto/data_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/bigtable_v2/proto/data.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -19,12 +16,9 @@ name="google/cloud/bigtable_v2/proto/data.proto", package="google.bigtable.v2", syntax="proto3", - serialized_options=_b( - "\n\026com.google.bigtable.v2B\tDataProtoP\001Z:google.golang.org/genproto/googleapis/bigtable/v2;bigtable\252\002\030Google.Cloud.Bigtable.V2\312\002\030Google\\Cloud\\Bigtable\\V2" - ), - serialized_pb=_b( - '\n)google/cloud/bigtable_v2/proto/data.proto\x12\x12google.bigtable.v2"@\n\x03Row\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12,\n\x08\x66\x61milies\x18\x02 \x03(\x0b\x32\x1a.google.bigtable.v2.Family"C\n\x06\x46\x61mily\x12\x0c\n\x04name\x18\x01 \x01(\t\x12+\n\x07\x63olumns\x18\x02 \x03(\x0b\x32\x1a.google.bigtable.v2.Column"D\n\x06\x43olumn\x12\x11\n\tqualifier\x18\x01 \x01(\x0c\x12\'\n\x05\x63\x65lls\x18\x02 \x03(\x0b\x32\x18.google.bigtable.v2.Cell"?\n\x04\x43\x65ll\x12\x18\n\x10timestamp_micros\x18\x01 \x01(\x03\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0e\n\x06labels\x18\x03 \x03(\t"\x8a\x01\n\x08RowRange\x12\x1a\n\x10start_key_closed\x18\x01 \x01(\x0cH\x00\x12\x18\n\x0estart_key_open\x18\x02 \x01(\x0cH\x00\x12\x16\n\x0c\x65nd_key_open\x18\x03 \x01(\x0cH\x01\x12\x18\n\x0e\x65nd_key_closed\x18\x04 \x01(\x0cH\x01\x42\x0b\n\tstart_keyB\t\n\x07\x65nd_key"L\n\x06RowSet\x12\x10\n\x08row_keys\x18\x01 \x03(\x0c\x12\x30\n\nrow_ranges\x18\x02 \x03(\x0b\x32\x1c.google.bigtable.v2.RowRange"\xc6\x01\n\x0b\x43olumnRange\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x12 \n\x16start_qualifier_closed\x18\x02 \x01(\x0cH\x00\x12\x1e\n\x14start_qualifier_open\x18\x03 \x01(\x0cH\x00\x12\x1e\n\x14\x65nd_qualifier_closed\x18\x04 \x01(\x0cH\x01\x12\x1c\n\x12\x65nd_qualifier_open\x18\x05 \x01(\x0cH\x01\x42\x11\n\x0fstart_qualifierB\x0f\n\rend_qualifier"N\n\x0eTimestampRange\x12\x1e\n\x16start_timestamp_micros\x18\x01 \x01(\x03\x12\x1c\n\x14\x65nd_timestamp_micros\x18\x02 \x01(\x03"\x98\x01\n\nValueRange\x12\x1c\n\x12start_value_closed\x18\x01 \x01(\x0cH\x00\x12\x1a\n\x10start_value_open\x18\x02 \x01(\x0cH\x00\x12\x1a\n\x10\x65nd_value_closed\x18\x03 \x01(\x0cH\x01\x12\x18\n\x0e\x65nd_value_open\x18\x04 \x01(\x0cH\x01\x42\r\n\x0bstart_valueB\x0b\n\tend_value"\xdf\x08\n\tRowFilter\x12\x34\n\x05\x63hain\x18\x01 \x01(\x0b\x32#.google.bigtable.v2.RowFilter.ChainH\x00\x12>\n\ninterleave\x18\x02 \x01(\x0b\x32(.google.bigtable.v2.RowFilter.InterleaveH\x00\x12<\n\tcondition\x18\x03 \x01(\x0b\x32\'.google.bigtable.v2.RowFilter.ConditionH\x00\x12\x0e\n\x04sink\x18\x10 \x01(\x08H\x00\x12\x19\n\x0fpass_all_filter\x18\x11 \x01(\x08H\x00\x12\x1a\n\x10\x62lock_all_filter\x18\x12 \x01(\x08H\x00\x12\x1e\n\x14row_key_regex_filter\x18\x04 \x01(\x0cH\x00\x12\x1b\n\x11row_sample_filter\x18\x0e \x01(\x01H\x00\x12"\n\x18\x66\x61mily_name_regex_filter\x18\x05 \x01(\tH\x00\x12\'\n\x1d\x63olumn_qualifier_regex_filter\x18\x06 \x01(\x0cH\x00\x12>\n\x13\x63olumn_range_filter\x18\x07 \x01(\x0b\x32\x1f.google.bigtable.v2.ColumnRangeH\x00\x12\x44\n\x16timestamp_range_filter\x18\x08 \x01(\x0b\x32".google.bigtable.v2.TimestampRangeH\x00\x12\x1c\n\x12value_regex_filter\x18\t \x01(\x0cH\x00\x12<\n\x12value_range_filter\x18\x0f \x01(\x0b\x32\x1e.google.bigtable.v2.ValueRangeH\x00\x12%\n\x1b\x63\x65lls_per_row_offset_filter\x18\n \x01(\x05H\x00\x12$\n\x1a\x63\x65lls_per_row_limit_filter\x18\x0b \x01(\x05H\x00\x12\'\n\x1d\x63\x65lls_per_column_limit_filter\x18\x0c \x01(\x05H\x00\x12!\n\x17strip_value_transformer\x18\r \x01(\x08H\x00\x12!\n\x17\x61pply_label_transformer\x18\x13 \x01(\tH\x00\x1a\x37\n\x05\x43hain\x12.\n\x07\x66ilters\x18\x01 \x03(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x1a<\n\nInterleave\x12.\n\x07\x66ilters\x18\x01 \x03(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x1a\xad\x01\n\tCondition\x12\x37\n\x10predicate_filter\x18\x01 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x12\x32\n\x0btrue_filter\x18\x02 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x12\x33\n\x0c\x66\x61lse_filter\x18\x03 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilterB\x08\n\x06\x66ilter"\xc9\x04\n\x08Mutation\x12\x38\n\x08set_cell\x18\x01 \x01(\x0b\x32$.google.bigtable.v2.Mutation.SetCellH\x00\x12K\n\x12\x64\x65lete_from_column\x18\x02 \x01(\x0b\x32-.google.bigtable.v2.Mutation.DeleteFromColumnH\x00\x12K\n\x12\x64\x65lete_from_family\x18\x03 \x01(\x0b\x32-.google.bigtable.v2.Mutation.DeleteFromFamilyH\x00\x12\x45\n\x0f\x64\x65lete_from_row\x18\x04 \x01(\x0b\x32*.google.bigtable.v2.Mutation.DeleteFromRowH\x00\x1a\x61\n\x07SetCell\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x12\x18\n\x10\x63olumn_qualifier\x18\x02 \x01(\x0c\x12\x18\n\x10timestamp_micros\x18\x03 \x01(\x03\x12\r\n\x05value\x18\x04 \x01(\x0c\x1ay\n\x10\x44\x65leteFromColumn\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x12\x18\n\x10\x63olumn_qualifier\x18\x02 \x01(\x0c\x12\x36\n\ntime_range\x18\x03 \x01(\x0b\x32".google.bigtable.v2.TimestampRange\x1a\'\n\x10\x44\x65leteFromFamily\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x1a\x0f\n\rDeleteFromRowB\n\n\x08mutation"\x80\x01\n\x13ReadModifyWriteRule\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x12\x18\n\x10\x63olumn_qualifier\x18\x02 \x01(\x0c\x12\x16\n\x0c\x61ppend_value\x18\x03 \x01(\x0cH\x00\x12\x1a\n\x10increment_amount\x18\x04 \x01(\x03H\x00\x42\x06\n\x04ruleB\x97\x01\n\x16\x63om.google.bigtable.v2B\tDataProtoP\x01Z:google.golang.org/genproto/googleapis/bigtable/v2;bigtable\xaa\x02\x18Google.Cloud.Bigtable.V2\xca\x02\x18Google\\Cloud\\Bigtable\\V2b\x06proto3' - ), + serialized_options=b"\n\026com.google.bigtable.v2B\tDataProtoP\001Z:google.golang.org/genproto/googleapis/bigtable/v2;bigtable\252\002\030Google.Cloud.Bigtable.V2\312\002\030Google\\Cloud\\Bigtable\\V2", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n)google/cloud/bigtable_v2/proto/data.proto\x12\x12google.bigtable.v2"@\n\x03Row\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12,\n\x08\x66\x61milies\x18\x02 \x03(\x0b\x32\x1a.google.bigtable.v2.Family"C\n\x06\x46\x61mily\x12\x0c\n\x04name\x18\x01 \x01(\t\x12+\n\x07\x63olumns\x18\x02 \x03(\x0b\x32\x1a.google.bigtable.v2.Column"D\n\x06\x43olumn\x12\x11\n\tqualifier\x18\x01 \x01(\x0c\x12\'\n\x05\x63\x65lls\x18\x02 \x03(\x0b\x32\x18.google.bigtable.v2.Cell"?\n\x04\x43\x65ll\x12\x18\n\x10timestamp_micros\x18\x01 \x01(\x03\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0e\n\x06labels\x18\x03 \x03(\t"\x8a\x01\n\x08RowRange\x12\x1a\n\x10start_key_closed\x18\x01 \x01(\x0cH\x00\x12\x18\n\x0estart_key_open\x18\x02 \x01(\x0cH\x00\x12\x16\n\x0c\x65nd_key_open\x18\x03 \x01(\x0cH\x01\x12\x18\n\x0e\x65nd_key_closed\x18\x04 \x01(\x0cH\x01\x42\x0b\n\tstart_keyB\t\n\x07\x65nd_key"L\n\x06RowSet\x12\x10\n\x08row_keys\x18\x01 \x03(\x0c\x12\x30\n\nrow_ranges\x18\x02 \x03(\x0b\x32\x1c.google.bigtable.v2.RowRange"\xc6\x01\n\x0b\x43olumnRange\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x12 \n\x16start_qualifier_closed\x18\x02 \x01(\x0cH\x00\x12\x1e\n\x14start_qualifier_open\x18\x03 \x01(\x0cH\x00\x12\x1e\n\x14\x65nd_qualifier_closed\x18\x04 \x01(\x0cH\x01\x12\x1c\n\x12\x65nd_qualifier_open\x18\x05 \x01(\x0cH\x01\x42\x11\n\x0fstart_qualifierB\x0f\n\rend_qualifier"N\n\x0eTimestampRange\x12\x1e\n\x16start_timestamp_micros\x18\x01 \x01(\x03\x12\x1c\n\x14\x65nd_timestamp_micros\x18\x02 \x01(\x03"\x98\x01\n\nValueRange\x12\x1c\n\x12start_value_closed\x18\x01 \x01(\x0cH\x00\x12\x1a\n\x10start_value_open\x18\x02 \x01(\x0cH\x00\x12\x1a\n\x10\x65nd_value_closed\x18\x03 \x01(\x0cH\x01\x12\x18\n\x0e\x65nd_value_open\x18\x04 \x01(\x0cH\x01\x42\r\n\x0bstart_valueB\x0b\n\tend_value"\xdf\x08\n\tRowFilter\x12\x34\n\x05\x63hain\x18\x01 \x01(\x0b\x32#.google.bigtable.v2.RowFilter.ChainH\x00\x12>\n\ninterleave\x18\x02 \x01(\x0b\x32(.google.bigtable.v2.RowFilter.InterleaveH\x00\x12<\n\tcondition\x18\x03 \x01(\x0b\x32\'.google.bigtable.v2.RowFilter.ConditionH\x00\x12\x0e\n\x04sink\x18\x10 \x01(\x08H\x00\x12\x19\n\x0fpass_all_filter\x18\x11 \x01(\x08H\x00\x12\x1a\n\x10\x62lock_all_filter\x18\x12 \x01(\x08H\x00\x12\x1e\n\x14row_key_regex_filter\x18\x04 \x01(\x0cH\x00\x12\x1b\n\x11row_sample_filter\x18\x0e \x01(\x01H\x00\x12"\n\x18\x66\x61mily_name_regex_filter\x18\x05 \x01(\tH\x00\x12\'\n\x1d\x63olumn_qualifier_regex_filter\x18\x06 \x01(\x0cH\x00\x12>\n\x13\x63olumn_range_filter\x18\x07 \x01(\x0b\x32\x1f.google.bigtable.v2.ColumnRangeH\x00\x12\x44\n\x16timestamp_range_filter\x18\x08 \x01(\x0b\x32".google.bigtable.v2.TimestampRangeH\x00\x12\x1c\n\x12value_regex_filter\x18\t \x01(\x0cH\x00\x12<\n\x12value_range_filter\x18\x0f \x01(\x0b\x32\x1e.google.bigtable.v2.ValueRangeH\x00\x12%\n\x1b\x63\x65lls_per_row_offset_filter\x18\n \x01(\x05H\x00\x12$\n\x1a\x63\x65lls_per_row_limit_filter\x18\x0b \x01(\x05H\x00\x12\'\n\x1d\x63\x65lls_per_column_limit_filter\x18\x0c \x01(\x05H\x00\x12!\n\x17strip_value_transformer\x18\r \x01(\x08H\x00\x12!\n\x17\x61pply_label_transformer\x18\x13 \x01(\tH\x00\x1a\x37\n\x05\x43hain\x12.\n\x07\x66ilters\x18\x01 \x03(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x1a<\n\nInterleave\x12.\n\x07\x66ilters\x18\x01 \x03(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x1a\xad\x01\n\tCondition\x12\x37\n\x10predicate_filter\x18\x01 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x12\x32\n\x0btrue_filter\x18\x02 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilter\x12\x33\n\x0c\x66\x61lse_filter\x18\x03 \x01(\x0b\x32\x1d.google.bigtable.v2.RowFilterB\x08\n\x06\x66ilter"\xc9\x04\n\x08Mutation\x12\x38\n\x08set_cell\x18\x01 \x01(\x0b\x32$.google.bigtable.v2.Mutation.SetCellH\x00\x12K\n\x12\x64\x65lete_from_column\x18\x02 \x01(\x0b\x32-.google.bigtable.v2.Mutation.DeleteFromColumnH\x00\x12K\n\x12\x64\x65lete_from_family\x18\x03 \x01(\x0b\x32-.google.bigtable.v2.Mutation.DeleteFromFamilyH\x00\x12\x45\n\x0f\x64\x65lete_from_row\x18\x04 \x01(\x0b\x32*.google.bigtable.v2.Mutation.DeleteFromRowH\x00\x1a\x61\n\x07SetCell\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x12\x18\n\x10\x63olumn_qualifier\x18\x02 \x01(\x0c\x12\x18\n\x10timestamp_micros\x18\x03 \x01(\x03\x12\r\n\x05value\x18\x04 \x01(\x0c\x1ay\n\x10\x44\x65leteFromColumn\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x12\x18\n\x10\x63olumn_qualifier\x18\x02 \x01(\x0c\x12\x36\n\ntime_range\x18\x03 \x01(\x0b\x32".google.bigtable.v2.TimestampRange\x1a\'\n\x10\x44\x65leteFromFamily\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x1a\x0f\n\rDeleteFromRowB\n\n\x08mutation"\x80\x01\n\x13ReadModifyWriteRule\x12\x13\n\x0b\x66\x61mily_name\x18\x01 \x01(\t\x12\x18\n\x10\x63olumn_qualifier\x18\x02 \x01(\x0c\x12\x16\n\x0c\x61ppend_value\x18\x03 \x01(\x0cH\x00\x12\x1a\n\x10increment_amount\x18\x04 \x01(\x03H\x00\x42\x06\n\x04ruleB\x97\x01\n\x16\x63om.google.bigtable.v2B\tDataProtoP\x01Z:google.golang.org/genproto/googleapis/bigtable/v2;bigtable\xaa\x02\x18Google.Cloud.Bigtable.V2\xca\x02\x18Google\\Cloud\\Bigtable\\V2b\x06proto3', ) @@ -34,6 +28,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="key", @@ -44,7 +39,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -52,6 +47,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="families", @@ -70,6 +66,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -91,6 +88,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -101,7 +99,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -109,6 +107,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="columns", @@ -127,6 +126,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -148,6 +148,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="qualifier", @@ -158,7 +159,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -166,6 +167,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="cells", @@ -184,6 +186,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -205,6 +208,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="timestamp_micros", @@ -223,6 +227,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -233,7 +238,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -241,6 +246,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="labels", @@ -259,6 +265,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -280,6 +287,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="start_key_closed", @@ -290,7 +298,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -298,6 +306,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="start_key_open", @@ -308,7 +317,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -316,6 +325,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="end_key_open", @@ -326,7 +336,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -334,6 +344,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="end_key_closed", @@ -344,7 +355,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -352,6 +363,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -367,6 +379,7 @@ full_name="google.bigtable.v2.RowRange.start_key", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ), _descriptor.OneofDescriptor( @@ -374,6 +387,7 @@ full_name="google.bigtable.v2.RowRange.end_key", index=1, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ), ], @@ -388,6 +402,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="row_keys", @@ -406,6 +421,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="row_ranges", @@ -424,6 +440,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -445,6 +462,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="family_name", @@ -455,7 +473,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -463,6 +481,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="start_qualifier_closed", @@ -473,7 +492,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -481,6 +500,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="start_qualifier_open", @@ -491,7 +511,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -499,6 +519,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="end_qualifier_closed", @@ -509,7 +530,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -517,6 +538,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="end_qualifier_open", @@ -527,7 +549,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -535,6 +557,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -550,6 +573,7 @@ full_name="google.bigtable.v2.ColumnRange.start_qualifier", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ), _descriptor.OneofDescriptor( @@ -557,6 +581,7 @@ full_name="google.bigtable.v2.ColumnRange.end_qualifier", index=1, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ), ], @@ -571,6 +596,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="start_timestamp_micros", @@ -589,6 +615,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="end_timestamp_micros", @@ -607,6 +634,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -628,6 +656,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="start_value_closed", @@ -638,7 +667,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -646,6 +675,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="start_value_open", @@ -656,7 +686,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -664,6 +694,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="end_value_closed", @@ -674,7 +705,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -682,6 +713,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="end_value_open", @@ -692,7 +724,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -700,6 +732,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -715,6 +748,7 @@ full_name="google.bigtable.v2.ValueRange.start_value", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ), _descriptor.OneofDescriptor( @@ -722,6 +756,7 @@ full_name="google.bigtable.v2.ValueRange.end_value", index=1, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ), ], @@ -736,6 +771,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="filters", @@ -754,6 +790,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -774,6 +811,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="filters", @@ -792,6 +830,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -812,6 +851,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="predicate_filter", @@ -830,6 +870,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="true_filter", @@ -848,6 +889,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="false_filter", @@ -866,6 +908,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -886,6 +929,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="chain", @@ -904,6 +948,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="interleave", @@ -922,6 +967,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="condition", @@ -940,6 +986,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="sink", @@ -958,6 +1005,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="pass_all_filter", @@ -976,6 +1024,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="block_all_filter", @@ -994,6 +1043,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="row_key_regex_filter", @@ -1004,7 +1054,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -1012,6 +1062,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="row_sample_filter", @@ -1030,6 +1081,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="family_name_regex_filter", @@ -1040,7 +1092,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1048,6 +1100,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="column_qualifier_regex_filter", @@ -1058,7 +1111,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -1066,6 +1119,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="column_range_filter", @@ -1084,6 +1138,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="timestamp_range_filter", @@ -1102,6 +1157,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value_regex_filter", @@ -1112,7 +1168,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -1120,6 +1176,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value_range_filter", @@ -1138,6 +1195,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="cells_per_row_offset_filter", @@ -1156,6 +1214,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="cells_per_row_limit_filter", @@ -1174,6 +1233,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="cells_per_column_limit_filter", @@ -1192,6 +1252,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="strip_value_transformer", @@ -1210,6 +1271,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="apply_label_transformer", @@ -1220,7 +1282,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1228,6 +1290,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1243,6 +1306,7 @@ full_name="google.bigtable.v2.RowFilter.filter", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ), ], @@ -1257,6 +1321,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="family_name", @@ -1267,7 +1332,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1275,6 +1340,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="column_qualifier", @@ -1285,7 +1351,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -1293,6 +1359,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="timestamp_micros", @@ -1311,6 +1378,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -1321,7 +1389,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -1329,6 +1397,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1349,6 +1418,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="family_name", @@ -1359,7 +1429,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1367,6 +1437,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="column_qualifier", @@ -1377,7 +1448,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -1385,6 +1456,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="time_range", @@ -1403,6 +1475,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1423,6 +1496,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="family_name", @@ -1433,7 +1507,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1441,6 +1515,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1461,6 +1536,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], extensions=[], nested_types=[], @@ -1480,6 +1556,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="set_cell", @@ -1498,6 +1575,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="delete_from_column", @@ -1516,6 +1594,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="delete_from_family", @@ -1534,6 +1613,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="delete_from_row", @@ -1552,6 +1632,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1572,6 +1653,7 @@ full_name="google.bigtable.v2.Mutation.mutation", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ), ], @@ -1586,6 +1668,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="family_name", @@ -1596,7 +1679,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1604,6 +1687,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="column_qualifier", @@ -1614,7 +1698,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -1622,6 +1706,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="append_value", @@ -1632,7 +1717,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -1640,6 +1725,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="increment_amount", @@ -1658,6 +1744,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1673,6 +1760,7 @@ full_name="google.bigtable.v2.ReadModifyWriteRule.rule", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ), ], @@ -1938,17 +2026,15 @@ Row = _reflection.GeneratedProtocolMessageType( "Row", (_message.Message,), - dict( - DESCRIPTOR=_ROW, - __module__="google.cloud.bigtable_v2.proto.data_pb2", - __doc__="""Specifies the complete (requested) contents of a single - row of a table. Rows which exceed 256MiB in size cannot be read in full. - - + { + "DESCRIPTOR": _ROW, + "__module__": "google.cloud.bigtable_v2.proto.data_pb2", + "__doc__": """Specifies the complete (requested) contents of a single row of a + table. Rows which exceed 256MiB in size cannot be read in full. Attributes: key: The unique key which identifies this row within its table. - This is the same key that's used to identify the row in, for + This is the same key that’s used to identify the row in, for example, a MutateRowRequest. May contain any non-empty byte string up to 4KiB in length. families: @@ -1956,76 +2042,70 @@ ordering of column families is not specified. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.Row) - ), + }, ) _sym_db.RegisterMessage(Row) Family = _reflection.GeneratedProtocolMessageType( "Family", (_message.Message,), - dict( - DESCRIPTOR=_FAMILY, - __module__="google.cloud.bigtable_v2.proto.data_pb2", - __doc__="""Specifies (some of) the contents of a single row/column - family intersection of a table. - - + { + "DESCRIPTOR": _FAMILY, + "__module__": "google.cloud.bigtable_v2.proto.data_pb2", + "__doc__": """Specifies (some of) the contents of a single row/column family + intersection of a table. Attributes: name: The unique key which identifies this family within its row. - This is the same key that's used to identify the family in, + This is the same key that’s used to identify the family in, for example, a RowFilter which sets its - "family\_name\_regex\_filter" field. Must match + “family_name_regex_filter” field. Must match ``[-_.a-zA-Z0-9]+``, except that AggregatingRowProcessors may produce cells in a sentinel family with an empty name. Must be no greater than 64 characters in length. columns: - Must not be empty. Sorted in order of increasing "qualifier". + Must not be empty. Sorted in order of increasing “qualifier”. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.Family) - ), + }, ) _sym_db.RegisterMessage(Family) Column = _reflection.GeneratedProtocolMessageType( "Column", (_message.Message,), - dict( - DESCRIPTOR=_COLUMN, - __module__="google.cloud.bigtable_v2.proto.data_pb2", - __doc__="""Specifies (some of) the contents of a single row/column - intersection of a table. - - + { + "DESCRIPTOR": _COLUMN, + "__module__": "google.cloud.bigtable_v2.proto.data_pb2", + "__doc__": """Specifies (some of) the contents of a single row/column intersection + of a table. Attributes: qualifier: The unique key which identifies this column within its family. - This is the same key that's used to identify the column in, + This is the same key that’s used to identify the column in, for example, a RowFilter which sets its ``column_qualifier_regex_filter`` field. May contain any byte string, including the empty string, up to 16kiB in length. cells: Must not be empty. Sorted in order of decreasing - "timestamp\_micros". + “timestamp_micros”. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.Column) - ), + }, ) _sym_db.RegisterMessage(Column) Cell = _reflection.GeneratedProtocolMessageType( "Cell", (_message.Message,), - dict( - DESCRIPTOR=_CELL, - __module__="google.cloud.bigtable_v2.proto.data_pb2", - __doc__="""Specifies (some of) the contents of a single - row/column/timestamp of a table. - - + { + "DESCRIPTOR": _CELL, + "__module__": "google.cloud.bigtable_v2.proto.data_pb2", + "__doc__": """Specifies (some of) the contents of a single row/column/timestamp of a + table. Attributes: timestamp_micros: - The cell's stored timestamp, which also uniquely identifies it + The cell’s stored timestamp, which also uniquely identifies it within its column. Values are always expressed in microseconds, but individual tables may set a coarser granularity to further restrict the allowed values. For @@ -2040,19 +2120,17 @@ [RowFilter][google.bigtable.v2.RowFilter]. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.Cell) - ), + }, ) _sym_db.RegisterMessage(Cell) RowRange = _reflection.GeneratedProtocolMessageType( "RowRange", (_message.Message,), - dict( - DESCRIPTOR=_ROWRANGE, - __module__="google.cloud.bigtable_v2.proto.data_pb2", - __doc__="""Specifies a contiguous range of rows. - - + { + "DESCRIPTOR": _ROWRANGE, + "__module__": "google.cloud.bigtable_v2.proto.data_pb2", + "__doc__": """Specifies a contiguous range of rows. Attributes: start_key: The row key at which to start the range. If neither field is @@ -2070,19 +2148,17 @@ Used when giving an inclusive upper bound for the range. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.RowRange) - ), + }, ) _sym_db.RegisterMessage(RowRange) RowSet = _reflection.GeneratedProtocolMessageType( "RowSet", (_message.Message,), - dict( - DESCRIPTOR=_ROWSET, - __module__="google.cloud.bigtable_v2.proto.data_pb2", - __doc__="""Specifies a non-contiguous set of rows. - - + { + "DESCRIPTOR": _ROWSET, + "__module__": "google.cloud.bigtable_v2.proto.data_pb2", + "__doc__": """Specifies a non-contiguous set of rows. Attributes: row_keys: Single rows included in the set. @@ -2090,22 +2166,20 @@ Contiguous row ranges included in the set. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.RowSet) - ), + }, ) _sym_db.RegisterMessage(RowSet) ColumnRange = _reflection.GeneratedProtocolMessageType( "ColumnRange", (_message.Message,), - dict( - DESCRIPTOR=_COLUMNRANGE, - __module__="google.cloud.bigtable_v2.proto.data_pb2", - __doc__="""Specifies a contiguous range of columns within a single - column family. The range spans from : - to :, where both bounds can be either + { + "DESCRIPTOR": _COLUMNRANGE, + "__module__": "google.cloud.bigtable_v2.proto.data_pb2", + "__doc__": """Specifies a contiguous range of columns within a single column family. + The range spans from : to + :, where both bounds can be either inclusive or exclusive. - - Attributes: family_name: The name of the column family within which this range falls. @@ -2127,19 +2201,17 @@ Used when giving an exclusive upper bound for the range. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.ColumnRange) - ), + }, ) _sym_db.RegisterMessage(ColumnRange) TimestampRange = _reflection.GeneratedProtocolMessageType( "TimestampRange", (_message.Message,), - dict( - DESCRIPTOR=_TIMESTAMPRANGE, - __module__="google.cloud.bigtable_v2.proto.data_pb2", - __doc__="""Specified a contiguous range of microsecond timestamps. - - + { + "DESCRIPTOR": _TIMESTAMPRANGE, + "__module__": "google.cloud.bigtable_v2.proto.data_pb2", + "__doc__": """Specified a contiguous range of microsecond timestamps. Attributes: start_timestamp_micros: Inclusive lower bound. If left empty, interpreted as 0. @@ -2147,19 +2219,17 @@ Exclusive upper bound. If left empty, interpreted as infinity. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.TimestampRange) - ), + }, ) _sym_db.RegisterMessage(TimestampRange) ValueRange = _reflection.GeneratedProtocolMessageType( "ValueRange", (_message.Message,), - dict( - DESCRIPTOR=_VALUERANGE, - __module__="google.cloud.bigtable_v2.proto.data_pb2", - __doc__="""Specifies a contiguous range of raw byte values. - - + { + "DESCRIPTOR": _VALUERANGE, + "__module__": "google.cloud.bigtable_v2.proto.data_pb2", + "__doc__": """Specifies a contiguous range of raw byte values. Attributes: start_value: The value at which to start the range. If neither field is @@ -2177,88 +2247,80 @@ Used when giving an exclusive upper bound for the range. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.ValueRange) - ), + }, ) _sym_db.RegisterMessage(ValueRange) RowFilter = _reflection.GeneratedProtocolMessageType( "RowFilter", (_message.Message,), - dict( - Chain=_reflection.GeneratedProtocolMessageType( + { + "Chain": _reflection.GeneratedProtocolMessageType( "Chain", (_message.Message,), - dict( - DESCRIPTOR=_ROWFILTER_CHAIN, - __module__="google.cloud.bigtable_v2.proto.data_pb2", - __doc__="""A RowFilter which sends rows through several RowFilters in - sequence. - - + { + "DESCRIPTOR": _ROWFILTER_CHAIN, + "__module__": "google.cloud.bigtable_v2.proto.data_pb2", + "__doc__": """A RowFilter which sends rows through several RowFilters in sequence. Attributes: filters: - The elements of "filters" are chained together to process the - input row: in row -> f(0) -> intermediate row -> f(1) -> ... - -> f(N) -> out row The full chain is executed atomically. + The elements of “filters” are chained together to process the + input row: in row -> f(0) -> intermediate row -> f(1) -> … -> + f(N) -> out row The full chain is executed atomically. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.RowFilter.Chain) - ), + }, ), - Interleave=_reflection.GeneratedProtocolMessageType( + "Interleave": _reflection.GeneratedProtocolMessageType( "Interleave", (_message.Message,), - dict( - DESCRIPTOR=_ROWFILTER_INTERLEAVE, - __module__="google.cloud.bigtable_v2.proto.data_pb2", - __doc__="""A RowFilter which sends each row to each of several - component RowFilters and interleaves the results. - - + { + "DESCRIPTOR": _ROWFILTER_INTERLEAVE, + "__module__": "google.cloud.bigtable_v2.proto.data_pb2", + "__doc__": """A RowFilter which sends each row to each of several component + RowFilters and interleaves the results. Attributes: filters: - The elements of "filters" all process a copy of the input row, + The elements of “filters” all process a copy of the input row, and the results are pooled, sorted, and combined into a single output row. If multiple cells are produced with the same column and timestamp, they will all appear in the output row in an unspecified mutual order. Consider the following example, with three filters: :: - input row | + input row | ----------------------------------------------------- | | | f(0) f(1) f(2) - | | | 1: + | | | 1: foo,bar,10,x foo,bar,10,z far,bar,7,a 2: foo,blah,11,z far,blah,5,x - far,blah,5,x | | + far,blah,5,x | | | ----------------------------------------------------- - | 1: foo,bar,10,z // could have - switched with #2 2: foo,bar,10,x // - could have switched with #1 3: - foo,blah,11,z 4: far,bar,7,a 5: - far,blah,5,x // identical to #6 6: + | 1: foo,bar,10,z // could have + switched with #2 2: foo,bar,10,x // + could have switched with #1 3: + foo,blah,11,z 4: far,bar,7,a 5: + far,blah,5,x // identical to #6 6: far,blah,5,x // identical to #5 All interleaved filters are executed atomically. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.RowFilter.Interleave) - ), + }, ), - Condition=_reflection.GeneratedProtocolMessageType( + "Condition": _reflection.GeneratedProtocolMessageType( "Condition", (_message.Message,), - dict( - DESCRIPTOR=_ROWFILTER_CONDITION, - __module__="google.cloud.bigtable_v2.proto.data_pb2", - __doc__="""A RowFilter which evaluates one of two possible - RowFilters, depending on whether or not a predicate RowFilter outputs - any cells from the input row. - - IMPORTANT NOTE: The predicate filter does not execute atomically with - the true and false filters, which may lead to inconsistent or unexpected - results. Additionally, Condition filters have poor performance, - especially when filters are set for the false condition. - - + { + "DESCRIPTOR": _ROWFILTER_CONDITION, + "__module__": "google.cloud.bigtable_v2.proto.data_pb2", + "__doc__": """A RowFilter which evaluates one of two possible RowFilters, depending + on whether or not a predicate RowFilter outputs any cells from the + input row. IMPORTANT NOTE: The predicate filter does not execute + atomically with the true and false filters, which may lead to + inconsistent or unexpected results. Additionally, Condition filters + have poor performance, especially when filters are set for the false + condition. Attributes: predicate_filter: If ``predicate_filter`` outputs any cells, then @@ -2274,48 +2336,40 @@ be returned in the false case. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.RowFilter.Condition) - ), - ), - DESCRIPTOR=_ROWFILTER, - __module__="google.cloud.bigtable_v2.proto.data_pb2", - __doc__="""Takes a row as input and produces an alternate view of the - row based on specified rules. For example, a RowFilter might trim down a - row to include just the cells from columns matching a given regular - expression, or might return all the cells of a row but not their values. - More complicated filters can be composed out of these components to - express requests such as, "within every column of a particular family, - give just the two most recent cells which are older than timestamp X." - - There are two broad categories of RowFilters (true filters and - transformers), as well as two ways to compose simple filters into more - complex ones (chains and interleaves). They work as follows: - - - True filters alter the input row by excluding some of its cells - wholesale from the output row. An example of a true filter is the - ``value_regex_filter``, which excludes cells whose values don't match - the specified pattern. All regex true filters use RE2 syntax - (https://github.com/google/re2/wiki/Syntax) in raw byte mode - (RE2::Latin1), and are evaluated as full matches. An important point - to keep in mind is that ``RE2(.)`` is equivalent by default to - ``RE2([^\n])``, meaning that it does not match newlines. When - attempting to match an arbitrary byte, you should therefore use the - escape sequence ``\C``, which may need to be further escaped as - ``\\C`` in your client language. - - - Transformers alter the input row by changing the values of some of - its cells in the output, without excluding them completely. - Currently, the only supported transformer is the - ``strip_value_transformer``, which replaces every cell's value with - the empty string. - - - Chains and interleaves are described in more detail in the - RowFilter.Chain and RowFilter.Interleave documentation. - - The total serialized size of a RowFilter message must not exceed 4096 - bytes, and RowFilters may not be nested within each other (in Chains or - Interleaves) to a depth of more than 20. - - + }, + ), + "DESCRIPTOR": _ROWFILTER, + "__module__": "google.cloud.bigtable_v2.proto.data_pb2", + "__doc__": """Takes a row as input and produces an alternate view of the row based + on specified rules. For example, a RowFilter might trim down a row to + include just the cells from columns matching a given regular + expression, or might return all the cells of a row but not their + values. More complicated filters can be composed out of these + components to express requests such as, “within every column of a + particular family, give just the two most recent cells which are older + than timestamp X.” There are two broad categories of RowFilters (true + filters and transformers), as well as two ways to compose simple + filters into more complex ones (chains and interleaves). They work as + follows: - True filters alter the input row by excluding some of its + cells wholesale from the output row. An example of a true filter is + the ``value_regex_filter``, which excludes cells whose values don’t + match the specified pattern. All regex true filters use RE2 syntax + (https://github.com/google/re2/wiki/Syntax) in raw byte mode + (RE2::Latin1), and are evaluated as full matches. An important point + to keep in mind is that ``RE2(.)`` is equivalent by default to + ``RE2([^\n])``, meaning that it does not match newlines. When + attempting to match an arbitrary byte, you should therefore use the + escape sequence ``\C``, which may need to be further escaped as + ``\\C`` in your client language. - Transformers alter the input row + by changing the values of some of its cells in the output, without + excluding them completely. Currently, the only supported + transformer is the ``strip_value_transformer``, which replaces + every cell’s value with the empty string. - Chains and + interleaves are described in more detail in the RowFilter.Chain and + RowFilter.Interleave documentation. The total serialized size of a + RowFilter message must not exceed 4096 bytes, and RowFilters may not + be nested within each other (in Chains or Interleaves) to a depth of + more than 20. Attributes: filter: Which of the possible RowFilter types to apply. If none are @@ -2333,32 +2387,30 @@ ADVANCED USE ONLY. Hook for introspection into the RowFilter. Outputs all cells directly to the output of the read rather than to any parent filter. Consider the following example: :: - Chain( FamilyRegex("A"), Interleave( - All(), Chain(Label("foo"), Sink()) ), - QualifierRegex("B") ) A,A,1,w - A,B,2,x B,B,4,z - | FamilyRegex("A") - | A,A,1,w - A,B,2,x | - +------------+-------------+ | - | All() Label(foo) - | | A,A,1,w - A,A,1,w,labels:[foo] A,B,2,x - A,B,2,x,labels:[foo] | - | | Sink() - --------------+ | | - | +------------+ x------+ - A,A,1,w,labels:[foo] | - A,B,2,x,labels:[foo] A,A,1,w - | A,B,2,x - | | - | QualifierRegex("B") - | | - | A,B,2,x - | | - | - +--------------------------------+ - | A,A,1,w,labels:[foo] + Chain( FamilyRegex("A"), Interleave( All(), + Chain(Label("foo"), Sink()) ), QualifierRegex("B") + ) A,A,1,w + A,B,2,x B,B,4,z + | FamilyRegex("A") + | A,A,1,w + A,B,2,x | + +------------+-------------+ | + | All() Label(foo) + | | A,A,1,w + A,A,1,w,labels:[foo] A,B,2,x + A,B,2,x,labels:[foo] | | + | Sink() --------------+ | + | | +------------+ x------+ + A,A,1,w,labels:[foo] | + A,B,2,x,labels:[foo] A,A,1,w + | A,B,2,x | + | | + QualifierRegex("B") | + | | + A,B,2,x | + | | + +--------------------------------+ | + A,A,1,w,labels:[foo] A,B,2,x,labels:[foo] // could be switched A,B,2,x // could be switched Despite being excluded by the qualifier filter, a copy of every cell that @@ -2366,9 +2418,9 @@ [Interleave][google.bigtable.v2.RowFilter.Interleave], duplicate cells are possible, and appear in an unspecified mutual order. In this case we have a duplicate with column - "A:B" and timestamp 2, because one copy passed through the all + “A:B” and timestamp 2, because one copy passed through the all filter while the other was passed through the label and sink. - Note that one copy has label "foo", while the other does not. + Note that one copy has label “foo”, while the other does not. Cannot be used within the ``predicate_filter``, ``true_filter``, or ``false_filter`` of a [Condition][google.bigtable.v2.RowFilter.Condition]. @@ -2435,7 +2487,7 @@ duplicate cells are present, as is possible when using an Interleave, each copy of the cell is counted separately. strip_value_transformer: - Replaces each cell's value with the empty string. + Replaces each cell’s value with the empty string. apply_label_transformer: Applies the given label to all cells in the output row. This allows the client to determine which results were produced @@ -2450,7 +2502,7 @@ may be relaxed in the future. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.RowFilter) - ), + }, ) _sym_db.RegisterMessage(RowFilter) _sym_db.RegisterMessage(RowFilter.Chain) @@ -2460,16 +2512,14 @@ Mutation = _reflection.GeneratedProtocolMessageType( "Mutation", (_message.Message,), - dict( - SetCell=_reflection.GeneratedProtocolMessageType( + { + "SetCell": _reflection.GeneratedProtocolMessageType( "SetCell", (_message.Message,), - dict( - DESCRIPTOR=_MUTATION_SETCELL, - __module__="google.cloud.bigtable_v2.proto.data_pb2", - __doc__="""A Mutation which sets the value of the specified cell. - - + { + "DESCRIPTOR": _MUTATION_SETCELL, + "__module__": "google.cloud.bigtable_v2.proto.data_pb2", + "__doc__": """A Mutation which sets the value of the specified cell. Attributes: family_name: The name of the family into which new data should be written. @@ -2483,23 +2533,21 @@ the client should set this value itself, noting that the default value is a timestamp of zero if the field is left unspecified. Values must match the granularity of the table - (e.g. micros, millis). + (e.g. micros, millis). value: The value to be written into the specified cell. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.Mutation.SetCell) - ), + }, ), - DeleteFromColumn=_reflection.GeneratedProtocolMessageType( + "DeleteFromColumn": _reflection.GeneratedProtocolMessageType( "DeleteFromColumn", (_message.Message,), - dict( - DESCRIPTOR=_MUTATION_DELETEFROMCOLUMN, - __module__="google.cloud.bigtable_v2.proto.data_pb2", - __doc__="""A Mutation which deletes cells from the specified column, - optionally restricting the deletions to a given timestamp range. - - + { + "DESCRIPTOR": _MUTATION_DELETEFROMCOLUMN, + "__module__": "google.cloud.bigtable_v2.proto.data_pb2", + "__doc__": """A Mutation which deletes cells from the specified column, optionally + restricting the deletions to a given timestamp range. Attributes: family_name: The name of the family from which cells should be deleted. @@ -2511,50 +2559,41 @@ The range of timestamps within which cells should be deleted. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.Mutation.DeleteFromColumn) - ), + }, ), - DeleteFromFamily=_reflection.GeneratedProtocolMessageType( + "DeleteFromFamily": _reflection.GeneratedProtocolMessageType( "DeleteFromFamily", (_message.Message,), - dict( - DESCRIPTOR=_MUTATION_DELETEFROMFAMILY, - __module__="google.cloud.bigtable_v2.proto.data_pb2", - __doc__="""A Mutation which deletes all cells from the specified - column family. - - + { + "DESCRIPTOR": _MUTATION_DELETEFROMFAMILY, + "__module__": "google.cloud.bigtable_v2.proto.data_pb2", + "__doc__": """A Mutation which deletes all cells from the specified column family. Attributes: family_name: The name of the family from which cells should be deleted. Must match ``[-_.a-zA-Z0-9]+`` """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.Mutation.DeleteFromFamily) - ), + }, ), - DeleteFromRow=_reflection.GeneratedProtocolMessageType( + "DeleteFromRow": _reflection.GeneratedProtocolMessageType( "DeleteFromRow", (_message.Message,), - dict( - DESCRIPTOR=_MUTATION_DELETEFROMROW, - __module__="google.cloud.bigtable_v2.proto.data_pb2", - __doc__="""A Mutation which deletes all cells from the containing - row. - - """, + { + "DESCRIPTOR": _MUTATION_DELETEFROMROW, + "__module__": "google.cloud.bigtable_v2.proto.data_pb2", + "__doc__": """A Mutation which deletes all cells from the containing row.""", # @@protoc_insertion_point(class_scope:google.bigtable.v2.Mutation.DeleteFromRow) - ), - ), - DESCRIPTOR=_MUTATION, - __module__="google.cloud.bigtable_v2.proto.data_pb2", - __doc__="""Specifies a particular change to be made to the contents - of a row. - - + }, + ), + "DESCRIPTOR": _MUTATION, + "__module__": "google.cloud.bigtable_v2.proto.data_pb2", + "__doc__": """Specifies a particular change to be made to the contents of a row. Attributes: mutation: Which of the possible Mutation types to apply. set_cell: - Set a cell's value. + Set a cell’s value. delete_from_column: Deletes cells from a column. delete_from_family: @@ -2563,7 +2602,7 @@ Deletes cells from the entire row. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.Mutation) - ), + }, ) _sym_db.RegisterMessage(Mutation) _sym_db.RegisterMessage(Mutation.SetCell) @@ -2574,13 +2613,11 @@ ReadModifyWriteRule = _reflection.GeneratedProtocolMessageType( "ReadModifyWriteRule", (_message.Message,), - dict( - DESCRIPTOR=_READMODIFYWRITERULE, - __module__="google.cloud.bigtable_v2.proto.data_pb2", - __doc__="""Specifies an atomic read/modify/write operation on the - latest value of the specified column. - - + { + "DESCRIPTOR": _READMODIFYWRITERULE, + "__module__": "google.cloud.bigtable_v2.proto.data_pb2", + "__doc__": """Specifies an atomic read/modify/write operation on the latest value of + the specified column. Attributes: family_name: The name of the family to which the read/modify/write should @@ -2590,7 +2627,7 @@ should be applied. Can be any byte string, including the empty string. rule: - The rule used to determine the column's new latest value from + The rule used to determine the column’s new latest value from its current latest value. append_value: Rule specifying that ``append_value`` be appended to the @@ -2604,7 +2641,7 @@ endian signed integer), or the entire request will fail. """, # @@protoc_insertion_point(class_scope:google.bigtable.v2.ReadModifyWriteRule) - ), + }, ) _sym_db.RegisterMessage(ReadModifyWriteRule) diff --git a/synth.metadata b/synth.metadata index 27cac675c..1e2f874a9 100644 --- a/synth.metadata +++ b/synth.metadata @@ -3,16 +3,30 @@ { "git": { "name": ".", - "remote": "git@github.com:googleapis/python-bigtable.git", - "sha": "e12ffc55933cfd6b40bd2fc6cef899ce78c543b5" + "remote": "https://github.com/googleapis/python-bigtable.git", + "sha": "1ac60be05521b69c924118d40f88e07728a2f75e" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "eafa840ceec23b44a5c21670288107c661252711", - "internalRef": "313488995" + "sha": "3a4894c4f0da3e763aca2c67bd280ae915177450", + "internalRef": "314363155" + } + }, + { + "git": { + "name": "synthtool", + "remote": "https://github.com/googleapis/synthtool.git", + "sha": "f13864cd532f98a4682cec48105580fa9a5c9978" + } + }, + { + "git": { + "name": "synthtool", + "remote": "https://github.com/googleapis/synthtool.git", + "sha": "f13864cd532f98a4682cec48105580fa9a5c9978" } } ], diff --git a/tests/unit/gapic/v2/test_bigtable_instance_admin_client_v2.py b/tests/unit/gapic/v2/test_bigtable_instance_admin_client_v2.py index e1de09054..df083406b 100644 --- a/tests/unit/gapic/v2/test_bigtable_instance_admin_client_v2.py +++ b/tests/unit/gapic/v2/test_bigtable_instance_admin_client_v2.py @@ -22,7 +22,6 @@ from google.rpc import status_pb2 from google.cloud import bigtable_admin_v2 -from google.cloud.bigtable_admin_v2 import enums from google.cloud.bigtable_admin_v2.proto import bigtable_instance_admin_pb2 from google.cloud.bigtable_admin_v2.proto import instance_pb2 from google.iam.v1 import iam_policy_pb2 @@ -212,9 +211,9 @@ def test_list_instances_exception(self): def test_update_instance(self): # Setup Expected Response - name_2 = "name2-1052831874" + name = "name3373707" display_name_2 = "displayName21615000987" - expected_response = {"name": name_2, "display_name": display_name_2} + expected_response = {"name": name, "display_name": display_name_2} expected_response = instance_pb2.Instance(**expected_response) # Mock the API response @@ -225,18 +224,13 @@ def test_update_instance(self): client = bigtable_admin_v2.BigtableInstanceAdminClient() # Setup Request - name = client.instance_path("[PROJECT]", "[INSTANCE]") display_name = "displayName1615086568" - type_ = enums.Instance.Type.TYPE_UNSPECIFIED - labels = {} - response = client.update_instance(name, display_name, type_, labels) + response = client.update_instance(display_name) assert expected_response == response assert len(channel.requests) == 1 - expected_request = instance_pb2.Instance( - name=name, display_name=display_name, type=type_, labels=labels - ) + expected_request = instance_pb2.Instance(display_name=display_name) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -249,13 +243,10 @@ def test_update_instance_exception(self): client = bigtable_admin_v2.BigtableInstanceAdminClient() # Setup request - name = client.instance_path("[PROJECT]", "[INSTANCE]") display_name = "displayName1615086568" - type_ = enums.Instance.Type.TYPE_UNSPECIFIED - labels = {} with pytest.raises(CustomException): - client.update_instance(name, display_name, type_, labels) + client.update_instance(display_name) def test_partial_update_instance(self): # Setup Expected Response @@ -495,11 +486,11 @@ def test_list_clusters_exception(self): def test_update_cluster(self): # Setup Expected Response - name_2 = "name2-1052831874" + name = "name3373707" location = "location1901043637" serve_nodes_2 = 1623486220 expected_response = { - "name": name_2, + "name": name, "location": location, "serve_nodes": serve_nodes_2, } @@ -517,15 +508,14 @@ def test_update_cluster(self): client = bigtable_admin_v2.BigtableInstanceAdminClient() # Setup Request - name = client.cluster_path("[PROJECT]", "[INSTANCE]", "[CLUSTER]") serve_nodes = 1288838783 - response = client.update_cluster(name, serve_nodes) + response = client.update_cluster(serve_nodes) result = response.result() assert expected_response == result assert len(channel.requests) == 1 - expected_request = instance_pb2.Cluster(name=name, serve_nodes=serve_nodes) + expected_request = instance_pb2.Cluster(serve_nodes=serve_nodes) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -545,10 +535,9 @@ def test_update_cluster_exception(self): client = bigtable_admin_v2.BigtableInstanceAdminClient() # Setup Request - name = client.cluster_path("[PROJECT]", "[INSTANCE]", "[CLUSTER]") serve_nodes = 1288838783 - response = client.update_cluster(name, serve_nodes) + response = client.update_cluster(serve_nodes) exception = response.exception() assert exception.errors[0] == error @@ -785,13 +774,12 @@ def test_delete_app_profile(self): # Setup Request name = client.app_profile_path("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]") - ignore_warnings = True - client.delete_app_profile(name, ignore_warnings) + client.delete_app_profile(name) assert len(channel.requests) == 1 expected_request = bigtable_instance_admin_pb2.DeleteAppProfileRequest( - name=name, ignore_warnings=ignore_warnings + name=name ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -806,10 +794,9 @@ def test_delete_app_profile_exception(self): # Setup request name = client.app_profile_path("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]") - ignore_warnings = True with pytest.raises(CustomException): - client.delete_app_profile(name, ignore_warnings) + client.delete_app_profile(name) def test_get_iam_policy(self): # Setup Expected Response @@ -826,7 +813,7 @@ def test_get_iam_policy(self): client = bigtable_admin_v2.BigtableInstanceAdminClient() # Setup Request - resource = client.instance_path("[PROJECT]", "[INSTANCE]") + resource = "resource-341064690" response = client.get_iam_policy(resource) assert expected_response == response @@ -845,7 +832,7 @@ def test_get_iam_policy_exception(self): client = bigtable_admin_v2.BigtableInstanceAdminClient() # Setup request - resource = client.instance_path("[PROJECT]", "[INSTANCE]") + resource = "resource-341064690" with pytest.raises(CustomException): client.get_iam_policy(resource) @@ -865,7 +852,7 @@ def test_set_iam_policy(self): client = bigtable_admin_v2.BigtableInstanceAdminClient() # Setup Request - resource = client.instance_path("[PROJECT]", "[INSTANCE]") + resource = "resource-341064690" policy = {} response = client.set_iam_policy(resource, policy) @@ -887,7 +874,7 @@ def test_set_iam_policy_exception(self): client = bigtable_admin_v2.BigtableInstanceAdminClient() # Setup request - resource = client.instance_path("[PROJECT]", "[INSTANCE]") + resource = "resource-341064690" policy = {} with pytest.raises(CustomException): @@ -908,7 +895,7 @@ def test_test_iam_permissions(self): client = bigtable_admin_v2.BigtableInstanceAdminClient() # Setup Request - resource = client.instance_path("[PROJECT]", "[INSTANCE]") + resource = "resource-341064690" permissions = [] response = client.test_iam_permissions(resource, permissions) @@ -930,7 +917,7 @@ def test_test_iam_permissions_exception(self): client = bigtable_admin_v2.BigtableInstanceAdminClient() # Setup request - resource = client.instance_path("[PROJECT]", "[INSTANCE]") + resource = "resource-341064690" permissions = [] with pytest.raises(CustomException): diff --git a/tests/unit/gapic/v2/test_bigtable_table_admin_client_v2.py b/tests/unit/gapic/v2/test_bigtable_table_admin_client_v2.py index d1a843164..42db08579 100644 --- a/tests/unit/gapic/v2/test_bigtable_table_admin_client_v2.py +++ b/tests/unit/gapic/v2/test_bigtable_table_admin_client_v2.py @@ -28,6 +28,7 @@ from google.iam.v1 import policy_pb2 from google.longrunning import operations_pb2 from google.protobuf import empty_pb2 +from google.protobuf import field_mask_pb2 class MultiCallableStub(object): @@ -131,7 +132,9 @@ def test_create_table_from_snapshot(self): # Setup Request parent = client.instance_path("[PROJECT]", "[INSTANCE]") table_id = "tableId-895419604" - source_snapshot = "sourceSnapshot-947679896" + source_snapshot = client.snapshot_path( + "[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]" + ) response = client.create_table_from_snapshot(parent, table_id, source_snapshot) result = response.result() @@ -162,7 +165,9 @@ def test_create_table_from_snapshot_exception(self): # Setup Request parent = client.instance_path("[PROJECT]", "[INSTANCE]") table_id = "tableId-895419604" - source_snapshot = "sourceSnapshot-947679896" + source_snapshot = client.snapshot_path( + "[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]" + ) response = client.create_table_from_snapshot(parent, table_id, source_snapshot) exception = response.exception() @@ -456,7 +461,7 @@ def test_get_iam_policy(self): client = bigtable_admin_v2.BigtableTableAdminClient() # Setup Request - resource = client.table_path("[PROJECT]", "[INSTANCE]", "[TABLE]") + resource = "resource-341064690" response = client.get_iam_policy(resource) assert expected_response == response @@ -475,7 +480,7 @@ def test_get_iam_policy_exception(self): client = bigtable_admin_v2.BigtableTableAdminClient() # Setup request - resource = client.table_path("[PROJECT]", "[INSTANCE]", "[TABLE]") + resource = "resource-341064690" with pytest.raises(CustomException): client.get_iam_policy(resource) @@ -495,7 +500,7 @@ def test_set_iam_policy(self): client = bigtable_admin_v2.BigtableTableAdminClient() # Setup Request - resource = client.table_path("[PROJECT]", "[INSTANCE]", "[TABLE]") + resource = "resource-341064690" policy = {} response = client.set_iam_policy(resource, policy) @@ -517,7 +522,7 @@ def test_set_iam_policy_exception(self): client = bigtable_admin_v2.BigtableTableAdminClient() # Setup request - resource = client.table_path("[PROJECT]", "[INSTANCE]", "[TABLE]") + resource = "resource-341064690" policy = {} with pytest.raises(CustomException): @@ -538,7 +543,7 @@ def test_test_iam_permissions(self): client = bigtable_admin_v2.BigtableTableAdminClient() # Setup Request - resource = client.table_path("[PROJECT]", "[INSTANCE]", "[TABLE]") + resource = "resource-341064690" permissions = [] response = client.test_iam_permissions(resource, permissions) @@ -560,7 +565,7 @@ def test_test_iam_permissions_exception(self): client = bigtable_admin_v2.BigtableTableAdminClient() # Setup request - resource = client.table_path("[PROJECT]", "[INSTANCE]", "[TABLE]") + resource = "resource-341064690" permissions = [] with pytest.raises(CustomException): @@ -570,11 +575,11 @@ def test_snapshot_table(self): # Setup Expected Response name_2 = "name2-1052831874" data_size_bytes = 2110122398 - description_2 = "description2568623279" + description = "description-1724546052" expected_response = { "name": name_2, "data_size_bytes": data_size_bytes, - "description": description_2, + "description": description, } expected_response = table_pb2.Snapshot(**expected_response) operation = operations_pb2.Operation( @@ -591,17 +596,16 @@ def test_snapshot_table(self): # Setup Request name = client.table_path("[PROJECT]", "[INSTANCE]", "[TABLE]") - cluster = "cluster872092154" + cluster = client.cluster_path("[PROJECT]", "[INSTANCE]", "[CLUSTER]") snapshot_id = "snapshotId-168585866" - description = "description-1724546052" - response = client.snapshot_table(name, cluster, snapshot_id, description) + response = client.snapshot_table(name, cluster, snapshot_id) result = response.result() assert expected_response == result assert len(channel.requests) == 1 expected_request = bigtable_table_admin_pb2.SnapshotTableRequest( - name=name, cluster=cluster, snapshot_id=snapshot_id, description=description + name=name, cluster=cluster, snapshot_id=snapshot_id ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -623,11 +627,10 @@ def test_snapshot_table_exception(self): # Setup Request name = client.table_path("[PROJECT]", "[INSTANCE]", "[TABLE]") - cluster = "cluster872092154" + cluster = client.cluster_path("[PROJECT]", "[INSTANCE]", "[CLUSTER]") snapshot_id = "snapshotId-168585866" - description = "description-1724546052" - response = client.snapshot_table(name, cluster, snapshot_id, description) + response = client.snapshot_table(name, cluster, snapshot_id) exception = response.exception() assert exception.errors[0] == error @@ -758,3 +761,279 @@ def test_delete_snapshot_exception(self): with pytest.raises(CustomException): client.delete_snapshot(name) + + def test_create_backup(self): + # Setup Expected Response + name = "name3373707" + source_table = "sourceTable1670858410" + size_bytes = 1796325715 + expected_response = { + "name": name, + "source_table": source_table, + "size_bytes": size_bytes, + } + expected_response = table_pb2.Backup(**expected_response) + operation = operations_pb2.Operation( + name="operations/test_create_backup", done=True + ) + operation.response.Pack(expected_response) + + # Mock the API response + channel = ChannelStub(responses=[operation]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = bigtable_admin_v2.BigtableTableAdminClient() + + # Setup Request + parent = client.cluster_path("[PROJECT]", "[INSTANCE]", "[CLUSTER]") + backup_id = "backupId1355353272" + backup = {} + + response = client.create_backup(parent, backup_id, backup) + result = response.result() + assert expected_response == result + + assert len(channel.requests) == 1 + expected_request = bigtable_table_admin_pb2.CreateBackupRequest( + parent=parent, backup_id=backup_id, backup=backup + ) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_create_backup_exception(self): + # Setup Response + error = status_pb2.Status() + operation = operations_pb2.Operation( + name="operations/test_create_backup_exception", done=True + ) + operation.error.CopyFrom(error) + + # Mock the API response + channel = ChannelStub(responses=[operation]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = bigtable_admin_v2.BigtableTableAdminClient() + + # Setup Request + parent = client.cluster_path("[PROJECT]", "[INSTANCE]", "[CLUSTER]") + backup_id = "backupId1355353272" + backup = {} + + response = client.create_backup(parent, backup_id, backup) + exception = response.exception() + assert exception.errors[0] == error + + def test_get_backup(self): + # Setup Expected Response + name_2 = "name2-1052831874" + source_table = "sourceTable1670858410" + size_bytes = 1796325715 + expected_response = { + "name": name_2, + "source_table": source_table, + "size_bytes": size_bytes, + } + expected_response = table_pb2.Backup(**expected_response) + + # Mock the API response + channel = ChannelStub(responses=[expected_response]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = bigtable_admin_v2.BigtableTableAdminClient() + + # Setup Request + name = client.backup_path("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]") + + response = client.get_backup(name) + assert expected_response == response + + assert len(channel.requests) == 1 + expected_request = bigtable_table_admin_pb2.GetBackupRequest(name=name) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_get_backup_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = bigtable_admin_v2.BigtableTableAdminClient() + + # Setup request + name = client.backup_path("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]") + + with pytest.raises(CustomException): + client.get_backup(name) + + def test_list_backups(self): + # Setup Expected Response + next_page_token = "" + backups_element = {} + backups = [backups_element] + expected_response = {"next_page_token": next_page_token, "backups": backups} + expected_response = bigtable_table_admin_pb2.ListBackupsResponse( + **expected_response + ) + + # Mock the API response + channel = ChannelStub(responses=[expected_response]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = bigtable_admin_v2.BigtableTableAdminClient() + + # Setup Request + parent = client.cluster_path("[PROJECT]", "[INSTANCE]", "[CLUSTER]") + + paged_list_response = client.list_backups(parent) + resources = list(paged_list_response) + assert len(resources) == 1 + + assert expected_response.backups[0] == resources[0] + + assert len(channel.requests) == 1 + expected_request = bigtable_table_admin_pb2.ListBackupsRequest(parent=parent) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_list_backups_exception(self): + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = bigtable_admin_v2.BigtableTableAdminClient() + + # Setup request + parent = client.cluster_path("[PROJECT]", "[INSTANCE]", "[CLUSTER]") + + paged_list_response = client.list_backups(parent) + with pytest.raises(CustomException): + list(paged_list_response) + + def test_update_backup(self): + # Setup Expected Response + name = "name3373707" + source_table = "sourceTable1670858410" + size_bytes = 1796325715 + expected_response = { + "name": name, + "source_table": source_table, + "size_bytes": size_bytes, + } + expected_response = table_pb2.Backup(**expected_response) + + # Mock the API response + channel = ChannelStub(responses=[expected_response]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = bigtable_admin_v2.BigtableTableAdminClient() + + # Setup Request + backup = {} + update_mask = {} + + response = client.update_backup(backup, update_mask) + assert expected_response == response + + assert len(channel.requests) == 1 + expected_request = bigtable_table_admin_pb2.UpdateBackupRequest( + backup=backup, update_mask=update_mask + ) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_update_backup_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = bigtable_admin_v2.BigtableTableAdminClient() + + # Setup request + backup = {} + update_mask = {} + + with pytest.raises(CustomException): + client.update_backup(backup, update_mask) + + def test_delete_backup(self): + channel = ChannelStub() + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = bigtable_admin_v2.BigtableTableAdminClient() + + # Setup Request + name = client.backup_path("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]") + + client.delete_backup(name) + + assert len(channel.requests) == 1 + expected_request = bigtable_table_admin_pb2.DeleteBackupRequest(name=name) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_delete_backup_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = bigtable_admin_v2.BigtableTableAdminClient() + + # Setup request + name = client.backup_path("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]") + + with pytest.raises(CustomException): + client.delete_backup(name) + + def test_restore_table(self): + # Setup Expected Response + name = "name3373707" + expected_response = {"name": name} + expected_response = table_pb2.Table(**expected_response) + operation = operations_pb2.Operation( + name="operations/test_restore_table", done=True + ) + operation.response.Pack(expected_response) + + # Mock the API response + channel = ChannelStub(responses=[operation]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = bigtable_admin_v2.BigtableTableAdminClient() + + response = client.restore_table() + result = response.result() + assert expected_response == result + + assert len(channel.requests) == 1 + expected_request = bigtable_table_admin_pb2.RestoreTableRequest() + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_restore_table_exception(self): + # Setup Response + error = status_pb2.Status() + operation = operations_pb2.Operation( + name="operations/test_restore_table_exception", done=True + ) + operation.error.CopyFrom(error) + + # Mock the API response + channel = ChannelStub(responses=[operation]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = bigtable_admin_v2.BigtableTableAdminClient() + + response = client.restore_table() + exception = response.exception() + assert exception.errors[0] == error