google-cloud-gaming-v1 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/gaming/v1/common_pb.rb +26 -80
  4. data/lib/google/cloud/gaming/v1/game_server_clusters_pb.rb +27 -101
  5. data/lib/google/cloud/gaming/v1/game_server_clusters_service/client.rb +6 -4
  6. data/lib/google/cloud/gaming/v1/game_server_clusters_service/operations.rb +5 -3
  7. data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest/client.rb +6 -4
  8. data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest/operations.rb +9 -7
  9. data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest/service_stub.rb +8 -8
  10. data/lib/google/cloud/gaming/v1/game_server_clusters_service_pb.rb +25 -2
  11. data/lib/google/cloud/gaming/v1/game_server_configs_pb.rb +26 -43
  12. data/lib/google/cloud/gaming/v1/game_server_configs_service/client.rb +6 -4
  13. data/lib/google/cloud/gaming/v1/game_server_configs_service/operations.rb +5 -3
  14. data/lib/google/cloud/gaming/v1/game_server_configs_service/rest/client.rb +6 -4
  15. data/lib/google/cloud/gaming/v1/game_server_configs_service/rest/operations.rb +9 -7
  16. data/lib/google/cloud/gaming/v1/game_server_configs_service/rest/service_stub.rb +4 -4
  17. data/lib/google/cloud/gaming/v1/game_server_configs_service_pb.rb +25 -2
  18. data/lib/google/cloud/gaming/v1/game_server_deployments_pb.rb +27 -80
  19. data/lib/google/cloud/gaming/v1/game_server_deployments_service/client.rb +6 -4
  20. data/lib/google/cloud/gaming/v1/game_server_deployments_service/operations.rb +5 -3
  21. data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest/client.rb +6 -4
  22. data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest/operations.rb +9 -7
  23. data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest/service_stub.rb +9 -9
  24. data/lib/google/cloud/gaming/v1/game_server_deployments_service_pb.rb +25 -2
  25. data/lib/google/cloud/gaming/v1/realms_pb.rb +27 -46
  26. data/lib/google/cloud/gaming/v1/realms_service/client.rb +6 -4
  27. data/lib/google/cloud/gaming/v1/realms_service/operations.rb +5 -3
  28. data/lib/google/cloud/gaming/v1/realms_service/rest/client.rb +6 -4
  29. data/lib/google/cloud/gaming/v1/realms_service/rest/operations.rb +9 -7
  30. data/lib/google/cloud/gaming/v1/realms_service/rest/service_stub.rb +6 -6
  31. data/lib/google/cloud/gaming/v1/realms_service_pb.rb +25 -2
  32. data/lib/google/cloud/gaming/v1/version.rb +1 -1
  33. data/proto_docs/google/api/client.rb +67 -4
  34. data/proto_docs/google/protobuf/any.rb +7 -4
  35. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  36. metadata +4 -4
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_list_game_server_deployments_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_get_game_server_deployment_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_create_game_server_deployment_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_game_server_deployment_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_update_game_server_deployment_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_get_game_server_deployment_rollout_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -287,7 +287,7 @@ module Google
287
287
 
288
288
  verb, uri, query_string_params, body = ServiceStub.transcode_update_game_server_deployment_rollout_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
291
  else
292
292
  {}
293
293
  end
@@ -325,7 +325,7 @@ module Google
325
325
 
326
326
  verb, uri, query_string_params, body = ServiceStub.transcode_preview_game_server_deployment_rollout_request request_pb
327
327
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
328
+ query_string_params.to_h { |p| p.split "=", 2 }
329
329
  else
330
330
  {}
331
331
  end
@@ -363,7 +363,7 @@ module Google
363
363
 
364
364
  verb, uri, query_string_params, body = ServiceStub.transcode_fetch_deployment_state_request request_pb
365
365
  query_string_params = if query_string_params.any?
366
- query_string_params.to_h { |p| p.split("=", 2) }
366
+ query_string_params.to_h { |p| p.split "=", 2 }
367
367
  else
368
368
  {}
369
369
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/gaming/v1/game_server_deployments_service.proto
3
4
 
@@ -8,9 +9,31 @@ require 'google/api/client_pb'
8
9
  require 'google/cloud/gaming/v1/game_server_deployments_pb'
9
10
  require 'google/longrunning/operations_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/cloud/gaming/v1/game_server_deployments_service.proto", :syntax => :proto3) do
12
+
13
+ descriptor_data = "\n<google/cloud/gaming/v1/game_server_deployments_service.proto\x12\x16google.cloud.gaming.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x34google/cloud/gaming/v1/game_server_deployments.proto\x1a#google/longrunning/operations.proto2\xe8\x12\n\x1cGameServerDeploymentsService\x12\xdc\x01\n\x19ListGameServerDeployments\x12\x38.google.cloud.gaming.v1.ListGameServerDeploymentsRequest\x1a\x39.google.cloud.gaming.v1.ListGameServerDeploymentsResponse\"J\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/locations/*}/gameServerDeployments\xda\x41\x06parent\x12\xc9\x01\n\x17GetGameServerDeployment\x12\x36.google.cloud.gaming.v1.GetGameServerDeploymentRequest\x1a,.google.cloud.gaming.v1.GameServerDeployment\"H\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/gameServerDeployments/*}\xda\x41\x04name\x12\x9e\x02\n\x1a\x43reateGameServerDeployment\x12\x39.google.cloud.gaming.v1.CreateGameServerDeploymentRequest\x1a\x1d.google.longrunning.Operation\"\xa5\x01\x82\xd3\xe4\x93\x02S\"9/v1/{parent=projects/*/locations/*}/gameServerDeployments:\x16game_server_deployment\xda\x41\x1dparent,game_server_deployment\xca\x41)\n\x14GameServerDeployment\x12\x11OperationMetadata\x12\xed\x01\n\x1a\x44\x65leteGameServerDeployment\x12\x39.google.cloud.gaming.v1.DeleteGameServerDeploymentRequest\x1a\x1d.google.longrunning.Operation\"u\x82\xd3\xe4\x93\x02;*9/v1/{name=projects/*/locations/*/gameServerDeployments/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xba\x02\n\x1aUpdateGameServerDeployment\x12\x39.google.cloud.gaming.v1.UpdateGameServerDeploymentRequest\x1a\x1d.google.longrunning.Operation\"\xc1\x01\x82\xd3\xe4\x93\x02j2P/v1/{game_server_deployment.name=projects/*/locations/*/gameServerDeployments/*}:\x16game_server_deployment\xda\x41\"game_server_deployment,update_mask\xca\x41)\n\x14GameServerDeployment\x12\x11OperationMetadata\x12\xe6\x01\n\x1eGetGameServerDeploymentRollout\x12=.google.cloud.gaming.v1.GetGameServerDeploymentRolloutRequest\x1a\x33.google.cloud.gaming.v1.GameServerDeploymentRollout\"P\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{name=projects/*/locations/*/gameServerDeployments/*}/rollout\xda\x41\x04name\x12\xa3\x02\n!UpdateGameServerDeploymentRollout\x12@.google.cloud.gaming.v1.UpdateGameServerDeploymentRolloutRequest\x1a\x1d.google.longrunning.Operation\"\x9c\x01\x82\xd3\xe4\x93\x02T2I/v1/{rollout.name=projects/*/locations/*/gameServerDeployments/*}/rollout:\x07rollout\xda\x41\x13rollout,update_mask\xca\x41)\n\x14GameServerDeployment\x12\x11OperationMetadata\x12\x8f\x02\n\"PreviewGameServerDeploymentRollout\x12\x41.google.cloud.gaming.v1.PreviewGameServerDeploymentRolloutRequest\x1a\x42.google.cloud.gaming.v1.PreviewGameServerDeploymentRolloutResponse\"b\x82\xd3\xe4\x93\x02\\2Q/v1/{rollout.name=projects/*/locations/*/gameServerDeployments/*}/rollout:preview:\x07rollout\x12\xdc\x01\n\x14\x46\x65tchDeploymentState\x12\x33.google.cloud.gaming.v1.FetchDeploymentStateRequest\x1a\x34.google.cloud.gaming.v1.FetchDeploymentStateResponse\"Y\x82\xd3\xe4\x93\x02S\"N/v1/{name=projects/*/locations/*/gameServerDeployments/*}:fetchDeploymentState:\x01*\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"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
33
+ end
13
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
14
37
  end
15
38
 
16
39
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/gaming/v1/realms.proto
3
4
 
@@ -9,54 +10,34 @@ require 'google/cloud/gaming/v1/common_pb'
9
10
  require 'google/protobuf/field_mask_pb'
10
11
  require 'google/protobuf/timestamp_pb'
11
12
 
12
- Google::Protobuf::DescriptorPool.generated_pool.build do
13
- add_file("google/cloud/gaming/v1/realms.proto", :syntax => :proto3) do
14
- add_message "google.cloud.gaming.v1.ListRealmsRequest" do
15
- optional :parent, :string, 1
16
- optional :page_size, :int32, 2
17
- optional :page_token, :string, 3
18
- optional :filter, :string, 4
19
- optional :order_by, :string, 5
20
- end
21
- add_message "google.cloud.gaming.v1.ListRealmsResponse" do
22
- repeated :realms, :message, 1, "google.cloud.gaming.v1.Realm"
23
- optional :next_page_token, :string, 2
24
- repeated :unreachable, :string, 3
25
- end
26
- add_message "google.cloud.gaming.v1.GetRealmRequest" do
27
- optional :name, :string, 1
28
- end
29
- add_message "google.cloud.gaming.v1.CreateRealmRequest" do
30
- optional :parent, :string, 1
31
- optional :realm_id, :string, 2
32
- optional :realm, :message, 3, "google.cloud.gaming.v1.Realm"
33
- end
34
- add_message "google.cloud.gaming.v1.DeleteRealmRequest" do
35
- optional :name, :string, 1
36
- end
37
- add_message "google.cloud.gaming.v1.UpdateRealmRequest" do
38
- optional :realm, :message, 1, "google.cloud.gaming.v1.Realm"
39
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
40
- end
41
- add_message "google.cloud.gaming.v1.PreviewRealmUpdateRequest" do
42
- optional :realm, :message, 1, "google.cloud.gaming.v1.Realm"
43
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
44
- optional :preview_time, :message, 3, "google.protobuf.Timestamp"
45
- end
46
- add_message "google.cloud.gaming.v1.PreviewRealmUpdateResponse" do
47
- optional :etag, :string, 2
48
- optional :target_state, :message, 3, "google.cloud.gaming.v1.TargetState"
49
- end
50
- add_message "google.cloud.gaming.v1.Realm" do
51
- optional :name, :string, 1
52
- optional :create_time, :message, 2, "google.protobuf.Timestamp"
53
- optional :update_time, :message, 3, "google.protobuf.Timestamp"
54
- map :labels, :string, :string, 4
55
- optional :time_zone, :string, 6
56
- optional :etag, :string, 7
57
- optional :description, :string, 8
13
+
14
+ 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"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError => e
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
30
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
31
+ ["google.cloud.gaming.v1.TargetState", "google/cloud/gaming/v1/common.proto"],
32
+ ]
33
+ imports.each do |type_name, expected_filename|
34
+ import_file = pool.lookup(type_name).file_descriptor
35
+ if import_file.name != expected_filename
36
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
58
37
  end
59
38
  end
39
+ warn "Each proto file must use a consistent fully-qualified name."
40
+ warn "This will become an error in the next major version."
60
41
  end
61
42
 
62
43
  module Google
@@ -145,7 +145,7 @@ module Google
145
145
  credentials = @config.credentials
146
146
  # Use self-signed JWT if the endpoint is unchanged from default,
147
147
  # but only if the default endpoint does not have a region prefix.
148
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
148
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
149
149
  !@config.endpoint.split(".").first.include?("-")
150
150
  credentials ||= Credentials.default scope: @config.scope,
151
151
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -790,9 +790,9 @@ module Google
790
790
  # * (`String`) The path to a service account key file in JSON format
791
791
  # * (`Hash`) A service account key as a Hash
792
792
  # * (`Google::Auth::Credentials`) A googleauth credentials object
793
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
793
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
794
794
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
795
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
795
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
796
796
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
797
797
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
798
798
  # * (`nil`) indicating no credentials
@@ -834,7 +834,9 @@ module Google
834
834
  class Configuration
835
835
  extend ::Gapic::Config
836
836
 
837
- config_attr :endpoint, "gameservices.googleapis.com", ::String
837
+ DEFAULT_ENDPOINT = "gameservices.googleapis.com"
838
+
839
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
838
840
  config_attr :credentials, nil do |value|
839
841
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
840
842
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -620,9 +620,9 @@ module Google
620
620
  # * (`String`) The path to a service account key file in JSON format
621
621
  # * (`Hash`) A service account key as a Hash
622
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
628
  # * (`nil`) indicating no credentials
@@ -664,7 +664,9 @@ module Google
664
664
  class Configuration
665
665
  extend ::Gapic::Config
666
666
 
667
- config_attr :endpoint, "gameservices.googleapis.com", ::String
667
+ DEFAULT_ENDPOINT = "gameservices.googleapis.com"
668
+
669
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
670
  config_attr :credentials, nil do |value|
669
671
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
672
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -141,7 +141,7 @@ module Google
141
141
  credentials = @config.credentials
142
142
  # Use self-signed JWT if the endpoint is unchanged from default,
143
143
  # but only if the default endpoint does not have a region prefix.
144
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
144
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
145
145
  !@config.endpoint.split(".").first.include?("-")
146
146
  credentials ||= Credentials.default scope: @config.scope,
147
147
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -617,9 +617,9 @@ module Google
617
617
  # * (`String`) The path to a service account key file in JSON format
618
618
  # * (`Hash`) A service account key as a Hash
619
619
  # * (`Google::Auth::Credentials`) A googleauth credentials object
620
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
620
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
621
621
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
622
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
622
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
623
623
  # * (`nil`) indicating no credentials
624
624
  # @return [::Object]
625
625
  # @!attribute [rw] scope
@@ -652,7 +652,9 @@ module Google
652
652
  class Configuration
653
653
  extend ::Gapic::Config
654
654
 
655
- config_attr :endpoint, "gameservices.googleapis.com", ::String
655
+ DEFAULT_ENDPOINT = "gameservices.googleapis.com"
656
+
657
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
656
658
  config_attr :credentials, nil do |value|
657
659
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
658
660
  allowed.any? { |klass| klass === value }
@@ -411,9 +411,9 @@ module Google
411
411
  # * (`String`) The path to a service account key file in JSON format
412
412
  # * (`Hash`) A service account key as a Hash
413
413
  # * (`Google::Auth::Credentials`) A googleauth credentials object
414
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
414
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
415
415
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
416
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
416
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
417
417
  # * (`nil`) indicating no credentials
418
418
  # @return [::Object]
419
419
  # @!attribute [rw] scope
@@ -446,7 +446,9 @@ module Google
446
446
  class Configuration
447
447
  extend ::Gapic::Config
448
448
 
449
- config_attr :endpoint, "gameservices.googleapis.com", ::String
449
+ DEFAULT_ENDPOINT = "gameservices.googleapis.com"
450
+
451
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
450
452
  config_attr :credentials, nil do |value|
451
453
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
452
454
  allowed.any? { |klass| klass === value }
@@ -567,7 +569,7 @@ module Google
567
569
 
568
570
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
569
571
  query_string_params = if query_string_params.any?
570
- query_string_params.to_h { |p| p.split("=", 2) }
572
+ query_string_params.to_h { |p| p.split "=", 2 }
571
573
  else
572
574
  {}
573
575
  end
@@ -605,7 +607,7 @@ module Google
605
607
 
606
608
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
607
609
  query_string_params = if query_string_params.any?
608
- query_string_params.to_h { |p| p.split("=", 2) }
610
+ query_string_params.to_h { |p| p.split "=", 2 }
609
611
  else
610
612
  {}
611
613
  end
@@ -643,7 +645,7 @@ module Google
643
645
 
644
646
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
645
647
  query_string_params = if query_string_params.any?
646
- query_string_params.to_h { |p| p.split("=", 2) }
648
+ query_string_params.to_h { |p| p.split "=", 2 }
647
649
  else
648
650
  {}
649
651
  end
@@ -681,7 +683,7 @@ module Google
681
683
 
682
684
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
683
685
  query_string_params = if query_string_params.any?
684
- query_string_params.to_h { |p| p.split("=", 2) }
686
+ query_string_params.to_h { |p| p.split "=", 2 }
685
687
  else
686
688
  {}
687
689
  end
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_list_realms_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_get_realm_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_create_realm_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_realm_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_update_realm_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_preview_realm_update_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/gaming/v1/realms_service.proto
3
4
 
@@ -8,9 +9,31 @@ require 'google/api/client_pb'
8
9
  require 'google/cloud/gaming/v1/realms_pb'
9
10
  require 'google/longrunning/operations_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/cloud/gaming/v1/realms_service.proto", :syntax => :proto3) do
12
+
13
+ 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"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
33
+ end
13
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
14
37
  end
15
38
 
16
39
  module Google
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Gaming
23
23
  module V1
24
- VERSION = "0.6.0"
24
+ VERSION = "0.7.0"
25
25
  end
26
26
  end
27
27
  end
@@ -35,7 +35,9 @@ module Google
35
35
  # Details about how and where to publish client libraries.
36
36
  # @!attribute [rw] version
37
37
  # @return [::String]
38
- # Version of the API to apply these settings to.
38
+ # Version of the API to apply these settings to. This is the full protobuf
39
+ # package for the API, ending in the version element.
40
+ # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
39
41
  # @!attribute [rw] launch_stage
40
42
  # @return [::Google::Api::LaunchStage]
41
43
  # Launch stage of this version of the API.
@@ -81,7 +83,7 @@ module Google
81
83
  # long-running operation pattern.
82
84
  # @!attribute [rw] new_issue_uri
83
85
  # @return [::String]
84
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
85
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
86
88
  # @!attribute [rw] documentation_uri
87
89
  # @return [::String]
@@ -111,6 +113,10 @@ module Google
111
113
  # Client library settings. If the same version string appears multiple
112
114
  # times in this list, then the last one wins. Settings from earlier
113
115
  # settings with the same version string are discarded.
116
+ # @!attribute [rw] proto_reference_documentation_uri
117
+ # @return [::String]
118
+ # Optional link to proto reference documentation. Example:
119
+ # https://cloud.google.com/pubsub/lite/docs/reference/rpc
114
120
  class Publishing
115
121
  include ::Google::Protobuf::MessageExts
116
122
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -203,9 +209,57 @@ module Google
203
209
  # @!attribute [rw] common
204
210
  # @return [::Google::Api::CommonLanguageSettings]
205
211
  # Some settings.
212
+ # @!attribute [rw] renamed_services
213
+ # @return [::Google::Protobuf::Map{::String => ::String}]
214
+ # Map from original service names to renamed versions.
215
+ # This is used when the default generated types
216
+ # would cause a naming conflict. (Neither name is
217
+ # fully-qualified.)
218
+ # Example: Subscriber to SubscriberServiceApi.
219
+ # @!attribute [rw] renamed_resources
220
+ # @return [::Google::Protobuf::Map{::String => ::String}]
221
+ # Map from full resource types to the effective short name
222
+ # for the resource. This is used when otherwise resource
223
+ # named from different services would cause naming collisions.
224
+ # Example entry:
225
+ # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
226
+ # @!attribute [rw] ignored_resources
227
+ # @return [::Array<::String>]
228
+ # List of full resource types to ignore during generation.
229
+ # This is typically used for API-specific Location resources,
230
+ # which should be handled by the generator as if they were actually
231
+ # the common Location resources.
232
+ # Example entry: "documentai.googleapis.com/Location"
233
+ # @!attribute [rw] forced_namespace_aliases
234
+ # @return [::Array<::String>]
235
+ # Namespaces which must be aliased in snippets due to
236
+ # a known (but non-generator-predictable) naming collision
237
+ # @!attribute [rw] handwritten_signatures
238
+ # @return [::Array<::String>]
239
+ # Method signatures (in the form "service.method(signature)")
240
+ # which are provided separately, so shouldn't be generated.
241
+ # Snippets *calling* these methods are still generated, however.
206
242
  class DotnetSettings
207
243
  include ::Google::Protobuf::MessageExts
208
244
  extend ::Google::Protobuf::MessageExts::ClassMethods
245
+
246
+ # @!attribute [rw] key
247
+ # @return [::String]
248
+ # @!attribute [rw] value
249
+ # @return [::String]
250
+ class RenamedServicesEntry
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+
255
+ # @!attribute [rw] key
256
+ # @return [::String]
257
+ # @!attribute [rw] value
258
+ # @return [::String]
259
+ class RenamedResourcesEntry
260
+ include ::Google::Protobuf::MessageExts
261
+ extend ::Google::Protobuf::MessageExts::ClassMethods
262
+ end
209
263
  end
210
264
 
211
265
  # Settings for Ruby client libraries.
@@ -240,8 +294,8 @@ module Google
240
294
  # Example of a YAML configuration::
241
295
  #
242
296
  # publishing:
243
- # method_behavior:
244
- # - selector: CreateAdDomain
297
+ # method_settings:
298
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
245
299
  # long_running:
246
300
  # initial_poll_delay:
247
301
  # seconds: 60 # 1 minute
@@ -299,6 +353,15 @@ module Google
299
353
 
300
354
  # Street View Org.
301
355
  STREET_VIEW = 4
356
+
357
+ # Shopping Org.
358
+ SHOPPING = 5
359
+
360
+ # Geo Org.
361
+ GEO = 6
362
+
363
+ # Generative AI - https://developers.generativeai.google
364
+ GENERATIVE_AI = 7
302
365
  end
303
366
 
304
367
  # To where should client libraries be published?
@@ -43,8 +43,12 @@ module Google
43
43
  # if (any.is(Foo.class)) {
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
+ # // or ...
47
+ # if (any.isSameTypeAs(Foo.getDefaultInstance())) {
48
+ # foo = any.unpack(Foo.getDefaultInstance());
49
+ # }
46
50
  #
47
- # Example 3: Pack and unpack a message in Python.
51
+ # Example 3: Pack and unpack a message in Python.
48
52
  #
49
53
  # foo = Foo(...)
50
54
  # any = Any()
@@ -54,7 +58,7 @@ module Google
54
58
  # any.Unpack(foo)
55
59
  # ...
56
60
  #
57
- # Example 4: Pack and unpack a message in Go
61
+ # Example 4: Pack and unpack a message in Go
58
62
  #
59
63
  # foo := &pb.Foo{...}
60
64
  # any, err := anypb.New(foo)
@@ -73,9 +77,8 @@ module Google
73
77
  # in the type URL, for example "foo.bar.com/x/y.z" will yield type
74
78
  # name "y.z".
75
79
  #
76
- #
77
80
  # JSON
78
- #
81
+ # ====
79
82
  # The JSON representation of an `Any` value uses the regular
80
83
  # representation of the deserialized, embedded message, with an
81
84
  # additional field `@type` which contains the type URL. Example:
@@ -69,7 +69,6 @@ module Google
69
69
  # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
- #
73
72
  # Example 5: Compute Timestamp from Java `Instant.now()`.
74
73
  #
75
74
  # Instant now = Instant.now();
@@ -78,7 +77,6 @@ module Google
78
77
  # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
78
  # .setNanos(now.getNano()).build();
80
79
  #
81
- #
82
80
  # Example 6: Compute Timestamp from current time in Python.
83
81
  #
84
82
  # timestamp = Timestamp()
@@ -108,7 +106,7 @@ module Google
108
106
  # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
109
107
  # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
110
108
  # the Joda Time's [`ISODateTimeFormat.dateTime()`](
111
- # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
109
+ # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
112
110
  # ) to obtain a formatter capable of generating timestamps in this format.
113
111
  # @!attribute [rw] seconds
114
112
  # @return [::Integer]