google-cloud-bigtable-admin-v2 0.15.0 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/bigtable/admin/v2/instance.proto
3
4
 
@@ -8,89 +9,32 @@ require 'google/api/resource_pb'
8
9
  require 'google/bigtable/admin/v2/common_pb'
9
10
  require 'google/protobuf/timestamp_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/bigtable/admin/v2/instance.proto", :syntax => :proto3) do
13
- add_message "google.bigtable.admin.v2.Instance" do
14
- optional :name, :string, 1
15
- optional :display_name, :string, 2
16
- optional :state, :enum, 3, "google.bigtable.admin.v2.Instance.State"
17
- optional :type, :enum, 4, "google.bigtable.admin.v2.Instance.Type"
18
- map :labels, :string, :string, 5
19
- optional :create_time, :message, 7, "google.protobuf.Timestamp"
20
- proto3_optional :satisfies_pzs, :bool, 8
21
- end
22
- add_enum "google.bigtable.admin.v2.Instance.State" do
23
- value :STATE_NOT_KNOWN, 0
24
- value :READY, 1
25
- value :CREATING, 2
26
- end
27
- add_enum "google.bigtable.admin.v2.Instance.Type" do
28
- value :TYPE_UNSPECIFIED, 0
29
- value :PRODUCTION, 1
30
- value :DEVELOPMENT, 2
31
- end
32
- add_message "google.bigtable.admin.v2.AutoscalingTargets" do
33
- optional :cpu_utilization_percent, :int32, 2
34
- optional :storage_utilization_gib_per_node, :int32, 3
35
- end
36
- add_message "google.bigtable.admin.v2.AutoscalingLimits" do
37
- optional :min_serve_nodes, :int32, 1
38
- optional :max_serve_nodes, :int32, 2
39
- end
40
- add_message "google.bigtable.admin.v2.Cluster" do
41
- optional :name, :string, 1
42
- optional :location, :string, 2
43
- optional :state, :enum, 3, "google.bigtable.admin.v2.Cluster.State"
44
- optional :serve_nodes, :int32, 4
45
- optional :default_storage_type, :enum, 5, "google.bigtable.admin.v2.StorageType"
46
- optional :encryption_config, :message, 6, "google.bigtable.admin.v2.Cluster.EncryptionConfig"
47
- oneof :config do
48
- optional :cluster_config, :message, 7, "google.bigtable.admin.v2.Cluster.ClusterConfig"
49
- end
50
- end
51
- add_message "google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig" do
52
- optional :autoscaling_limits, :message, 1, "google.bigtable.admin.v2.AutoscalingLimits"
53
- optional :autoscaling_targets, :message, 2, "google.bigtable.admin.v2.AutoscalingTargets"
54
- end
55
- add_message "google.bigtable.admin.v2.Cluster.ClusterConfig" do
56
- optional :cluster_autoscaling_config, :message, 1, "google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig"
57
- end
58
- add_message "google.bigtable.admin.v2.Cluster.EncryptionConfig" do
59
- optional :kms_key_name, :string, 1
60
- end
61
- add_enum "google.bigtable.admin.v2.Cluster.State" do
62
- value :STATE_NOT_KNOWN, 0
63
- value :READY, 1
64
- value :CREATING, 2
65
- value :RESIZING, 3
66
- value :DISABLED, 4
67
- end
68
- add_message "google.bigtable.admin.v2.AppProfile" do
69
- optional :name, :string, 1
70
- optional :etag, :string, 2
71
- optional :description, :string, 3
72
- oneof :routing_policy do
73
- optional :multi_cluster_routing_use_any, :message, 5, "google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny"
74
- optional :single_cluster_routing, :message, 6, "google.bigtable.admin.v2.AppProfile.SingleClusterRouting"
75
- end
76
- end
77
- add_message "google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny" do
78
- repeated :cluster_ids, :string, 1
79
- end
80
- add_message "google.bigtable.admin.v2.AppProfile.SingleClusterRouting" do
81
- optional :cluster_id, :string, 1
82
- optional :allow_transactional_writes, :bool, 2
83
- end
84
- add_message "google.bigtable.admin.v2.HotTablet" do
85
- optional :name, :string, 1
86
- optional :table_name, :string, 2
87
- optional :start_time, :message, 3, "google.protobuf.Timestamp"
88
- optional :end_time, :message, 4, "google.protobuf.Timestamp"
89
- optional :start_key, :string, 5
90
- optional :end_key, :string, 6
91
- optional :node_cpu_usage_percent, :float, 7
12
+
13
+ descriptor_data = "\n\'google/bigtable/admin/v2/instance.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a%google/bigtable/admin/v2/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc6\x04\n\x08Instance\x12\x0c\n\x04name\x18\x01 \x01(\t\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\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1f\n\rsatisfies_pzs\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\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:S\xea\x41P\n%bigtableadmin.googleapis.com/Instance\x12\'projects/{project}/instances/{instance}B\x10\n\x0e_satisfies_pzs\"_\n\x12\x41utoscalingTargets\x12\x1f\n\x17\x63pu_utilization_percent\x18\x02 \x01(\x05\x12(\n storage_utilization_gib_per_node\x18\x03 \x01(\x05\"O\n\x11\x41utoscalingLimits\x12\x1c\n\x0fmin_serve_nodes\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1c\n\x0fmax_serve_nodes\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"\xd1\x07\n\x07\x43luster\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\x08location\x18\x02 \x01(\tB)\xe0\x41\x05\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\x13\n\x0bserve_nodes\x18\x04 \x01(\x05\x12I\n\x0e\x63luster_config\x18\x07 \x01(\x0b\x32/.google.bigtable.admin.v2.Cluster.ClusterConfigH\x00\x12H\n\x14\x64\x65\x66\x61ult_storage_type\x18\x05 \x01(\x0e\x32%.google.bigtable.admin.v2.StorageTypeB\x03\xe0\x41\x05\x12R\n\x11\x65ncryption_config\x18\x06 \x01(\x0b\x32\x32.google.bigtable.admin.v2.Cluster.EncryptionConfigB\x03\xe0\x41\x05\x1a\xb8\x01\n\x18\x43lusterAutoscalingConfig\x12L\n\x12\x61utoscaling_limits\x18\x01 \x01(\x0b\x32+.google.bigtable.admin.v2.AutoscalingLimitsB\x03\xe0\x41\x02\x12N\n\x13\x61utoscaling_targets\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.AutoscalingTargetsB\x03\xe0\x41\x02\x1ao\n\rClusterConfig\x12^\n\x1a\x63luster_autoscaling_config\x18\x01 \x01(\x0b\x32:.google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig\x1aP\n\x10\x45ncryptionConfig\x12<\n\x0ckms_key_name\x18\x01 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"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:e\xea\x41\x62\n$bigtableadmin.googleapis.com/Cluster\x12:projects/{project}/instances/{instance}/clusters/{cluster}B\x08\n\x06\x63onfig\"\x88\x04\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\x30\n\x19MultiClusterRoutingUseAny\x12\x13\n\x0b\x63luster_ids\x18\x01 \x03(\t\x1aN\n\x14SingleClusterRouting\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12\"\n\x1a\x61llow_transactional_writes\x18\x02 \x01(\x08:o\xea\x41l\n\'bigtableadmin.googleapis.com/AppProfile\x12\x41projects/{project}/instances/{instance}/appProfiles/{app_profile}B\x10\n\x0erouting_policy\"\x88\x03\n\tHotTablet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\ntable_name\x18\x02 \x01(\tB\'\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x33\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\tstart_key\x18\x05 \x01(\t\x12\x0f\n\x07\x65nd_key\x18\x06 \x01(\t\x12#\n\x16node_cpu_usage_percent\x18\x07 \x01(\x02\x42\x03\xe0\x41\x03:\x7f\xea\x41|\n&bigtableadmin.googleapis.com/HotTablet\x12Rprojects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet}B\xd0\x02\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\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
29
+ ]
30
+ imports.each do |type_name, expected_filename|
31
+ import_file = pool.lookup(type_name).file_descriptor
32
+ if import_file.name != expected_filename
33
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
92
34
  end
93
35
  end
36
+ warn "Each proto file must use a consistent fully-qualified name."
37
+ warn "This will become an error in the next major version."
94
38
  end
95
39
 
96
40
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/bigtable/admin/v2/table.proto
3
4
 
@@ -9,113 +10,34 @@ require 'google/protobuf/duration_pb'
9
10
  require 'google/protobuf/timestamp_pb'
10
11
  require 'google/rpc/status_pb'
11
12
 
12
- Google::Protobuf::DescriptorPool.generated_pool.build do
13
- add_file("google/bigtable/admin/v2/table.proto", :syntax => :proto3) do
14
- add_message "google.bigtable.admin.v2.RestoreInfo" do
15
- optional :source_type, :enum, 1, "google.bigtable.admin.v2.RestoreSourceType"
16
- oneof :source_info do
17
- optional :backup_info, :message, 2, "google.bigtable.admin.v2.BackupInfo"
18
- end
19
- end
20
- add_message "google.bigtable.admin.v2.Table" do
21
- optional :name, :string, 1
22
- map :cluster_states, :string, :message, 2, "google.bigtable.admin.v2.Table.ClusterState"
23
- map :column_families, :string, :message, 3, "google.bigtable.admin.v2.ColumnFamily"
24
- optional :granularity, :enum, 4, "google.bigtable.admin.v2.Table.TimestampGranularity"
25
- optional :restore_info, :message, 6, "google.bigtable.admin.v2.RestoreInfo"
26
- optional :deletion_protection, :bool, 9
27
- end
28
- add_message "google.bigtable.admin.v2.Table.ClusterState" do
29
- optional :replication_state, :enum, 1, "google.bigtable.admin.v2.Table.ClusterState.ReplicationState"
30
- repeated :encryption_info, :message, 2, "google.bigtable.admin.v2.EncryptionInfo"
31
- end
32
- add_enum "google.bigtable.admin.v2.Table.ClusterState.ReplicationState" do
33
- value :STATE_NOT_KNOWN, 0
34
- value :INITIALIZING, 1
35
- value :PLANNED_MAINTENANCE, 2
36
- value :UNPLANNED_MAINTENANCE, 3
37
- value :READY, 4
38
- value :READY_OPTIMIZING, 5
39
- end
40
- add_enum "google.bigtable.admin.v2.Table.TimestampGranularity" do
41
- value :TIMESTAMP_GRANULARITY_UNSPECIFIED, 0
42
- value :MILLIS, 1
43
- end
44
- add_enum "google.bigtable.admin.v2.Table.View" do
45
- value :VIEW_UNSPECIFIED, 0
46
- value :NAME_ONLY, 1
47
- value :SCHEMA_VIEW, 2
48
- value :REPLICATION_VIEW, 3
49
- value :ENCRYPTION_VIEW, 5
50
- value :FULL, 4
51
- end
52
- add_message "google.bigtable.admin.v2.ColumnFamily" do
53
- optional :gc_rule, :message, 1, "google.bigtable.admin.v2.GcRule"
54
- end
55
- add_message "google.bigtable.admin.v2.GcRule" do
56
- oneof :rule do
57
- optional :max_num_versions, :int32, 1
58
- optional :max_age, :message, 2, "google.protobuf.Duration"
59
- optional :intersection, :message, 3, "google.bigtable.admin.v2.GcRule.Intersection"
60
- optional :union, :message, 4, "google.bigtable.admin.v2.GcRule.Union"
61
- end
62
- end
63
- add_message "google.bigtable.admin.v2.GcRule.Intersection" do
64
- repeated :rules, :message, 1, "google.bigtable.admin.v2.GcRule"
65
- end
66
- add_message "google.bigtable.admin.v2.GcRule.Union" do
67
- repeated :rules, :message, 1, "google.bigtable.admin.v2.GcRule"
68
- end
69
- add_message "google.bigtable.admin.v2.EncryptionInfo" do
70
- optional :encryption_type, :enum, 3, "google.bigtable.admin.v2.EncryptionInfo.EncryptionType"
71
- optional :encryption_status, :message, 4, "google.rpc.Status"
72
- optional :kms_key_version, :string, 2
73
- end
74
- add_enum "google.bigtable.admin.v2.EncryptionInfo.EncryptionType" do
75
- value :ENCRYPTION_TYPE_UNSPECIFIED, 0
76
- value :GOOGLE_DEFAULT_ENCRYPTION, 1
77
- value :CUSTOMER_MANAGED_ENCRYPTION, 2
78
- end
79
- add_message "google.bigtable.admin.v2.Snapshot" do
80
- optional :name, :string, 1
81
- optional :source_table, :message, 2, "google.bigtable.admin.v2.Table"
82
- optional :data_size_bytes, :int64, 3
83
- optional :create_time, :message, 4, "google.protobuf.Timestamp"
84
- optional :delete_time, :message, 5, "google.protobuf.Timestamp"
85
- optional :state, :enum, 6, "google.bigtable.admin.v2.Snapshot.State"
86
- optional :description, :string, 7
87
- end
88
- add_enum "google.bigtable.admin.v2.Snapshot.State" do
89
- value :STATE_NOT_KNOWN, 0
90
- value :READY, 1
91
- value :CREATING, 2
92
- end
93
- add_message "google.bigtable.admin.v2.Backup" do
94
- optional :name, :string, 1
95
- optional :source_table, :string, 2
96
- optional :expire_time, :message, 3, "google.protobuf.Timestamp"
97
- optional :start_time, :message, 4, "google.protobuf.Timestamp"
98
- optional :end_time, :message, 5, "google.protobuf.Timestamp"
99
- optional :size_bytes, :int64, 6
100
- optional :state, :enum, 7, "google.bigtable.admin.v2.Backup.State"
101
- optional :encryption_info, :message, 9, "google.bigtable.admin.v2.EncryptionInfo"
102
- end
103
- add_enum "google.bigtable.admin.v2.Backup.State" do
104
- value :STATE_UNSPECIFIED, 0
105
- value :CREATING, 1
106
- value :READY, 2
107
- end
108
- add_message "google.bigtable.admin.v2.BackupInfo" do
109
- optional :backup, :string, 1
110
- optional :start_time, :message, 2, "google.protobuf.Timestamp"
111
- optional :end_time, :message, 3, "google.protobuf.Timestamp"
112
- optional :source_table, :string, 4
113
- end
114
- add_enum "google.bigtable.admin.v2.RestoreSourceType" do
115
- value :RESTORE_SOURCE_TYPE_UNSPECIFIED, 0
116
- value :BACKUP, 1
13
+
14
+ descriptor_data = "\n$google/bigtable/admin/v2/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\x1a\x17google/rpc/status.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\"I\n\x12\x43hangeStreamConfig\x12\x33\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xda\t\n\x05Table\x12\x0c\n\x04name\x18\x01 \x01(\t\x12O\n\x0e\x63luster_states\x18\x02 \x03(\x0b\x32\x32.google.bigtable.admin.v2.Table.ClusterStatesEntryB\x03\xe0\x41\x03\x12L\n\x0f\x63olumn_families\x18\x03 \x03(\x0b\x32\x33.google.bigtable.admin.v2.Table.ColumnFamiliesEntry\x12N\n\x0bgranularity\x18\x04 \x01(\x0e\x32\x34.google.bigtable.admin.v2.Table.TimestampGranularityB\x03\xe0\x41\x05\x12@\n\x0crestore_info\x18\x06 \x01(\x0b\x32%.google.bigtable.admin.v2.RestoreInfoB\x03\xe0\x41\x03\x12J\n\x14\x63hange_stream_config\x18\x08 \x01(\x0b\x32,.google.bigtable.admin.v2.ChangeStreamConfig\x12\x1b\n\x13\x64\x65letion_protection\x18\t \x01(\x08\x1a\xc6\x02\n\x0c\x43lusterState\x12]\n\x11replication_state\x18\x01 \x01(\x0e\x32=.google.bigtable.admin.v2.Table.ClusterState.ReplicationStateB\x03\xe0\x41\x03\x12\x46\n\x0f\x65ncryption_info\x18\x02 \x03(\x0b\x32(.google.bigtable.admin.v2.EncryptionInfoB\x03\xe0\x41\x03\"\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\"q\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\x13\n\x0f\x45NCRYPTION_VIEW\x10\x05\x12\x08\n\x04\x46ULL\x10\x04:_\xea\x41\\\n\"bigtableadmin.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\"\xd9\x02\n\x0e\x45ncryptionInfo\x12U\n\x0f\x65ncryption_type\x18\x03 \x01(\x0e\x32\x37.google.bigtable.admin.v2.EncryptionInfo.EncryptionTypeB\x03\xe0\x41\x03\x12\x32\n\x11\x65ncryption_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12I\n\x0fkms_key_version\x18\x02 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\"q\n\x0e\x45ncryptionType\x12\x1f\n\x1b\x45NCRYPTION_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x02\"\xcc\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:{\xea\x41x\n%bigtableadmin.googleapis.com/Snapshot\x12Oprojects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}\"\x9f\x04\n\x06\x42\x61\x63kup\x12\x0c\n\x04name\x18\x01 \x01(\t\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\x12\x46\n\x0f\x65ncryption_info\x18\t \x01(\x0b\x32(.google.bigtable.admin.v2.EncryptionInfoB\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:u\xea\x41r\n#bigtableadmin.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\xfc\x02\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\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xea\x41\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}b\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError => e
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
30
+ ["google.rpc.Status", "google/rpc/status.proto"],
31
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
32
+ ]
33
+ imports.each do |type_name, expected_filename|
34
+ import_file = pool.lookup(type_name).file_descriptor
35
+ if import_file.name != expected_filename
36
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
117
37
  end
118
38
  end
39
+ warn "Each proto file must use a consistent fully-qualified name."
40
+ warn "This will become an error in the next major version."
119
41
  end
120
42
 
121
43
  module Google
@@ -124,6 +46,7 @@ module Google
124
46
  module Admin
125
47
  module V2
126
48
  RestoreInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreInfo").msgclass
49
+ ChangeStreamConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ChangeStreamConfig").msgclass
127
50
  Table = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table").msgclass
128
51
  Table::ClusterState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState").msgclass
129
52
  Table::ClusterState::ReplicationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState.ReplicationState").enummodule
@@ -300,14 +300,14 @@ module Google
300
300
  # # Call the create_instance method.
301
301
  # result = client.create_instance request
302
302
  #
303
- # # The returned object is of type Gapic::Operation. You can use this
304
- # # object to check the status of an operation, cancel it, or wait
305
- # # for results. Here is how to block until completion:
303
+ # # The returned object is of type Gapic::Operation. You can use it to
304
+ # # check the status of an operation, cancel it, or wait for results.
305
+ # # Here is how to wait for a response.
306
306
  # result.wait_until_done! timeout: 60
307
307
  # if result.response?
308
308
  # p result.response
309
309
  # else
310
- # puts "Error!"
310
+ # puts "No response received."
311
311
  # end
312
312
  #
313
313
  def create_instance request, options = nil
@@ -680,14 +680,14 @@ module Google
680
680
  # # Call the partial_update_instance method.
681
681
  # result = client.partial_update_instance request
682
682
  #
683
- # # The returned object is of type Gapic::Operation. You can use this
684
- # # object to check the status of an operation, cancel it, or wait
685
- # # for results. Here is how to block until completion:
683
+ # # The returned object is of type Gapic::Operation. You can use it to
684
+ # # check the status of an operation, cancel it, or wait for results.
685
+ # # Here is how to wait for a response.
686
686
  # result.wait_until_done! timeout: 60
687
687
  # if result.response?
688
688
  # p result.response
689
689
  # else
690
- # puts "Error!"
690
+ # puts "No response received."
691
691
  # end
692
692
  #
693
693
  def partial_update_instance request, options = nil
@@ -874,14 +874,14 @@ module Google
874
874
  # # Call the create_cluster method.
875
875
  # result = client.create_cluster request
876
876
  #
877
- # # The returned object is of type Gapic::Operation. You can use this
878
- # # object to check the status of an operation, cancel it, or wait
879
- # # for results. Here is how to block until completion:
877
+ # # The returned object is of type Gapic::Operation. You can use it to
878
+ # # check the status of an operation, cancel it, or wait for results.
879
+ # # Here is how to wait for a response.
880
880
  # result.wait_until_done! timeout: 60
881
881
  # if result.response?
882
882
  # p result.response
883
883
  # else
884
- # puts "Error!"
884
+ # puts "No response received."
885
885
  # end
886
886
  #
887
887
  def create_cluster request, options = nil
@@ -1163,14 +1163,14 @@ module Google
1163
1163
  # # Call the update_cluster method.
1164
1164
  # result = client.update_cluster request
1165
1165
  #
1166
- # # The returned object is of type Gapic::Operation. You can use this
1167
- # # object to check the status of an operation, cancel it, or wait
1168
- # # for results. Here is how to block until completion:
1166
+ # # The returned object is of type Gapic::Operation. You can use it to
1167
+ # # check the status of an operation, cancel it, or wait for results.
1168
+ # # Here is how to wait for a response.
1169
1169
  # result.wait_until_done! timeout: 60
1170
1170
  # if result.response?
1171
1171
  # p result.response
1172
1172
  # else
1173
- # puts "Error!"
1173
+ # puts "No response received."
1174
1174
  # end
1175
1175
  #
1176
1176
  def update_cluster request, options = nil
@@ -1270,14 +1270,14 @@ module Google
1270
1270
  # # Call the partial_update_cluster method.
1271
1271
  # result = client.partial_update_cluster request
1272
1272
  #
1273
- # # The returned object is of type Gapic::Operation. You can use this
1274
- # # object to check the status of an operation, cancel it, or wait
1275
- # # for results. Here is how to block until completion:
1273
+ # # The returned object is of type Gapic::Operation. You can use it to
1274
+ # # check the status of an operation, cancel it, or wait for results.
1275
+ # # Here is how to wait for a response.
1276
1276
  # result.wait_until_done! timeout: 60
1277
1277
  # if result.response?
1278
1278
  # p result.response
1279
1279
  # else
1280
- # puts "Error!"
1280
+ # puts "No response received."
1281
1281
  # end
1282
1282
  #
1283
1283
  def partial_update_cluster request, options = nil
@@ -1647,13 +1647,11 @@ module Google
1647
1647
  # # Call the list_app_profiles method.
1648
1648
  # result = client.list_app_profiles request
1649
1649
  #
1650
- # # The returned object is of type Gapic::PagedEnumerable. You can
1651
- # # iterate over all elements by calling #each, and the enumerable
1652
- # # will lazily make API calls to fetch subsequent pages. Other
1653
- # # methods are also available for managing paging directly.
1654
- # result.each do |response|
1650
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1651
+ # # over elements, and API calls will be issued to fetch pages as needed.
1652
+ # result.each do |item|
1655
1653
  # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AppProfile.
1656
- # p response
1654
+ # p item
1657
1655
  # end
1658
1656
  #
1659
1657
  def list_app_profiles request, options = nil
@@ -1744,14 +1742,14 @@ module Google
1744
1742
  # # Call the update_app_profile method.
1745
1743
  # result = client.update_app_profile request
1746
1744
  #
1747
- # # The returned object is of type Gapic::Operation. You can use this
1748
- # # object to check the status of an operation, cancel it, or wait
1749
- # # for results. Here is how to block until completion:
1745
+ # # The returned object is of type Gapic::Operation. You can use it to
1746
+ # # check the status of an operation, cancel it, or wait for results.
1747
+ # # Here is how to wait for a response.
1750
1748
  # result.wait_until_done! timeout: 60
1751
1749
  # if result.response?
1752
1750
  # p result.response
1753
1751
  # else
1754
- # puts "Error!"
1752
+ # puts "No response received."
1755
1753
  # end
1756
1754
  #
1757
1755
  def update_app_profile request, options = nil
@@ -2228,13 +2226,11 @@ module Google
2228
2226
  # # Call the list_hot_tablets method.
2229
2227
  # result = client.list_hot_tablets request
2230
2228
  #
2231
- # # The returned object is of type Gapic::PagedEnumerable. You can
2232
- # # iterate over all elements by calling #each, and the enumerable
2233
- # # will lazily make API calls to fetch subsequent pages. Other
2234
- # # methods are also available for managing paging directly.
2235
- # result.each do |response|
2229
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2230
+ # # over elements, and API calls will be issued to fetch pages as needed.
2231
+ # result.each do |item|
2236
2232
  # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::HotTablet.
2237
- # p response
2233
+ # p item
2238
2234
  # end
2239
2235
  #
2240
2236
  def list_hot_tablets request, options = nil
@@ -2317,9 +2313,9 @@ module Google
2317
2313
  # * (`String`) The path to a service account key file in JSON format
2318
2314
  # * (`Hash`) A service account key as a Hash
2319
2315
  # * (`Google::Auth::Credentials`) A googleauth credentials object
2320
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
2316
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2321
2317
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2322
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
2318
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2323
2319
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
2324
2320
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2325
2321
  # * (`nil`) indicating no credentials
@@ -159,13 +159,11 @@ module Google
159
159
  # # Call the list_operations method.
160
160
  # result = client.list_operations request
161
161
  #
162
- # # The returned object is of type Gapic::PagedEnumerable. You can
163
- # # iterate over all elements by calling #each, and the enumerable
164
- # # will lazily make API calls to fetch subsequent pages. Other
165
- # # methods are also available for managing paging directly.
166
- # result.each do |response|
162
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
163
+ # # over elements, and API calls will be issued to fetch pages as needed.
164
+ # result.each do |item|
167
165
  # # Each element is of type ::Google::Longrunning::Operation.
168
- # p response
166
+ # p item
169
167
  # end
170
168
  #
171
169
  def list_operations request, options = nil
@@ -254,14 +252,14 @@ module Google
254
252
  # # Call the get_operation method.
255
253
  # result = client.get_operation request
256
254
  #
257
- # # The returned object is of type Gapic::Operation. You can use this
258
- # # object to check the status of an operation, cancel it, or wait
259
- # # for results. Here is how to block until completion:
255
+ # # The returned object is of type Gapic::Operation. You can use it to
256
+ # # check the status of an operation, cancel it, or wait for results.
257
+ # # Here is how to wait for a response.
260
258
  # result.wait_until_done! timeout: 60
261
259
  # if result.response?
262
260
  # p result.response
263
261
  # else
264
- # puts "Error!"
262
+ # puts "No response received."
265
263
  # end
266
264
  #
267
265
  def get_operation request, options = nil
@@ -541,14 +539,14 @@ module Google
541
539
  # # Call the wait_operation method.
542
540
  # result = client.wait_operation request
543
541
  #
544
- # # The returned object is of type Gapic::Operation. You can use this
545
- # # object to check the status of an operation, cancel it, or wait
546
- # # for results. Here is how to block until completion:
542
+ # # The returned object is of type Gapic::Operation. You can use it to
543
+ # # check the status of an operation, cancel it, or wait for results.
544
+ # # Here is how to wait for a response.
547
545
  # result.wait_until_done! timeout: 60
548
546
  # if result.response?
549
547
  # p result.response
550
548
  # else
551
- # puts "Error!"
549
+ # puts "No response received."
552
550
  # end
553
551
  #
554
552
  def wait_operation request, options = nil
@@ -623,9 +621,9 @@ module Google
623
621
  # * (`String`) The path to a service account key file in JSON format
624
622
  # * (`Hash`) A service account key as a Hash
625
623
  # * (`Google::Auth::Credentials`) A googleauth credentials object
626
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
624
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
627
625
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
628
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
626
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
629
627
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
630
628
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
631
629
  # * (`nil`) indicating no credentials
@@ -37,7 +37,7 @@ module Google
37
37
  # Clusters. Provides access to the Instance and Cluster schemas only, not the
38
38
  # tables' metadata or data stored in those tables.
39
39
  #
40
- # To load this service and instantiate a client:
40
+ # @example Load this service and instantiate a gRPC client
41
41
  #
42
42
  # require "google/cloud/bigtable/admin/v2/bigtable_instance_admin"
43
43
  # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new