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

- old
+ new

@@ -1,17 +1,40 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/gaming/v1/realms_service.proto require 'google/protobuf' require 'google/api/annotations_pb' require 'google/api/client_pb' require 'google/cloud/gaming/v1/realms_pb' require 'google/longrunning/operations_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/gaming/v1/realms_service.proto", :syntax => :proto3) do + +descriptor_data = "\n+google/cloud/gaming/v1/realms_service.proto\x12\x16google.cloud.gaming.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a#google/cloud/gaming/v1/realms.proto\x1a#google/longrunning/operations.proto2\xbb\t\n\rRealmsService\x12\xa0\x01\n\nListRealms\x12).google.cloud.gaming.v1.ListRealmsRequest\x1a*.google.cloud.gaming.v1.ListRealmsResponse\";\x82\xd3\xe4\x93\x02,\x12*/v1/{parent=projects/*/locations/*}/realms\xda\x41\x06parent\x12\x8d\x01\n\x08GetRealm\x12\'.google.cloud.gaming.v1.GetRealmRequest\x1a\x1d.google.cloud.gaming.v1.Realm\"9\x82\xd3\xe4\x93\x02,\x12*/v1/{name=projects/*/locations/*/realms/*}\xda\x41\x04name\x12\xc8\x01\n\x0b\x43reateRealm\x12*.google.cloud.gaming.v1.CreateRealmRequest\x1a\x1d.google.longrunning.Operation\"n\x82\xd3\xe4\x93\x02\x33\"*/v1/{parent=projects/*/locations/*}/realms:\x05realm\xda\x41\x15parent,realm,realm_id\xca\x41\x1a\n\x05Realm\x12\x11OperationMetadata\x12\xc0\x01\n\x0b\x44\x65leteRealm\x12*.google.cloud.gaming.v1.DeleteRealmRequest\x1a\x1d.google.longrunning.Operation\"f\x82\xd3\xe4\x93\x02,**/v1/{name=projects/*/locations/*/realms/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xca\x01\n\x0bUpdateRealm\x12*.google.cloud.gaming.v1.UpdateRealmRequest\x1a\x1d.google.longrunning.Operation\"p\x82\xd3\xe4\x93\x02\x39\x32\x30/v1/{realm.name=projects/*/locations/*/realms/*}:\x05realm\xda\x41\x11realm,update_mask\xca\x41\x1a\n\x05Realm\x12\x11OperationMetadata\x12\xca\x01\n\x12PreviewRealmUpdate\x12\x31.google.cloud.gaming.v1.PreviewRealmUpdateRequest\x1a\x32.google.cloud.gaming.v1.PreviewRealmUpdateResponse\"M\x82\xd3\xe4\x93\x02G2>/v1/{realm.name=projects/*/locations/*/realms/*}:previewUpdate:\x05realm\x1aO\xca\x41\x1bgameservices.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBR\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 = [ + ] + 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 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