lib/google/cloud/gkehub/v1/feature_pb.rb in google-cloud-gke_hub-v1-0.5.0 vs lib/google/cloud/gkehub/v1/feature_pb.rb in google-cloud-gke_hub-v1-0.6.0

- old
+ new

@@ -1,5 +1,6 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/gkehub/v1/feature.proto require 'google/protobuf' @@ -7,65 +8,37 @@ require 'google/api/resource_pb' require 'google/cloud/gkehub/v1/configmanagement/configmanagement_pb' require 'google/cloud/gkehub/v1/multiclusteringress/multiclusteringress_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/gkehub/v1/feature.proto", :syntax => :proto3) do - add_message "google.cloud.gkehub.v1.Feature" do - optional :name, :string, 1 - map :labels, :string, :string, 2 - optional :resource_state, :message, 3, "google.cloud.gkehub.v1.FeatureResourceState" - optional :spec, :message, 4, "google.cloud.gkehub.v1.CommonFeatureSpec" - map :membership_specs, :string, :message, 5, "google.cloud.gkehub.v1.MembershipFeatureSpec" - optional :state, :message, 6, "google.cloud.gkehub.v1.CommonFeatureState" - map :membership_states, :string, :message, 7, "google.cloud.gkehub.v1.MembershipFeatureState" - optional :create_time, :message, 8, "google.protobuf.Timestamp" - optional :update_time, :message, 9, "google.protobuf.Timestamp" - optional :delete_time, :message, 10, "google.protobuf.Timestamp" + +descriptor_data = "\n$google/cloud/gkehub/v1/feature.proto\x12\x16google.cloud.gkehub.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a>google/cloud/gkehub/v1/configmanagement/configmanagement.proto\x1a\x44google/cloud/gkehub/v1/multiclusteringress/multiclusteringress.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xcf\x07\n\x07\x46\x65\x61ture\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12;\n\x06labels\x18\x02 \x03(\x0b\x32+.google.cloud.gkehub.v1.Feature.LabelsEntry\x12I\n\x0eresource_state\x18\x03 \x01(\x0b\x32,.google.cloud.gkehub.v1.FeatureResourceStateB\x03\xe0\x41\x03\x12<\n\x04spec\x18\x04 \x01(\x0b\x32).google.cloud.gkehub.v1.CommonFeatureSpecB\x03\xe0\x41\x01\x12S\n\x10membership_specs\x18\x05 \x03(\x0b\x32\x34.google.cloud.gkehub.v1.Feature.MembershipSpecsEntryB\x03\xe0\x41\x01\x12>\n\x05state\x18\x06 \x01(\x0b\x32*.google.cloud.gkehub.v1.CommonFeatureStateB\x03\xe0\x41\x03\x12U\n\x11membership_states\x18\x07 \x03(\x0b\x32\x35.google.cloud.gkehub.v1.Feature.MembershipStatesEntryB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x65\n\x14MembershipSpecsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12<\n\x05value\x18\x02 \x01(\x0b\x32-.google.cloud.gkehub.v1.MembershipFeatureSpec:\x02\x38\x01\x1ag\n\x15MembershipStatesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12=\n\x05value\x18\x02 \x01(\x0b\x32..google.cloud.gkehub.v1.MembershipFeatureState:\x02\x38\x01:^\xea\x41[\n\x1dgkehub.googleapis.com/Feature\x12:projects/{project}/locations/{location}/features/{feature}\"\xc6\x01\n\x14\x46\x65\x61tureResourceState\x12\x41\n\x05state\x18\x01 \x01(\x0e\x32\x32.google.cloud.gkehub.v1.FeatureResourceState.State\"k\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x45NABLING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\r\n\tDISABLING\x10\x03\x12\x0c\n\x08UPDATING\x10\x04\x12\x14\n\x10SERVICE_UPDATING\x10\x05\"\xcb\x01\n\x0c\x46\x65\x61tureState\x12\x37\n\x04\x63ode\x18\x01 \x01(\x0e\x32).google.cloud.gkehub.v1.FeatureState.Code\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12/\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"<\n\x04\x43ode\x12\x14\n\x10\x43ODE_UNSPECIFIED\x10\x00\x12\x06\n\x02OK\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\"{\n\x11\x43ommonFeatureSpec\x12V\n\x13multiclusteringress\x18\x66 \x01(\x0b\x32\x37.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecH\x00\x42\x0e\n\x0c\x66\x65\x61ture_spec\"N\n\x12\x43ommonFeatureState\x12\x38\n\x05state\x18\x01 \x01(\x0b\x32$.google.cloud.gkehub.v1.FeatureStateB\x03\xe0\x41\x03\"|\n\x15MembershipFeatureSpec\x12S\n\x10\x63onfigmanagement\x18j \x01(\x0b\x32\x37.google.cloud.gkehub.configmanagement.v1.MembershipSpecH\x00\x42\x0e\n\x0c\x66\x65\x61ture_spec\"\xb4\x01\n\x16MembershipFeatureState\x12T\n\x10\x63onfigmanagement\x18j \x01(\x0b\x32\x38.google.cloud.gkehub.configmanagement.v1.MembershipStateH\x00\x12\x33\n\x05state\x18\x01 \x01(\x0b\x32$.google.cloud.gkehub.v1.FeatureStateB\x0f\n\rfeature_stateB\xae\x01\n\x1a\x63om.google.cloud.gkehub.v1B\x0c\x46\x65\x61tureProtoP\x01Z2cloud.google.com/go/gkehub/apiv1/gkehubpb;gkehubpb\xaa\x02\x16Google.Cloud.GkeHub.V1\xca\x02\x16Google\\Cloud\\GkeHub\\V1\xea\x02\x19Google::Cloud::GkeHub::V1b\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"], + ["google.cloud.gkehub.multiclusteringress.v1.FeatureSpec", "google/cloud/gkehub/v1/multiclusteringress/multiclusteringress.proto"], + ["google.cloud.gkehub.configmanagement.v1.MembershipSpec", "google/cloud/gkehub/v1/configmanagement/configmanagement.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_message "google.cloud.gkehub.v1.FeatureResourceState" do - optional :state, :enum, 1, "google.cloud.gkehub.v1.FeatureResourceState.State" - end - add_enum "google.cloud.gkehub.v1.FeatureResourceState.State" do - value :STATE_UNSPECIFIED, 0 - value :ENABLING, 1 - value :ACTIVE, 2 - value :DISABLING, 3 - value :UPDATING, 4 - value :SERVICE_UPDATING, 5 - end - add_message "google.cloud.gkehub.v1.FeatureState" do - optional :code, :enum, 1, "google.cloud.gkehub.v1.FeatureState.Code" - optional :description, :string, 2 - optional :update_time, :message, 3, "google.protobuf.Timestamp" - end - add_enum "google.cloud.gkehub.v1.FeatureState.Code" do - value :CODE_UNSPECIFIED, 0 - value :OK, 1 - value :WARNING, 2 - value :ERROR, 3 - end - add_message "google.cloud.gkehub.v1.CommonFeatureSpec" do - oneof :feature_spec do - optional :multiclusteringress, :message, 102, "google.cloud.gkehub.multiclusteringress.v1.FeatureSpec" - end - end - add_message "google.cloud.gkehub.v1.CommonFeatureState" do - optional :state, :message, 1, "google.cloud.gkehub.v1.FeatureState" - end - add_message "google.cloud.gkehub.v1.MembershipFeatureSpec" do - oneof :feature_spec do - optional :configmanagement, :message, 106, "google.cloud.gkehub.configmanagement.v1.MembershipSpec" - end - end - add_message "google.cloud.gkehub.v1.MembershipFeatureState" do - optional :state, :message, 1, "google.cloud.gkehub.v1.FeatureState" - oneof :feature_state do - optional :configmanagement, :message, 106, "google.cloud.gkehub.configmanagement.v1.MembershipState" - end - 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 GkeHub