google-cloud-location_finder-v1 0.a → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,264 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/locationfinder/v1/service_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module LocationFinder
24
+ module V1
25
+ module CloudLocationFinder
26
+ module Rest
27
+ ##
28
+ # REST service stub for the CloudLocationFinder service.
29
+ # Service stub contains baseline method implementations
30
+ # including transcoding, making the REST call, and deserialing the response.
31
+ #
32
+ class ServiceStub
33
+ # @private
34
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
35
+ # These require statements are intentionally placed here to initialize
36
+ # the REST modules only when it's required.
37
+ require "gapic/rest"
38
+
39
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
40
+ endpoint_template: endpoint_template,
41
+ universe_domain: universe_domain,
42
+ credentials: credentials,
43
+ numeric_enums: true,
44
+ service_name: self.class,
45
+ raise_faraday_errors: false,
46
+ logger: logger
47
+ end
48
+
49
+ ##
50
+ # The effective universe domain
51
+ #
52
+ # @return [String]
53
+ #
54
+ def universe_domain
55
+ @client_stub.universe_domain
56
+ end
57
+
58
+ ##
59
+ # The effective endpoint
60
+ #
61
+ # @return [String]
62
+ #
63
+ def endpoint
64
+ @client_stub.endpoint
65
+ end
66
+
67
+ ##
68
+ # The logger used for request/response debug logging.
69
+ #
70
+ # @return [Logger]
71
+ #
72
+ def logger stub: false
73
+ stub ? @client_stub.stub_logger : @client_stub.logger
74
+ end
75
+
76
+ ##
77
+ # Baseline implementation for the list_cloud_locations REST call
78
+ #
79
+ # @param request_pb [::Google::Cloud::LocationFinder::V1::ListCloudLocationsRequest]
80
+ # A request object representing the call parameters. Required.
81
+ # @param options [::Gapic::CallOptions]
82
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
83
+ #
84
+ # @yield [result, operation] Access the result along with the TransportOperation object
85
+ # @yieldparam result [::Google::Cloud::LocationFinder::V1::ListCloudLocationsResponse]
86
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
87
+ #
88
+ # @return [::Google::Cloud::LocationFinder::V1::ListCloudLocationsResponse]
89
+ # A result object deserialized from the server's reply
90
+ def list_cloud_locations request_pb, options = nil
91
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
92
+
93
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_cloud_locations_request request_pb
94
+ query_string_params = if query_string_params.any?
95
+ query_string_params.to_h { |p| p.split "=", 2 }
96
+ else
97
+ {}
98
+ end
99
+
100
+ response = @client_stub.make_http_request(
101
+ verb,
102
+ uri: uri,
103
+ body: body || "",
104
+ params: query_string_params,
105
+ method_name: "list_cloud_locations",
106
+ options: options
107
+ )
108
+ operation = ::Gapic::Rest::TransportOperation.new response
109
+ result = ::Google::Cloud::LocationFinder::V1::ListCloudLocationsResponse.decode_json response.body, ignore_unknown_fields: true
110
+ catch :response do
111
+ yield result, operation if block_given?
112
+ result
113
+ end
114
+ end
115
+
116
+ ##
117
+ # Baseline implementation for the get_cloud_location REST call
118
+ #
119
+ # @param request_pb [::Google::Cloud::LocationFinder::V1::GetCloudLocationRequest]
120
+ # A request object representing the call parameters. Required.
121
+ # @param options [::Gapic::CallOptions]
122
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
123
+ #
124
+ # @yield [result, operation] Access the result along with the TransportOperation object
125
+ # @yieldparam result [::Google::Cloud::LocationFinder::V1::CloudLocation]
126
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
127
+ #
128
+ # @return [::Google::Cloud::LocationFinder::V1::CloudLocation]
129
+ # A result object deserialized from the server's reply
130
+ def get_cloud_location request_pb, options = nil
131
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
132
+
133
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_cloud_location_request request_pb
134
+ query_string_params = if query_string_params.any?
135
+ query_string_params.to_h { |p| p.split "=", 2 }
136
+ else
137
+ {}
138
+ end
139
+
140
+ response = @client_stub.make_http_request(
141
+ verb,
142
+ uri: uri,
143
+ body: body || "",
144
+ params: query_string_params,
145
+ method_name: "get_cloud_location",
146
+ options: options
147
+ )
148
+ operation = ::Gapic::Rest::TransportOperation.new response
149
+ result = ::Google::Cloud::LocationFinder::V1::CloudLocation.decode_json response.body, ignore_unknown_fields: true
150
+ catch :response do
151
+ yield result, operation if block_given?
152
+ result
153
+ end
154
+ end
155
+
156
+ ##
157
+ # Baseline implementation for the search_cloud_locations REST call
158
+ #
159
+ # @param request_pb [::Google::Cloud::LocationFinder::V1::SearchCloudLocationsRequest]
160
+ # A request object representing the call parameters. Required.
161
+ # @param options [::Gapic::CallOptions]
162
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
163
+ #
164
+ # @yield [result, operation] Access the result along with the TransportOperation object
165
+ # @yieldparam result [::Google::Cloud::LocationFinder::V1::SearchCloudLocationsResponse]
166
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
167
+ #
168
+ # @return [::Google::Cloud::LocationFinder::V1::SearchCloudLocationsResponse]
169
+ # A result object deserialized from the server's reply
170
+ def search_cloud_locations request_pb, options = nil
171
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
172
+
173
+ verb, uri, query_string_params, body = ServiceStub.transcode_search_cloud_locations_request request_pb
174
+ query_string_params = if query_string_params.any?
175
+ query_string_params.to_h { |p| p.split "=", 2 }
176
+ else
177
+ {}
178
+ end
179
+
180
+ response = @client_stub.make_http_request(
181
+ verb,
182
+ uri: uri,
183
+ body: body || "",
184
+ params: query_string_params,
185
+ method_name: "search_cloud_locations",
186
+ options: options
187
+ )
188
+ operation = ::Gapic::Rest::TransportOperation.new response
189
+ result = ::Google::Cloud::LocationFinder::V1::SearchCloudLocationsResponse.decode_json response.body, ignore_unknown_fields: true
190
+ catch :response do
191
+ yield result, operation if block_given?
192
+ result
193
+ end
194
+ end
195
+
196
+ ##
197
+ # @private
198
+ #
199
+ # GRPC transcoding helper method for the list_cloud_locations REST call
200
+ #
201
+ # @param request_pb [::Google::Cloud::LocationFinder::V1::ListCloudLocationsRequest]
202
+ # A request object representing the call parameters. Required.
203
+ # @return [Array(String, [String, nil], Hash{String => String})]
204
+ # Uri, Body, Query string parameters
205
+ def self.transcode_list_cloud_locations_request request_pb
206
+ transcoder = Gapic::Rest::GrpcTranscoder.new
207
+ .with_bindings(
208
+ uri_method: :get,
209
+ uri_template: "/v1/{parent}/cloudLocations",
210
+ matches: [
211
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
212
+ ]
213
+ )
214
+ transcoder.transcode request_pb
215
+ end
216
+
217
+ ##
218
+ # @private
219
+ #
220
+ # GRPC transcoding helper method for the get_cloud_location REST call
221
+ #
222
+ # @param request_pb [::Google::Cloud::LocationFinder::V1::GetCloudLocationRequest]
223
+ # A request object representing the call parameters. Required.
224
+ # @return [Array(String, [String, nil], Hash{String => String})]
225
+ # Uri, Body, Query string parameters
226
+ def self.transcode_get_cloud_location_request request_pb
227
+ transcoder = Gapic::Rest::GrpcTranscoder.new
228
+ .with_bindings(
229
+ uri_method: :get,
230
+ uri_template: "/v1/{name}",
231
+ matches: [
232
+ ["name", %r{^projects/[^/]+/locations/[^/]+/cloudLocations/[^/]+/?$}, false]
233
+ ]
234
+ )
235
+ transcoder.transcode request_pb
236
+ end
237
+
238
+ ##
239
+ # @private
240
+ #
241
+ # GRPC transcoding helper method for the search_cloud_locations REST call
242
+ #
243
+ # @param request_pb [::Google::Cloud::LocationFinder::V1::SearchCloudLocationsRequest]
244
+ # A request object representing the call parameters. Required.
245
+ # @return [Array(String, [String, nil], Hash{String => String})]
246
+ # Uri, Body, Query string parameters
247
+ def self.transcode_search_cloud_locations_request request_pb
248
+ transcoder = Gapic::Rest::GrpcTranscoder.new
249
+ .with_bindings(
250
+ uri_method: :get,
251
+ uri_template: "/v1/{parent}/cloudLocations:search",
252
+ matches: [
253
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
254
+ ]
255
+ )
256
+ transcoder.transcode request_pb
257
+ end
258
+ end
259
+ end
260
+ end
261
+ end
262
+ end
263
+ end
264
+ end
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/location_finder/v1/version"
24
+ require "google/cloud/location_finder/v1/bindings_override"
25
+
26
+ require "google/cloud/location_finder/v1/cloud_location_finder/credentials"
27
+ require "google/cloud/location_finder/v1/cloud_location_finder/paths"
28
+ require "google/cloud/location_finder/v1/cloud_location_finder/rest/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module LocationFinder
33
+ module V1
34
+ ##
35
+ # Service describing handlers for resources
36
+ #
37
+ # To load this service and instantiate a REST client:
38
+ #
39
+ # require "google/cloud/location_finder/v1/cloud_location_finder/rest"
40
+ # client = ::Google::Cloud::LocationFinder::V1::CloudLocationFinder::Rest::Client.new
41
+ #
42
+ module CloudLocationFinder
43
+ # Client for the REST transport
44
+ module Rest
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+
52
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
53
+ require "google/cloud/location_finder/v1/cloud_location_finder/rest/helpers" if ::File.file? helper_path
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/location_finder/v1/version"
24
+
25
+ require "google/cloud/location_finder/v1/cloud_location_finder/credentials"
26
+ require "google/cloud/location_finder/v1/cloud_location_finder/paths"
27
+ require "google/cloud/location_finder/v1/cloud_location_finder/client"
28
+ require "google/cloud/location_finder/v1/cloud_location_finder/rest"
29
+
30
+ module Google
31
+ module Cloud
32
+ module LocationFinder
33
+ module V1
34
+ ##
35
+ # Service describing handlers for resources
36
+ #
37
+ # @example Load this service and instantiate a gRPC client
38
+ #
39
+ # require "google/cloud/location_finder/v1/cloud_location_finder"
40
+ # client = ::Google::Cloud::LocationFinder::V1::CloudLocationFinder::Client.new
41
+ #
42
+ # @example Load this service and instantiate a REST client
43
+ #
44
+ # require "google/cloud/location_finder/v1/cloud_location_finder/rest"
45
+ # client = ::Google::Cloud::LocationFinder::V1::CloudLocationFinder::Rest::Client.new
46
+ #
47
+ module CloudLocationFinder
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+
54
+ helper_path = ::File.join __dir__, "cloud_location_finder", "helpers.rb"
55
+ require "google/cloud/location_finder/v1/cloud_location_finder/helpers" if ::File.file? helper_path
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/location_finder/v1/cloud_location_finder/rest"
20
+ require "google/cloud/location_finder/v1/bindings_override"
21
+ require "google/cloud/location_finder/v1/version"
22
+
23
+ module Google
24
+ module Cloud
25
+ module LocationFinder
26
+ ##
27
+ # To load just the REST part of this package, including all its services, and instantiate a REST client:
28
+ #
29
+ # @example
30
+ #
31
+ # require "google/cloud/location_finder/v1/rest"
32
+ # client = ::Google::Cloud::LocationFinder::V1::CloudLocationFinder::Rest::Client.new
33
+ #
34
+ module V1
35
+ end
36
+ end
37
+ end
38
+ end
@@ -1,10 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright 2025 Google LLC
2
4
  #
3
5
  # Licensed under the Apache License, Version 2.0 (the "License");
4
6
  # you may not use this file except in compliance with the License.
5
7
  # You may obtain a copy of the License at
6
8
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # https://www.apache.org/licenses/LICENSE-2.0
8
10
  #
9
11
  # Unless required by applicable law or agreed to in writing, software
10
12
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -12,11 +14,14 @@
12
14
  # See the License for the specific language governing permissions and
13
15
  # limitations under the License.
14
16
 
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
15
20
  module Google
16
21
  module Cloud
17
22
  module LocationFinder
18
23
  module V1
19
- VERSION = "0.a"
24
+ VERSION = "0.1.0"
20
25
  end
21
26
  end
22
27
  end
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/location_finder/v1/cloud_location_finder"
20
+ require "google/cloud/location_finder/v1/version"
21
+
22
+ module Google
23
+ module Cloud
24
+ module LocationFinder
25
+ ##
26
+ # API client module.
27
+ #
28
+ # @example Load this package, including all its services, and instantiate a gRPC client
29
+ #
30
+ # require "google/cloud/location_finder/v1"
31
+ # client = ::Google::Cloud::LocationFinder::V1::CloudLocationFinder::Client.new
32
+ #
33
+ # @example Load this package, including all its services, and instantiate a REST client
34
+ #
35
+ # require "google/cloud/location_finder/v1"
36
+ # client = ::Google::Cloud::LocationFinder::V1::CloudLocationFinder::Rest::Client.new
37
+ #
38
+ module V1
39
+ end
40
+ end
41
+ end
42
+ end
43
+
44
+ helper_path = ::File.join __dir__, "v1", "_helpers.rb"
45
+ require "google/cloud/location_finder/v1/_helpers" if ::File.file? helper_path
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/locationfinder/v1/cloud_location.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/resource_pb'
9
+
10
+
11
+ descriptor_data = "\n3google/cloud/locationfinder/v1/cloud_location.proto\x12\x1egoogle.cloud.locationfinder.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc2\x07\n\rCloudLocation\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12[\n\x19\x63ontaining_cloud_location\x18\x02 \x01(\tB8\xe0\x41\x03\xfa\x41\x32\n0cloudlocationfinder.googleapis.com/CloudLocation\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12X\n\x0e\x63loud_provider\x18\x04 \x01(\x0e\x32;.google.cloud.locationfinder.v1.CloudLocation.CloudProviderB\x03\xe0\x41\x01\x12\x1b\n\x0eterritory_code\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x61\n\x13\x63loud_location_type\x18\x06 \x01(\x0e\x32?.google.cloud.locationfinder.v1.CloudLocation.CloudLocationTypeB\x03\xe0\x41\x01\x12/\n\x1d\x63\x61rbon_free_energy_percentage\x18\x07 \x01(\x02\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\"\x91\x01\n\rCloudProvider\x12\x1e\n\x1a\x43LOUD_PROVIDER_UNSPECIFIED\x10\x00\x12\x16\n\x12\x43LOUD_PROVIDER_GCP\x10\x01\x12\x16\n\x12\x43LOUD_PROVIDER_AWS\x10\x02\x12\x18\n\x14\x43LOUD_PROVIDER_AZURE\x10\x03\x12\x16\n\x12\x43LOUD_PROVIDER_OCI\x10\x04\"\xc3\x01\n\x11\x43loudLocationType\x12#\n\x1f\x43LOUD_LOCATION_TYPE_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x43LOUD_LOCATION_TYPE_REGION\x10\x01\x12\x1c\n\x18\x43LOUD_LOCATION_TYPE_ZONE\x10\x02\x12(\n$CLOUD_LOCATION_TYPE_REGION_EXTENSION\x10\x03\x12!\n\x1d\x43LOUD_LOCATION_TYPE_GDCC_ZONE\x10\x04:\x9e\x01\xea\x41\x9a\x01\n0cloudlocationfinder.googleapis.com/CloudLocation\x12Gprojects/{project}/locations/{location}/cloudLocations/{cloud_location}*\x0e\x63loudLocations2\rcloudLocationB \n\x1e_carbon_free_energy_percentage\"\xab\x01\n\x19ListCloudLocationsRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30\x63loudlocationfinder.googleapis.com/CloudLocation\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\"\x87\x01\n\x1aListCloudLocationsResponse\x12K\n\x0f\x63loud_locations\x18\x01 \x03(\x0b\x32-.google.cloud.locationfinder.v1.CloudLocationB\x03\xe0\x41\x03\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x03\"a\n\x17GetCloudLocationRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0cloudlocationfinder.googleapis.com/CloudLocation\"\x85\x02\n\x1bSearchCloudLocationsRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30\x63loudlocationfinder.googleapis.com/CloudLocation\x12W\n\x15source_cloud_location\x18\x02 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0cloudlocationfinder.googleapis.com/CloudLocation\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05query\x18\x06 \x01(\tB\x03\xe0\x41\x01\"\x89\x01\n\x1cSearchCloudLocationsResponse\x12K\n\x0f\x63loud_locations\x18\x01 \x03(\x0b\x32-.google.cloud.locationfinder.v1.CloudLocationB\x03\xe0\x41\x03\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x03\x42\xec\x01\n\"com.google.cloud.locationfinder.v1B\x12\x43loudLocationProtoP\x01ZJcloud.google.com/go/locationfinder/apiv1/locationfinderpb;locationfinderpb\xaa\x02\x1eGoogle.Cloud.LocationFinder.V1\xca\x02\x1eGoogle\\Cloud\\LocationFinder\\V1\xea\x02!Google::Cloud::LocationFinder::V1b\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
31
+ end
32
+ end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
35
+ end
36
+
37
+ module Google
38
+ module Cloud
39
+ module LocationFinder
40
+ module V1
41
+ CloudLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.locationfinder.v1.CloudLocation").msgclass
42
+ CloudLocation::CloudProvider = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.locationfinder.v1.CloudLocation.CloudProvider").enummodule
43
+ CloudLocation::CloudLocationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.locationfinder.v1.CloudLocation.CloudLocationType").enummodule
44
+ ListCloudLocationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.locationfinder.v1.ListCloudLocationsRequest").msgclass
45
+ ListCloudLocationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.locationfinder.v1.ListCloudLocationsResponse").msgclass
46
+ GetCloudLocationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.locationfinder.v1.GetCloudLocationRequest").msgclass
47
+ SearchCloudLocationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.locationfinder.v1.SearchCloudLocationsRequest").msgclass
48
+ SearchCloudLocationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.locationfinder.v1.SearchCloudLocationsResponse").msgclass
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/locationfinder/v1/service.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/cloud/locationfinder/v1/cloud_location_pb'
10
+
11
+
12
+ descriptor_data = "\n,google/cloud/locationfinder/v1/service.proto\x12\x1egoogle.cloud.locationfinder.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x33google/cloud/locationfinder/v1/cloud_location.proto2\xfc\x05\n\x13\x43loudLocationFinder\x12\xd0\x01\n\x12ListCloudLocations\x12\x39.google.cloud.locationfinder.v1.ListCloudLocationsRequest\x1a:.google.cloud.locationfinder.v1.ListCloudLocationsResponse\"C\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{parent=projects/*/locations/*}/cloudLocations\x12\xbd\x01\n\x10GetCloudLocation\x12\x37.google.cloud.locationfinder.v1.GetCloudLocationRequest\x1a-.google.cloud.locationfinder.v1.CloudLocation\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{name=projects/*/locations/*/cloudLocations/*}\x12\xf9\x01\n\x14SearchCloudLocations\x12;.google.cloud.locationfinder.v1.SearchCloudLocationsRequest\x1a<.google.cloud.locationfinder.v1.SearchCloudLocationsResponse\"f\xda\x41\"parent,source_cloud_location,query\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/locations/*}/cloudLocations:search\x1aV\xca\x41\"cloudlocationfinder.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xe6\x01\n\"com.google.cloud.locationfinder.v1B\x0cServiceProtoP\x01ZJcloud.google.com/go/locationfinder/apiv1/locationfinderpb;locationfinderpb\xaa\x02\x1eGoogle.Cloud.LocationFinder.V1\xca\x02\x1eGoogle\\Cloud\\LocationFinder\\V1\xea\x02!Google::Cloud::LocationFinder::V1b\x06proto3"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError
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
+ ]
28
+ imports.each do |type_name, expected_filename|
29
+ import_file = pool.lookup(type_name).file_descriptor
30
+ if import_file.name != expected_filename
31
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
32
+ end
33
+ end
34
+ warn "Each proto file must use a consistent fully-qualified name."
35
+ warn "This will become an error in the next major version."
36
+ end
37
+
38
+ module Google
39
+ module Cloud
40
+ module LocationFinder
41
+ module V1
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,49 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/locationfinder/v1/service.proto for package 'Google.Cloud.LocationFinder.V1'
3
+ # Original file comments:
4
+ # Copyright 2025 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/locationfinder/v1/service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module LocationFinder
25
+ module V1
26
+ module CloudLocationFinder
27
+ # Service describing handlers for resources
28
+ class Service
29
+
30
+ include ::GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.cloud.locationfinder.v1.CloudLocationFinder'
35
+
36
+ # Lists cloud locations under a given project and location.
37
+ rpc :ListCloudLocations, ::Google::Cloud::LocationFinder::V1::ListCloudLocationsRequest, ::Google::Cloud::LocationFinder::V1::ListCloudLocationsResponse
38
+ # Retrieves a resource containing information about a cloud location.
39
+ rpc :GetCloudLocation, ::Google::Cloud::LocationFinder::V1::GetCloudLocationRequest, ::Google::Cloud::LocationFinder::V1::CloudLocation
40
+ # Searches for cloud locations from a given source location.
41
+ rpc :SearchCloudLocations, ::Google::Cloud::LocationFinder::V1::SearchCloudLocationsRequest, ::Google::Cloud::LocationFinder::V1::SearchCloudLocationsResponse
42
+ end
43
+
44
+ Stub = Service.rpc_stub_class
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ # This gem does not autoload during Bundler.require. To load this gem,
20
+ # issue explicit require statements for the packages desired, e.g.:
21
+ # require "google/cloud/location_finder/v1"
@@ -0,0 +1,4 @@
1
+ # Cloud Location Finder V1 Protocol Buffer Documentation
2
+
3
+ These files are for the YARD documentation of the generated protobuf files.
4
+ They are not intended to be required or loaded at runtime.