lib/google/bigtable/admin/v2/instance_pb.rb in google-cloud-bigtable-admin-v2-0.15.0 vs lib/google/bigtable/admin/v2/instance_pb.rb in google-cloud-bigtable-admin-v2-0.16.0
- old
+ new
@@ -1,97 +1,41 @@
+# frozen_string_literal: true
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/bigtable/admin/v2/instance.proto
require 'google/protobuf'
require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
require 'google/bigtable/admin/v2/common_pb'
require 'google/protobuf/timestamp_pb'
-Google::Protobuf::DescriptorPool.generated_pool.build do
- add_file("google/bigtable/admin/v2/instance.proto", :syntax => :proto3) do
- add_message "google.bigtable.admin.v2.Instance" do
- optional :name, :string, 1
- optional :display_name, :string, 2
- optional :state, :enum, 3, "google.bigtable.admin.v2.Instance.State"
- optional :type, :enum, 4, "google.bigtable.admin.v2.Instance.Type"
- map :labels, :string, :string, 5
- optional :create_time, :message, 7, "google.protobuf.Timestamp"
- proto3_optional :satisfies_pzs, :bool, 8
+
+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"
+
+pool = Google::Protobuf::DescriptorPool.generated_pool
+
+begin
+ pool.add_serialized_file(descriptor_data)
+rescue TypeError => e
+ # Compatibility code: will be removed in the next major version.
+ require 'google/protobuf/descriptor_pb'
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
+ parsed.clear_dependency
+ serialized = parsed.class.encode(parsed)
+ file = pool.add_serialized_file(serialized)
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
+ imports = [
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
+ ]
+ imports.each do |type_name, expected_filename|
+ import_file = pool.lookup(type_name).file_descriptor
+ if import_file.name != expected_filename
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
end
- add_enum "google.bigtable.admin.v2.Instance.State" do
- value :STATE_NOT_KNOWN, 0
- value :READY, 1
- value :CREATING, 2
- end
- add_enum "google.bigtable.admin.v2.Instance.Type" do
- value :TYPE_UNSPECIFIED, 0
- value :PRODUCTION, 1
- value :DEVELOPMENT, 2
- end
- add_message "google.bigtable.admin.v2.AutoscalingTargets" do
- optional :cpu_utilization_percent, :int32, 2
- optional :storage_utilization_gib_per_node, :int32, 3
- end
- add_message "google.bigtable.admin.v2.AutoscalingLimits" do
- optional :min_serve_nodes, :int32, 1
- optional :max_serve_nodes, :int32, 2
- end
- add_message "google.bigtable.admin.v2.Cluster" do
- optional :name, :string, 1
- optional :location, :string, 2
- optional :state, :enum, 3, "google.bigtable.admin.v2.Cluster.State"
- optional :serve_nodes, :int32, 4
- optional :default_storage_type, :enum, 5, "google.bigtable.admin.v2.StorageType"
- optional :encryption_config, :message, 6, "google.bigtable.admin.v2.Cluster.EncryptionConfig"
- oneof :config do
- optional :cluster_config, :message, 7, "google.bigtable.admin.v2.Cluster.ClusterConfig"
- end
- end
- add_message "google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig" do
- optional :autoscaling_limits, :message, 1, "google.bigtable.admin.v2.AutoscalingLimits"
- optional :autoscaling_targets, :message, 2, "google.bigtable.admin.v2.AutoscalingTargets"
- end
- add_message "google.bigtable.admin.v2.Cluster.ClusterConfig" do
- optional :cluster_autoscaling_config, :message, 1, "google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig"
- end
- add_message "google.bigtable.admin.v2.Cluster.EncryptionConfig" do
- optional :kms_key_name, :string, 1
- end
- add_enum "google.bigtable.admin.v2.Cluster.State" do
- value :STATE_NOT_KNOWN, 0
- value :READY, 1
- value :CREATING, 2
- value :RESIZING, 3
- value :DISABLED, 4
- end
- add_message "google.bigtable.admin.v2.AppProfile" do
- optional :name, :string, 1
- optional :etag, :string, 2
- optional :description, :string, 3
- oneof :routing_policy do
- optional :multi_cluster_routing_use_any, :message, 5, "google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny"
- optional :single_cluster_routing, :message, 6, "google.bigtable.admin.v2.AppProfile.SingleClusterRouting"
- end
- end
- add_message "google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny" do
- repeated :cluster_ids, :string, 1
- end
- add_message "google.bigtable.admin.v2.AppProfile.SingleClusterRouting" do
- optional :cluster_id, :string, 1
- optional :allow_transactional_writes, :bool, 2
- end
- add_message "google.bigtable.admin.v2.HotTablet" do
- optional :name, :string, 1
- optional :table_name, :string, 2
- optional :start_time, :message, 3, "google.protobuf.Timestamp"
- optional :end_time, :message, 4, "google.protobuf.Timestamp"
- optional :start_key, :string, 5
- optional :end_key, :string, 6
- optional :node_cpu_usage_percent, :float, 7
- end
end
+ warn "Each proto file must use a consistent fully-qualified name."
+ warn "This will become an error in the next major version."
end
module Google
module Cloud
module Bigtable