lib/google/cloud/gaming/v1/realms_pb.rb in google-cloud-gaming-v1-0.6.0 vs lib/google/cloud/gaming/v1/realms_pb.rb in google-cloud-gaming-v1-0.7.0
- old
+ new
@@ -1,5 +1,6 @@
+# frozen_string_literal: true
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/gaming/v1/realms.proto
require 'google/protobuf'
@@ -7,57 +8,37 @@
require 'google/api/resource_pb'
require 'google/cloud/gaming/v1/common_pb'
require 'google/protobuf/field_mask_pb'
require 'google/protobuf/timestamp_pb'
-Google::Protobuf::DescriptorPool.generated_pool.build do
- add_file("google/cloud/gaming/v1/realms.proto", :syntax => :proto3) do
- add_message "google.cloud.gaming.v1.ListRealmsRequest" do
- optional :parent, :string, 1
- optional :page_size, :int32, 2
- optional :page_token, :string, 3
- optional :filter, :string, 4
- optional :order_by, :string, 5
+
+descriptor_data = "\n#google/cloud/gaming/v1/realms.proto\x12\x16google.cloud.gaming.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/cloud/gaming/v1/common.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xab\x01\n\x11ListRealmsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!gameservices.googleapis.com/Realm\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"q\n\x12ListRealmsResponse\x12-\n\x06realms\x18\x01 \x03(\x0b\x32\x1d.google.cloud.gaming.v1.Realm\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"J\n\x0fGetRealmRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!gameservices.googleapis.com/Realm\"\x99\x01\n\x12\x43reateRealmRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!gameservices.googleapis.com/Realm\x12\x15\n\x08realm_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x31\n\x05realm\x18\x03 \x01(\x0b\x32\x1d.google.cloud.gaming.v1.RealmB\x03\xe0\x41\x02\"M\n\x12\x44\x65leteRealmRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!gameservices.googleapis.com/Realm\"}\n\x12UpdateRealmRequest\x12\x31\n\x05realm\x18\x01 \x01(\x0b\x32\x1d.google.cloud.gaming.v1.RealmB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xbb\x01\n\x19PreviewRealmUpdateRequest\x12\x31\n\x05realm\x18\x01 \x01(\x0b\x32\x1d.google.cloud.gaming.v1.RealmB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x35\n\x0cpreview_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\"e\n\x1aPreviewRealmUpdateResponse\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x39\n\x0ctarget_state\x18\x03 \x01(\x0b\x32#.google.cloud.gaming.v1.TargetState\"\x86\x03\n\x05Realm\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x39\n\x06labels\x18\x04 \x03(\x0b\x32).google.cloud.gaming.v1.Realm.LabelsEntry\x12\x16\n\ttime_zone\x18\x06 \x01(\tB\x03\xe0\x41\x02\x12\x0c\n\x04\x65tag\x18\x07 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x08 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:^\xea\x41[\n!gameservices.googleapis.com/Realm\x12\x36projects/{project}/locations/{location}/realms/{realm}BR\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.FieldMask", "google/protobuf/field_mask.proto"],
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
+ ["google.cloud.gaming.v1.TargetState", "google/cloud/gaming/v1/common.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.ListRealmsResponse" do
- repeated :realms, :message, 1, "google.cloud.gaming.v1.Realm"
- optional :next_page_token, :string, 2
- repeated :unreachable, :string, 3
- end
- add_message "google.cloud.gaming.v1.GetRealmRequest" do
- optional :name, :string, 1
- end
- add_message "google.cloud.gaming.v1.CreateRealmRequest" do
- optional :parent, :string, 1
- optional :realm_id, :string, 2
- optional :realm, :message, 3, "google.cloud.gaming.v1.Realm"
- end
- add_message "google.cloud.gaming.v1.DeleteRealmRequest" do
- optional :name, :string, 1
- end
- add_message "google.cloud.gaming.v1.UpdateRealmRequest" do
- optional :realm, :message, 1, "google.cloud.gaming.v1.Realm"
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
- end
- add_message "google.cloud.gaming.v1.PreviewRealmUpdateRequest" do
- optional :realm, :message, 1, "google.cloud.gaming.v1.Realm"
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
- optional :preview_time, :message, 3, "google.protobuf.Timestamp"
- end
- add_message "google.cloud.gaming.v1.PreviewRealmUpdateResponse" do
- optional :etag, :string, 2
- optional :target_state, :message, 3, "google.cloud.gaming.v1.TargetState"
- end
- add_message "google.cloud.gaming.v1.Realm" do
- optional :name, :string, 1
- optional :create_time, :message, 2, "google.protobuf.Timestamp"
- optional :update_time, :message, 3, "google.protobuf.Timestamp"
- map :labels, :string, :string, 4
- optional :time_zone, :string, 6
- optional :etag, :string, 7
- optional :description, :string, 8
- 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