lib/google/cloud/gaming/v1/common_pb.rb in google-cloud-gaming-v1-0.6.0 vs lib/google/cloud/gaming/v1/common_pb.rb in google-cloud-gaming-v1-0.7.0

- old
+ new

@@ -1,95 +1,41 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/gaming/v1/common.proto require 'google/protobuf' require 'google/api/field_behavior_pb' require 'google/protobuf/duration_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/gaming/v1/common.proto", :syntax => :proto3) do - add_message "google.cloud.gaming.v1.OperationMetadata" do - optional :create_time, :message, 1, "google.protobuf.Timestamp" - optional :end_time, :message, 2, "google.protobuf.Timestamp" - optional :target, :string, 3 - optional :verb, :string, 4 - optional :status_message, :string, 5 - optional :requested_cancellation, :bool, 6 - optional :api_version, :string, 7 - repeated :unreachable, :string, 8 - map :operation_status, :string, :message, 9, "google.cloud.gaming.v1.OperationStatus" + +descriptor_data = "\n#google/cloud/gaming/v1/common.proto\x12\x16google.cloud.gaming.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xda\x03\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0bunreachable\x18\x08 \x03(\tB\x03\xe0\x41\x03\x12]\n\x10operation_status\x18\t \x03(\x0b\x32>.google.cloud.gaming.v1.OperationMetadata.OperationStatusEntryB\x03\xe0\x41\x03\x1a_\n\x14OperationStatusEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.google.cloud.gaming.v1.OperationStatus:\x02\x38\x01\"\xee\x01\n\x0fOperationStatus\x12\x11\n\x04\x64one\x18\x01 \x01(\x08\x42\x03\xe0\x41\x03\x12\x45\n\nerror_code\x18\x02 \x01(\x0e\x32\x31.google.cloud.gaming.v1.OperationStatus.ErrorCode\x12\x15\n\rerror_message\x18\x03 \x01(\t\"j\n\tErrorCode\x12\x1a\n\x16\x45RROR_CODE_UNSPECIFIED\x10\x00\x12\x12\n\x0eINTERNAL_ERROR\x10\x01\x12\x15\n\x11PERMISSION_DENIED\x10\x02\x12\x16\n\x12\x43LUSTER_CONNECTION\x10\x03\"\x81\x01\n\rLabelSelector\x12\x41\n\x06labels\x18\x01 \x03(\x0b\x32\x31.google.cloud.gaming.v1.LabelSelector.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x1f\n\rRealmSelector\x12\x0e\n\x06realms\x18\x01 \x03(\t\"\xb1\x01\n\x08Schedule\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x11\x63ron_job_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x11\n\tcron_spec\x18\x04 \x01(\t\";\n\nSpecSource\x12\x1f\n\x17game_server_config_name\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\"\xad\x04\n\rTargetDetails\x12 \n\x18game_server_cluster_name\x18\x01 \x01(\t\x12#\n\x1bgame_server_deployment_name\x18\x02 \x01(\t\x12O\n\rfleet_details\x18\x03 \x03(\x0b\x32\x38.google.cloud.gaming.v1.TargetDetails.TargetFleetDetails\x1a\x83\x03\n\x12TargetFleetDetails\x12S\n\x05\x66leet\x18\x01 \x01(\x0b\x32\x44.google.cloud.gaming.v1.TargetDetails.TargetFleetDetails.TargetFleet\x12\x62\n\nautoscaler\x18\x02 \x01(\x0b\x32N.google.cloud.gaming.v1.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler\x1aT\n\x0bTargetFleet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x37\n\x0bspec_source\x18\x02 \x01(\x0b\x32\".google.cloud.gaming.v1.SpecSource\x1a^\n\x15TargetFleetAutoscaler\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x37\n\x0bspec_source\x18\x02 \x01(\x0b\x32\".google.cloud.gaming.v1.SpecSource\"E\n\x0bTargetState\x12\x36\n\x07\x64\x65tails\x18\x01 \x03(\x0b\x32%.google.cloud.gaming.v1.TargetDetails\"\x9b\x05\n\x14\x44\x65ployedFleetDetails\x12R\n\x0e\x64\x65ployed_fleet\x18\x01 \x01(\x0b\x32:.google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleet\x12\x61\n\x13\x64\x65ployed_autoscaler\x18\x02 \x01(\x0b\x32\x44.google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleetAutoscaler\x1a\xc3\x02\n\rDeployedFleet\x12\r\n\x05\x66leet\x18\x01 \x01(\t\x12\x12\n\nfleet_spec\x18\x02 \x01(\t\x12\x37\n\x0bspec_source\x18\x03 \x01(\x0b\x32\".google.cloud.gaming.v1.SpecSource\x12^\n\x06status\x18\x05 \x01(\x0b\x32N.google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleet.DeployedFleetStatus\x1av\n\x13\x44\x65ployedFleetStatus\x12\x16\n\x0eready_replicas\x18\x01 \x01(\x03\x12\x1a\n\x12\x61llocated_replicas\x18\x02 \x01(\x03\x12\x19\n\x11reserved_replicas\x18\x03 \x01(\x03\x12\x10\n\x08replicas\x18\x04 \x01(\x03\x1a\x85\x01\n\x17\x44\x65ployedFleetAutoscaler\x12\x12\n\nautoscaler\x18\x01 \x01(\t\x12\x37\n\x0bspec_source\x18\x04 \x01(\x0b\x32\".google.cloud.gaming.v1.SpecSource\x12\x1d\n\x15\x66leet_autoscaler_spec\x18\x03 \x01(\tBR\n\x1a\x63om.google.cloud.gaming.v1P\x01Z2cloud.google.com/go/gaming/apiv1/gamingpb;gamingpbb\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.protobuf.Duration", "google/protobuf/duration.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.gaming.v1.OperationStatus" do - optional :done, :bool, 1 - optional :error_code, :enum, 2, "google.cloud.gaming.v1.OperationStatus.ErrorCode" - optional :error_message, :string, 3 - end - add_enum "google.cloud.gaming.v1.OperationStatus.ErrorCode" do - value :ERROR_CODE_UNSPECIFIED, 0 - value :INTERNAL_ERROR, 1 - value :PERMISSION_DENIED, 2 - value :CLUSTER_CONNECTION, 3 - end - add_message "google.cloud.gaming.v1.LabelSelector" do - map :labels, :string, :string, 1 - end - add_message "google.cloud.gaming.v1.RealmSelector" do - repeated :realms, :string, 1 - end - add_message "google.cloud.gaming.v1.Schedule" do - optional :start_time, :message, 1, "google.protobuf.Timestamp" - optional :end_time, :message, 2, "google.protobuf.Timestamp" - optional :cron_job_duration, :message, 3, "google.protobuf.Duration" - optional :cron_spec, :string, 4 - end - add_message "google.cloud.gaming.v1.SpecSource" do - optional :game_server_config_name, :string, 1 - optional :name, :string, 2 - end - add_message "google.cloud.gaming.v1.TargetDetails" do - optional :game_server_cluster_name, :string, 1 - optional :game_server_deployment_name, :string, 2 - repeated :fleet_details, :message, 3, "google.cloud.gaming.v1.TargetDetails.TargetFleetDetails" - end - add_message "google.cloud.gaming.v1.TargetDetails.TargetFleetDetails" do - optional :fleet, :message, 1, "google.cloud.gaming.v1.TargetDetails.TargetFleetDetails.TargetFleet" - optional :autoscaler, :message, 2, "google.cloud.gaming.v1.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler" - end - add_message "google.cloud.gaming.v1.TargetDetails.TargetFleetDetails.TargetFleet" do - optional :name, :string, 1 - optional :spec_source, :message, 2, "google.cloud.gaming.v1.SpecSource" - end - add_message "google.cloud.gaming.v1.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler" do - optional :name, :string, 1 - optional :spec_source, :message, 2, "google.cloud.gaming.v1.SpecSource" - end - add_message "google.cloud.gaming.v1.TargetState" do - repeated :details, :message, 1, "google.cloud.gaming.v1.TargetDetails" - end - add_message "google.cloud.gaming.v1.DeployedFleetDetails" do - optional :deployed_fleet, :message, 1, "google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleet" - optional :deployed_autoscaler, :message, 2, "google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleetAutoscaler" - end - add_message "google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleet" do - optional :fleet, :string, 1 - optional :fleet_spec, :string, 2 - optional :spec_source, :message, 3, "google.cloud.gaming.v1.SpecSource" - optional :status, :message, 5, "google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleet.DeployedFleetStatus" - end - add_message "google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleet.DeployedFleetStatus" do - optional :ready_replicas, :int64, 1 - optional :allocated_replicas, :int64, 2 - optional :reserved_replicas, :int64, 3 - optional :replicas, :int64, 4 - end - add_message "google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleetAutoscaler" do - optional :autoscaler, :string, 1 - optional :spec_source, :message, 4, "google.cloud.gaming.v1.SpecSource" - optional :fleet_autoscaler_spec, :string, 3 - 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 Gaming