google-cloud-service_directory-v1beta1 0.10.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7bcb4a58aa389b2e87ef3f5afcf824d0cef3ff7db114451671233d19fc53a406
4
- data.tar.gz: '05901c88122de739ca0fe0d7bc0fb7b96835ddd2f84d536dcb4ea15c3ba81a2e'
3
+ metadata.gz: 6d37c40ddf8027adc35d8c878dd53601b7bdb750427e1ec5561f061becae2bb6
4
+ data.tar.gz: 23b860d322d6212c1c97f08bb32f9835b41775c9a868bf9f3b113c5b6ff3d244
5
5
  SHA512:
6
- metadata.gz: 93f7feb274dac9748b39503396c3d8d7e3dc20e26a1251de5887500168df8dd39824c4f0422973ccf305705a1e0849a81a94029ed3feed2b2980fac65fdf90a7
7
- data.tar.gz: 0de678d23a96d0654c49e8d7ec130df393712725c14214efb4176213715ad03e41a438505ccf542ec7d1703bcf94ca2a18e25db87420cd1ecd86e05946741720
6
+ metadata.gz: 315e9277af6816cbcecef90e6b0f5f0964e2c2f5df3f316c6ab9faeef4336df26c86446222ca10dccbe33bb9e205693cc6353d932371275e5d2c9211800a8d17
7
+ data.tar.gz: 9dc08a8fa2c7f17829006ca4cba8a57079bbca2cbe5aa758318efce4338de68df499275d5ce056228f80af7371ae10669d1af857bd79318acf047aaa060163d9
data/README.md CHANGED
@@ -47,7 +47,7 @@ for general usage information.
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
49
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -128,7 +128,7 @@ module Google
128
128
  credentials = @config.credentials
129
129
  # Use self-signed JWT if the endpoint is unchanged from default,
130
130
  # but only if the default endpoint does not have a region prefix.
131
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
131
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
132
132
  !@config.endpoint.split(".").first.include?("-")
133
133
  credentials ||= Credentials.default scope: @config.scope,
134
134
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -312,9 +312,9 @@ module Google
312
312
  # * (`String`) The path to a service account key file in JSON format
313
313
  # * (`Hash`) A service account key as a Hash
314
314
  # * (`Google::Auth::Credentials`) A googleauth credentials object
315
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
315
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
316
316
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
317
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
317
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
318
318
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
319
319
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
320
320
  # * (`nil`) indicating no credentials
@@ -356,7 +356,9 @@ module Google
356
356
  class Configuration
357
357
  extend ::Gapic::Config
358
358
 
359
- config_attr :endpoint, "servicedirectory.googleapis.com", ::String
359
+ DEFAULT_ENDPOINT = "servicedirectory.googleapis.com"
360
+
361
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
360
362
  config_attr :credentials, nil do |value|
361
363
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
362
364
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -124,7 +124,7 @@ module Google
124
124
  credentials = @config.credentials
125
125
  # Use self-signed JWT if the endpoint is unchanged from default,
126
126
  # but only if the default endpoint does not have a region prefix.
127
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
127
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
128
128
  !@config.endpoint.split(".").first.include?("-")
129
129
  credentials ||= Credentials.default scope: @config.scope,
130
130
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -280,9 +280,9 @@ module Google
280
280
  # * (`String`) The path to a service account key file in JSON format
281
281
  # * (`Hash`) A service account key as a Hash
282
282
  # * (`Google::Auth::Credentials`) A googleauth credentials object
283
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
283
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
284
284
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
285
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
285
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
286
286
  # * (`nil`) indicating no credentials
287
287
  # @return [::Object]
288
288
  # @!attribute [rw] scope
@@ -315,7 +315,9 @@ module Google
315
315
  class Configuration
316
316
  extend ::Gapic::Config
317
317
 
318
- config_attr :endpoint, "servicedirectory.googleapis.com", ::String
318
+ DEFAULT_ENDPOINT = "servicedirectory.googleapis.com"
319
+
320
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
319
321
  config_attr :credentials, nil do |value|
320
322
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
321
323
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_resolve_service_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
@@ -142,7 +142,7 @@ module Google
142
142
  credentials = @config.credentials
143
143
  # Use self-signed JWT if the endpoint is unchanged from default,
144
144
  # but only if the default endpoint does not have a region prefix.
145
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
145
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
146
146
  !@config.endpoint.split(".").first.include?("-")
147
147
  credentials ||= Credentials.default scope: @config.scope,
148
148
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -1950,9 +1950,9 @@ module Google
1950
1950
  # * (`String`) The path to a service account key file in JSON format
1951
1951
  # * (`Hash`) A service account key as a Hash
1952
1952
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1953
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1953
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1954
1954
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1955
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1955
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1956
1956
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1957
1957
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1958
1958
  # * (`nil`) indicating no credentials
@@ -1994,7 +1994,9 @@ module Google
1994
1994
  class Configuration
1995
1995
  extend ::Gapic::Config
1996
1996
 
1997
- config_attr :endpoint, "servicedirectory.googleapis.com", ::String
1997
+ DEFAULT_ENDPOINT = "servicedirectory.googleapis.com"
1998
+
1999
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1998
2000
  config_attr :credentials, nil do |value|
1999
2001
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2000
2002
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -138,7 +138,7 @@ module Google
138
138
  credentials = @config.credentials
139
139
  # Use self-signed JWT if the endpoint is unchanged from default,
140
140
  # but only if the default endpoint does not have a region prefix.
141
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
141
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
142
142
  !@config.endpoint.split(".").first.include?("-")
143
143
  credentials ||= Credentials.default scope: @config.scope,
144
144
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -1515,9 +1515,9 @@ module Google
1515
1515
  # * (`String`) The path to a service account key file in JSON format
1516
1516
  # * (`Hash`) A service account key as a Hash
1517
1517
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1518
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1518
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1519
1519
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1520
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1520
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1521
1521
  # * (`nil`) indicating no credentials
1522
1522
  # @return [::Object]
1523
1523
  # @!attribute [rw] scope
@@ -1550,7 +1550,9 @@ module Google
1550
1550
  class Configuration
1551
1551
  extend ::Gapic::Config
1552
1552
 
1553
- config_attr :endpoint, "servicedirectory.googleapis.com", ::String
1553
+ DEFAULT_ENDPOINT = "servicedirectory.googleapis.com"
1554
+
1555
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1554
1556
  config_attr :credentials, nil do |value|
1555
1557
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1556
1558
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_create_namespace_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_list_namespaces_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_get_namespace_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_update_namespace_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_delete_namespace_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_create_service_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_list_services_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_get_service_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_update_service_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
@@ -401,7 +401,7 @@ module Google
401
401
 
402
402
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_service_request request_pb
403
403
  query_string_params = if query_string_params.any?
404
- query_string_params.to_h { |p| p.split("=", 2) }
404
+ query_string_params.to_h { |p| p.split "=", 2 }
405
405
  else
406
406
  {}
407
407
  end
@@ -439,7 +439,7 @@ module Google
439
439
 
440
440
  verb, uri, query_string_params, body = ServiceStub.transcode_create_endpoint_request request_pb
441
441
  query_string_params = if query_string_params.any?
442
- query_string_params.to_h { |p| p.split("=", 2) }
442
+ query_string_params.to_h { |p| p.split "=", 2 }
443
443
  else
444
444
  {}
445
445
  end
@@ -477,7 +477,7 @@ module Google
477
477
 
478
478
  verb, uri, query_string_params, body = ServiceStub.transcode_list_endpoints_request request_pb
479
479
  query_string_params = if query_string_params.any?
480
- query_string_params.to_h { |p| p.split("=", 2) }
480
+ query_string_params.to_h { |p| p.split "=", 2 }
481
481
  else
482
482
  {}
483
483
  end
@@ -515,7 +515,7 @@ module Google
515
515
 
516
516
  verb, uri, query_string_params, body = ServiceStub.transcode_get_endpoint_request request_pb
517
517
  query_string_params = if query_string_params.any?
518
- query_string_params.to_h { |p| p.split("=", 2) }
518
+ query_string_params.to_h { |p| p.split "=", 2 }
519
519
  else
520
520
  {}
521
521
  end
@@ -553,7 +553,7 @@ module Google
553
553
 
554
554
  verb, uri, query_string_params, body = ServiceStub.transcode_update_endpoint_request request_pb
555
555
  query_string_params = if query_string_params.any?
556
- query_string_params.to_h { |p| p.split("=", 2) }
556
+ query_string_params.to_h { |p| p.split "=", 2 }
557
557
  else
558
558
  {}
559
559
  end
@@ -591,7 +591,7 @@ module Google
591
591
 
592
592
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_endpoint_request request_pb
593
593
  query_string_params = if query_string_params.any?
594
- query_string_params.to_h { |p| p.split("=", 2) }
594
+ query_string_params.to_h { |p| p.split "=", 2 }
595
595
  else
596
596
  {}
597
597
  end
@@ -629,7 +629,7 @@ module Google
629
629
 
630
630
  verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb
631
631
  query_string_params = if query_string_params.any?
632
- query_string_params.to_h { |p| p.split("=", 2) }
632
+ query_string_params.to_h { |p| p.split "=", 2 }
633
633
  else
634
634
  {}
635
635
  end
@@ -667,7 +667,7 @@ module Google
667
667
 
668
668
  verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb
669
669
  query_string_params = if query_string_params.any?
670
- query_string_params.to_h { |p| p.split("=", 2) }
670
+ query_string_params.to_h { |p| p.split "=", 2 }
671
671
  else
672
672
  {}
673
673
  end
@@ -705,7 +705,7 @@ module Google
705
705
 
706
706
  verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
707
707
  query_string_params = if query_string_params.any?
708
- query_string_params.to_h { |p| p.split("=", 2) }
708
+ query_string_params.to_h { |p| p.split "=", 2 }
709
709
  else
710
710
  {}
711
711
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ServiceDirectory
23
23
  module V1beta1
24
- VERSION = "0.10.0"
24
+ VERSION = "0.11.1"
25
25
  end
26
26
  end
27
27
  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/servicedirectory/v1beta1/endpoint.proto
3
4
 
@@ -7,18 +8,32 @@ require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
  require 'google/protobuf/timestamp_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/cloud/servicedirectory/v1beta1/endpoint.proto", :syntax => :proto3) do
12
- add_message "google.cloud.servicedirectory.v1beta1.Endpoint" do
13
- optional :name, :string, 1
14
- optional :address, :string, 2
15
- optional :port, :int32, 3
16
- map :metadata, :string, :string, 4
17
- optional :network, :string, 5
18
- optional :create_time, :message, 6, "google.protobuf.Timestamp"
19
- optional :update_time, :message, 7, "google.protobuf.Timestamp"
11
+
12
+ descriptor_data = "\n4google/cloud/servicedirectory/v1beta1/endpoint.proto\x12%google.cloud.servicedirectory.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x94\x04\n\x08\x45ndpoint\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x14\n\x07\x61\x64\x64ress\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04port\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12T\n\x08metadata\x18\x04 \x03(\x0b\x32=.google.cloud.servicedirectory.v1beta1.Endpoint.MetadataEntryB\x03\xe0\x41\x01\x12@\n\x07network\x18\x05 \x01(\tB/\xe0\x41\x05\xfa\x41)\n\'servicedirectory.googleapis.com/Network\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x96\x01\xea\x41\x92\x01\n(servicedirectory.googleapis.com/Endpoint\x12\x66projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}/endpoints/{endpoint}B\xf5\x02\n)com.google.cloud.servicedirectory.v1beta1B\rEndpointProtoP\x01ZUcloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb;servicedirectorypb\xf8\x01\x01\xaa\x02%Google.Cloud.ServiceDirectory.V1Beta1\xca\x02%Google\\Cloud\\ServiceDirectory\\V1beta1\xea\x02(Google::Cloud::ServiceDirectory::V1beta1\xea\x41\x61\n\'servicedirectory.googleapis.com/Network\x12\x36projects/{project}/locations/global/networks/{network}b\x06proto3"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError => e
19
+ # Compatibility code: will be removed in the next major version.
20
+ require 'google/protobuf/descriptor_pb'
21
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
+ parsed.clear_dependency
23
+ serialized = parsed.class.encode(parsed)
24
+ file = pool.add_serialized_file(serialized)
25
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
+ imports = [
27
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
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}"
20
33
  end
21
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."
22
37
  end
23
38
 
24
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/servicedirectory/v1beta1/lookup_service.proto
3
4
 
@@ -9,17 +10,32 @@ require 'google/api/resource_pb'
9
10
  require 'google/cloud/servicedirectory/v1beta1/service_pb'
10
11
  require 'google/api/client_pb'
11
12
 
12
- Google::Protobuf::DescriptorPool.generated_pool.build do
13
- add_file("google/cloud/servicedirectory/v1beta1/lookup_service.proto", :syntax => :proto3) do
14
- add_message "google.cloud.servicedirectory.v1beta1.ResolveServiceRequest" do
15
- optional :name, :string, 1
16
- optional :max_endpoints, :int32, 2
17
- optional :endpoint_filter, :string, 3
18
- end
19
- add_message "google.cloud.servicedirectory.v1beta1.ResolveServiceResponse" do
20
- optional :service, :message, 1, "google.cloud.servicedirectory.v1beta1.Service"
13
+
14
+ descriptor_data = "\n:google/cloud/servicedirectory/v1beta1/lookup_service.proto\x12%google.cloud.servicedirectory.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x33google/cloud/servicedirectory/v1beta1/service.proto\x1a\x17google/api/client.proto\"\x90\x01\n\x15ResolveServiceRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'servicedirectory.googleapis.com/Service\x12\x1a\n\rmax_endpoints\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1c\n\x0f\x65ndpoint_filter\x18\x03 \x01(\tB\x03\xe0\x41\x01\"Y\n\x16ResolveServiceResponse\x12?\n\x07service\x18\x01 \x01(\x0b\x32..google.cloud.servicedirectory.v1beta1.Service2\xc7\x02\n\rLookupService\x12\xe0\x01\n\x0eResolveService\x12<.google.cloud.servicedirectory.v1beta1.ResolveServiceRequest\x1a=.google.cloud.servicedirectory.v1beta1.ResolveServiceResponse\"Q\x82\xd3\xe4\x93\x02K\"F/v1beta1/{name=projects/*/locations/*/namespaces/*/services/*}:resolve:\x01*\x1aS\xca\x41\x1fservicedirectory.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x96\x02\n)com.google.cloud.servicedirectory.v1beta1B\x12LookupServiceProtoP\x01ZUcloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb;servicedirectorypb\xf8\x01\x01\xaa\x02%Google.Cloud.ServiceDirectory.V1Beta1\xca\x02%Google\\Cloud\\ServiceDirectory\\V1beta1\xea\x02(Google::Cloud::ServiceDirectory::V1beta1b\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.cloud.servicedirectory.v1beta1.Service", "google/cloud/servicedirectory/v1beta1/service.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
21
35
  end
22
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
23
39
  end
24
40
 
25
41
  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/servicedirectory/v1beta1/namespace.proto
3
4
 
@@ -7,15 +8,32 @@ require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
  require 'google/protobuf/timestamp_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/cloud/servicedirectory/v1beta1/namespace.proto", :syntax => :proto3) do
12
- add_message "google.cloud.servicedirectory.v1beta1.Namespace" do
13
- optional :name, :string, 1
14
- map :labels, :string, :string, 2
15
- optional :create_time, :message, 4, "google.protobuf.Timestamp"
16
- optional :update_time, :message, 5, "google.protobuf.Timestamp"
11
+
12
+ descriptor_data = "\n5google/cloud/servicedirectory/v1beta1/namespace.proto\x12%google.cloud.servicedirectory.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfc\x02\n\tNamespace\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12Q\n\x06labels\x18\x02 \x03(\x0b\x32<.google.cloud.servicedirectory.v1beta1.Namespace.LabelsEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \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:n\xea\x41k\n)servicedirectory.googleapis.com/Namespace\x12>projects/{project}/locations/{location}/namespaces/{namespace}B\x92\x02\n)com.google.cloud.servicedirectory.v1beta1B\x0eNamespaceProtoP\x01ZUcloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb;servicedirectorypb\xf8\x01\x01\xaa\x02%Google.Cloud.ServiceDirectory.V1Beta1\xca\x02%Google\\Cloud\\ServiceDirectory\\V1beta1\xea\x02(Google::Cloud::ServiceDirectory::V1beta1b\x06proto3"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError => e
19
+ # Compatibility code: will be removed in the next major version.
20
+ require 'google/protobuf/descriptor_pb'
21
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
+ parsed.clear_dependency
23
+ serialized = parsed.class.encode(parsed)
24
+ file = pool.add_serialized_file(serialized)
25
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
+ imports = [
27
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
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}"
17
33
  end
18
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."
19
37
  end
20
38
 
21
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/servicedirectory/v1beta1/registration_service.proto
3
4
 
@@ -15,87 +16,35 @@ require 'google/iam/v1/policy_pb'
15
16
  require 'google/protobuf/empty_pb'
16
17
  require 'google/protobuf/field_mask_pb'
17
18
 
18
- Google::Protobuf::DescriptorPool.generated_pool.build do
19
- add_file("google/cloud/servicedirectory/v1beta1/registration_service.proto", :syntax => :proto3) do
20
- add_message "google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest" do
21
- optional :parent, :string, 1
22
- optional :namespace_id, :string, 2
23
- optional :namespace, :message, 3, "google.cloud.servicedirectory.v1beta1.Namespace"
24
- end
25
- add_message "google.cloud.servicedirectory.v1beta1.ListNamespacesRequest" do
26
- optional :parent, :string, 1
27
- optional :page_size, :int32, 2
28
- optional :page_token, :string, 3
29
- optional :filter, :string, 4
30
- optional :order_by, :string, 5
31
- end
32
- add_message "google.cloud.servicedirectory.v1beta1.ListNamespacesResponse" do
33
- repeated :namespaces, :message, 1, "google.cloud.servicedirectory.v1beta1.Namespace"
34
- optional :next_page_token, :string, 2
35
- end
36
- add_message "google.cloud.servicedirectory.v1beta1.GetNamespaceRequest" do
37
- optional :name, :string, 1
38
- end
39
- add_message "google.cloud.servicedirectory.v1beta1.UpdateNamespaceRequest" do
40
- optional :namespace, :message, 1, "google.cloud.servicedirectory.v1beta1.Namespace"
41
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
42
- end
43
- add_message "google.cloud.servicedirectory.v1beta1.DeleteNamespaceRequest" do
44
- optional :name, :string, 1
45
- end
46
- add_message "google.cloud.servicedirectory.v1beta1.CreateServiceRequest" do
47
- optional :parent, :string, 1
48
- optional :service_id, :string, 2
49
- optional :service, :message, 3, "google.cloud.servicedirectory.v1beta1.Service"
50
- end
51
- add_message "google.cloud.servicedirectory.v1beta1.ListServicesRequest" do
52
- optional :parent, :string, 1
53
- optional :page_size, :int32, 2
54
- optional :page_token, :string, 3
55
- optional :filter, :string, 4
56
- optional :order_by, :string, 5
57
- end
58
- add_message "google.cloud.servicedirectory.v1beta1.ListServicesResponse" do
59
- repeated :services, :message, 1, "google.cloud.servicedirectory.v1beta1.Service"
60
- optional :next_page_token, :string, 2
61
- end
62
- add_message "google.cloud.servicedirectory.v1beta1.GetServiceRequest" do
63
- optional :name, :string, 1
64
- end
65
- add_message "google.cloud.servicedirectory.v1beta1.UpdateServiceRequest" do
66
- optional :service, :message, 1, "google.cloud.servicedirectory.v1beta1.Service"
67
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
68
- end
69
- add_message "google.cloud.servicedirectory.v1beta1.DeleteServiceRequest" do
70
- optional :name, :string, 1
71
- end
72
- add_message "google.cloud.servicedirectory.v1beta1.CreateEndpointRequest" do
73
- optional :parent, :string, 1
74
- optional :endpoint_id, :string, 2
75
- optional :endpoint, :message, 3, "google.cloud.servicedirectory.v1beta1.Endpoint"
76
- end
77
- add_message "google.cloud.servicedirectory.v1beta1.ListEndpointsRequest" do
78
- optional :parent, :string, 1
79
- optional :page_size, :int32, 2
80
- optional :page_token, :string, 3
81
- optional :filter, :string, 4
82
- optional :order_by, :string, 5
83
- end
84
- add_message "google.cloud.servicedirectory.v1beta1.ListEndpointsResponse" do
85
- repeated :endpoints, :message, 1, "google.cloud.servicedirectory.v1beta1.Endpoint"
86
- optional :next_page_token, :string, 2
87
- end
88
- add_message "google.cloud.servicedirectory.v1beta1.GetEndpointRequest" do
89
- optional :name, :string, 1
90
- end
91
- add_message "google.cloud.servicedirectory.v1beta1.UpdateEndpointRequest" do
92
- optional :endpoint, :message, 1, "google.cloud.servicedirectory.v1beta1.Endpoint"
93
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
94
- end
95
- add_message "google.cloud.servicedirectory.v1beta1.DeleteEndpointRequest" do
96
- optional :name, :string, 1
19
+
20
+ descriptor_data = "\n@google/cloud/servicedirectory/v1beta1/registration_service.proto\x12%google.cloud.servicedirectory.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x34google/cloud/servicedirectory/v1beta1/endpoint.proto\x1a\x35google/cloud/servicedirectory/v1beta1/namespace.proto\x1a\x33google/cloud/servicedirectory/v1beta1/service.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xb8\x01\n\x16\x43reateNamespaceRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x19\n\x0cnamespace_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12H\n\tnamespace\x18\x03 \x01(\x0b\x32\x30.google.cloud.servicedirectory.v1beta1.NamespaceB\x03\xe0\x41\x02\"\xaf\x01\n\x15ListNamespacesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\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\"w\n\x16ListNamespacesResponse\x12\x44\n\nnamespaces\x18\x01 \x03(\x0b\x32\x30.google.cloud.servicedirectory.v1beta1.Namespace\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"V\n\x13GetNamespaceRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)servicedirectory.googleapis.com/Namespace\"\x98\x01\n\x16UpdateNamespaceRequest\x12H\n\tnamespace\x18\x01 \x01(\x0b\x32\x30.google.cloud.servicedirectory.v1beta1.NamespaceB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"Y\n\x16\x44\x65leteNamespaceRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)servicedirectory.googleapis.com/Namespace\"\xb8\x01\n\x14\x43reateServiceRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)servicedirectory.googleapis.com/Namespace\x12\x17\n\nservice_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\x07service\x18\x03 \x01(\x0b\x32..google.cloud.servicedirectory.v1beta1.ServiceB\x03\xe0\x41\x02\"\xb5\x01\n\x13ListServicesRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)servicedirectory.googleapis.com/Namespace\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\x14ListServicesResponse\x12@\n\x08services\x18\x01 \x03(\x0b\x32..google.cloud.servicedirectory.v1beta1.Service\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"R\n\x11GetServiceRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'servicedirectory.googleapis.com/Service\"\x92\x01\n\x14UpdateServiceRequest\x12\x44\n\x07service\x18\x01 \x01(\x0b\x32..google.cloud.servicedirectory.v1beta1.ServiceB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"U\n\x14\x44\x65leteServiceRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'servicedirectory.googleapis.com/Service\"\xba\x01\n\x15\x43reateEndpointRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'servicedirectory.googleapis.com/Service\x12\x18\n\x0b\x65ndpoint_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x46\n\x08\x65ndpoint\x18\x03 \x01(\x0b\x32/.google.cloud.servicedirectory.v1beta1.EndpointB\x03\xe0\x41\x02\"\xb4\x01\n\x14ListEndpointsRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'servicedirectory.googleapis.com/Service\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\"t\n\x15ListEndpointsResponse\x12\x42\n\tendpoints\x18\x01 \x03(\x0b\x32/.google.cloud.servicedirectory.v1beta1.Endpoint\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"T\n\x12GetEndpointRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(servicedirectory.googleapis.com/Endpoint\"\x95\x01\n\x15UpdateEndpointRequest\x12\x46\n\x08\x65ndpoint\x18\x01 \x01(\x0b\x32/.google.cloud.servicedirectory.v1beta1.EndpointB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"W\n\x15\x44\x65leteEndpointRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(servicedirectory.googleapis.com/Endpoint2\xcf \n\x13RegistrationService\x12\xea\x01\n\x0f\x43reateNamespace\x12=.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest\x1a\x30.google.cloud.servicedirectory.v1beta1.Namespace\"f\x82\xd3\xe4\x93\x02@\"3/v1beta1/{parent=projects/*/locations/*}/namespaces:\tnamespace\xda\x41\x1dparent,namespace,namespace_id\x12\xd3\x01\n\x0eListNamespaces\x12<.google.cloud.servicedirectory.v1beta1.ListNamespacesRequest\x1a=.google.cloud.servicedirectory.v1beta1.ListNamespacesResponse\"D\x82\xd3\xe4\x93\x02\x35\x12\x33/v1beta1/{parent=projects/*/locations/*}/namespaces\xda\x41\x06parent\x12\xc0\x01\n\x0cGetNamespace\x12:.google.cloud.servicedirectory.v1beta1.GetNamespaceRequest\x1a\x30.google.cloud.servicedirectory.v1beta1.Namespace\"B\x82\xd3\xe4\x93\x02\x35\x12\x33/v1beta1/{name=projects/*/locations/*/namespaces/*}\xda\x41\x04name\x12\xec\x01\n\x0fUpdateNamespace\x12=.google.cloud.servicedirectory.v1beta1.UpdateNamespaceRequest\x1a\x30.google.cloud.servicedirectory.v1beta1.Namespace\"h\x82\xd3\xe4\x93\x02J2=/v1beta1/{namespace.name=projects/*/locations/*/namespaces/*}:\tnamespace\xda\x41\x15namespace,update_mask\x12\xac\x01\n\x0f\x44\x65leteNamespace\x12=.google.cloud.servicedirectory.v1beta1.DeleteNamespaceRequest\x1a\x16.google.protobuf.Empty\"B\x82\xd3\xe4\x93\x02\x35*3/v1beta1/{name=projects/*/locations/*/namespaces/*}\xda\x41\x04name\x12\xe9\x01\n\rCreateService\x12;.google.cloud.servicedirectory.v1beta1.CreateServiceRequest\x1a..google.cloud.servicedirectory.v1beta1.Service\"k\x82\xd3\xe4\x93\x02I\">/v1beta1/{parent=projects/*/locations/*/namespaces/*}/services:\x07service\xda\x41\x19parent,service,service_id\x12\xd8\x01\n\x0cListServices\x12:.google.cloud.servicedirectory.v1beta1.ListServicesRequest\x1a;.google.cloud.servicedirectory.v1beta1.ListServicesResponse\"O\x82\xd3\xe4\x93\x02@\x12>/v1beta1/{parent=projects/*/locations/*/namespaces/*}/services\xda\x41\x06parent\x12\xc5\x01\n\nGetService\x12\x38.google.cloud.servicedirectory.v1beta1.GetServiceRequest\x1a..google.cloud.servicedirectory.v1beta1.Service\"M\x82\xd3\xe4\x93\x02@\x12>/v1beta1/{name=projects/*/locations/*/namespaces/*/services/*}\xda\x41\x04name\x12\xeb\x01\n\rUpdateService\x12;.google.cloud.servicedirectory.v1beta1.UpdateServiceRequest\x1a..google.cloud.servicedirectory.v1beta1.Service\"m\x82\xd3\xe4\x93\x02Q2F/v1beta1/{service.name=projects/*/locations/*/namespaces/*/services/*}:\x07service\xda\x41\x13service,update_mask\x12\xb3\x01\n\rDeleteService\x12;.google.cloud.servicedirectory.v1beta1.DeleteServiceRequest\x1a\x16.google.protobuf.Empty\"M\x82\xd3\xe4\x93\x02@*>/v1beta1/{name=projects/*/locations/*/namespaces/*/services/*}\xda\x41\x04name\x12\xfb\x01\n\x0e\x43reateEndpoint\x12<.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest\x1a/.google.cloud.servicedirectory.v1beta1.Endpoint\"z\x82\xd3\xe4\x93\x02V\"J/v1beta1/{parent=projects/*/locations/*/namespaces/*/services/*}/endpoints:\x08\x65ndpoint\xda\x41\x1bparent,endpoint,endpoint_id\x12\xe7\x01\n\rListEndpoints\x12;.google.cloud.servicedirectory.v1beta1.ListEndpointsRequest\x1a<.google.cloud.servicedirectory.v1beta1.ListEndpointsResponse\"[\x82\xd3\xe4\x93\x02L\x12J/v1beta1/{parent=projects/*/locations/*/namespaces/*/services/*}/endpoints\xda\x41\x06parent\x12\xd4\x01\n\x0bGetEndpoint\x12\x39.google.cloud.servicedirectory.v1beta1.GetEndpointRequest\x1a/.google.cloud.servicedirectory.v1beta1.Endpoint\"Y\x82\xd3\xe4\x93\x02L\x12J/v1beta1/{name=projects/*/locations/*/namespaces/*/services/*/endpoints/*}\xda\x41\x04name\x12\xfd\x01\n\x0eUpdateEndpoint\x12<.google.cloud.servicedirectory.v1beta1.UpdateEndpointRequest\x1a/.google.cloud.servicedirectory.v1beta1.Endpoint\"|\x82\xd3\xe4\x93\x02_2S/v1beta1/{endpoint.name=projects/*/locations/*/namespaces/*/services/*/endpoints/*}:\x08\x65ndpoint\xda\x41\x14\x65ndpoint,update_mask\x12\xc1\x01\n\x0e\x44\x65leteEndpoint\x12<.google.cloud.servicedirectory.v1beta1.DeleteEndpointRequest\x1a\x16.google.protobuf.Empty\"Y\x82\xd3\xe4\x93\x02L*J/v1beta1/{name=projects/*/locations/*/namespaces/*/services/*/endpoints/*}\xda\x41\x04name\x12\xf2\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xa6\x01\x82\xd3\xe4\x93\x02\x9f\x01\"D/v1beta1/{resource=projects/*/locations/*/namespaces/*}:getIamPolicy:\x01*ZT\"O/v1beta1/{resource=projects/*/locations/*/namespaces/*/services/*}:getIamPolicy:\x01*\x12\xf2\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xa6\x01\x82\xd3\xe4\x93\x02\x9f\x01\"D/v1beta1/{resource=projects/*/locations/*/namespaces/*}:setIamPolicy:\x01*ZT\"O/v1beta1/{resource=projects/*/locations/*/namespaces/*/services/*}:setIamPolicy:\x01*\x12\x9e\x02\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"\xb2\x01\x82\xd3\xe4\x93\x02\xab\x01\"J/v1beta1/{resource=projects/*/locations/*/namespaces/*}:testIamPermissions:\x01*ZZ\"U/v1beta1/{resource=projects/*/locations/*/namespaces/*/services/*}:testIamPermissions:\x01*\x1aS\xca\x41\x1fservicedirectory.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x9c\x02\n)com.google.cloud.servicedirectory.v1beta1B\x18RegistrationServiceProtoP\x01ZUcloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb;servicedirectorypb\xf8\x01\x01\xaa\x02%Google.Cloud.ServiceDirectory.V1Beta1\xca\x02%Google\\Cloud\\ServiceDirectory\\V1beta1\xea\x02(Google::Cloud::ServiceDirectory::V1beta1b\x06proto3"
21
+
22
+ pool = Google::Protobuf::DescriptorPool.generated_pool
23
+
24
+ begin
25
+ pool.add_serialized_file(descriptor_data)
26
+ rescue TypeError => e
27
+ # Compatibility code: will be removed in the next major version.
28
+ require 'google/protobuf/descriptor_pb'
29
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
30
+ parsed.clear_dependency
31
+ serialized = parsed.class.encode(parsed)
32
+ file = pool.add_serialized_file(serialized)
33
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
34
+ imports = [
35
+ ["google.cloud.servicedirectory.v1beta1.Namespace", "google/cloud/servicedirectory/v1beta1/namespace.proto"],
36
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
37
+ ["google.cloud.servicedirectory.v1beta1.Service", "google/cloud/servicedirectory/v1beta1/service.proto"],
38
+ ["google.cloud.servicedirectory.v1beta1.Endpoint", "google/cloud/servicedirectory/v1beta1/endpoint.proto"],
39
+ ]
40
+ imports.each do |type_name, expected_filename|
41
+ import_file = pool.lookup(type_name).file_descriptor
42
+ if import_file.name != expected_filename
43
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
97
44
  end
98
45
  end
46
+ warn "Each proto file must use a consistent fully-qualified name."
47
+ warn "This will become an error in the next major version."
99
48
  end
100
49
 
101
50
  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/servicedirectory/v1beta1/service.proto
3
4
 
@@ -8,16 +9,33 @@ require 'google/api/resource_pb'
8
9
  require 'google/cloud/servicedirectory/v1beta1/endpoint_pb'
9
10
  require 'google/protobuf/timestamp_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/cloud/servicedirectory/v1beta1/service.proto", :syntax => :proto3) do
13
- add_message "google.cloud.servicedirectory.v1beta1.Service" do
14
- optional :name, :string, 1
15
- map :metadata, :string, :string, 2
16
- repeated :endpoints, :message, 3, "google.cloud.servicedirectory.v1beta1.Endpoint"
17
- optional :create_time, :message, 6, "google.protobuf.Timestamp"
18
- optional :update_time, :message, 7, "google.protobuf.Timestamp"
12
+
13
+ descriptor_data = "\n3google/cloud/servicedirectory/v1beta1/service.proto\x12%google.cloud.servicedirectory.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x34google/cloud/servicedirectory/v1beta1/endpoint.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd8\x03\n\x07Service\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12S\n\x08metadata\x18\x02 \x03(\x0b\x32<.google.cloud.servicedirectory.v1beta1.Service.MetadataEntryB\x03\xe0\x41\x01\x12G\n\tendpoints\x18\x03 \x03(\x0b\x32/.google.cloud.servicedirectory.v1beta1.EndpointB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x7f\xea\x41|\n\'servicedirectory.googleapis.com/Service\x12Qprojects/{project}/locations/{location}/namespaces/{namespace}/services/{service}B\x90\x02\n)com.google.cloud.servicedirectory.v1beta1B\x0cServiceProtoP\x01ZUcloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb;servicedirectorypb\xf8\x01\x01\xaa\x02%Google.Cloud.ServiceDirectory.V1Beta1\xca\x02%Google\\Cloud\\ServiceDirectory\\V1beta1\xea\x02(Google::Cloud::ServiceDirectory::V1beta1b\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
+ ["google.cloud.servicedirectory.v1beta1.Endpoint", "google/cloud/servicedirectory/v1beta1/endpoint.proto"],
29
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
19
35
  end
20
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
21
39
  end
22
40
 
23
41
  module Google
@@ -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?
@@ -35,7 +35,8 @@ module Google
35
35
  # only if the expression evaluates to `true`. A condition can add constraints
36
36
  # based on attributes of the request, the resource, or both. To learn which
37
37
  # resources support conditions in their IAM policies, see the
38
- # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
38
+ # [IAM
39
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
39
40
  #
40
41
  # **JSON example:**
41
42
  #
@@ -58,7 +59,8 @@ module Google
58
59
  # "condition": {
59
60
  # "title": "expirable access",
60
61
  # "description": "Does not grant access after Sep 2020",
61
- # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')",
62
+ # "expression": "request.time <
63
+ # timestamp('2020-10-01T00:00:00.000Z')",
62
64
  # }
63
65
  # }
64
66
  # ],
@@ -112,7 +114,8 @@ module Google
112
114
  # specify any valid version or leave the field unset.
113
115
  #
114
116
  # To learn which resources support conditions in their IAM policies, see the
115
- # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
117
+ # [IAM
118
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
116
119
  # @!attribute [rw] bindings
117
120
  # @return [::Array<::Google::Iam::V1::Binding>]
118
121
  # Associates a list of `members`, or principals, with a `role`. Optionally,
@@ -305,7 +308,8 @@ module Google
305
308
  # @return [::Array<::String>]
306
309
  # Specifies the identities that do not cause logging for this type of
307
310
  # permission.
308
- # Follows the same format of {::Google::Iam::V1::Binding#members Binding.members}.
311
+ # Follows the same format of
312
+ # {::Google::Iam::V1::Binding#members Binding.members}.
309
313
  class AuditLogConfig
310
314
  include ::Google::Protobuf::MessageExts
311
315
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -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]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-service_directory-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-08 00:00:00.000000000 Z
11
+ date: 2023-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.0
19
+ version: 0.19.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.18.0
29
+ version: 0.19.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a