google-cloud-memcache-v1beta2 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,438 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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
+
20
+ module Google
21
+ module Cloud
22
+ module Memcache
23
+ module V1beta2
24
+ # @!attribute [rw] name
25
+ # @return [::String]
26
+ # Required. Unique name of the resource in this scope including project and
27
+ # location using the form:
28
+ # `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
29
+ #
30
+ # Note: Memcached instances are managed and addressed at regional level so
31
+ # location_id here refers to a GCP region; however, users may choose which
32
+ # zones Memcached nodes within an instances should be provisioned in.
33
+ # Refer to [zones] field for more details.
34
+ # @!attribute [rw] display_name
35
+ # @return [::String]
36
+ # Optional. User provided name for the instance only used for display
37
+ # purposes. Cannot be more than 80 characters.
38
+ # @!attribute [rw] labels
39
+ # @return [::Google::Protobuf::Map{::String => ::String}]
40
+ # Optional. Resource labels to represent user-provided metadata.
41
+ # Refer to cloud documentation on labels for more details.
42
+ # https://cloud.google.com/compute/docs/labeling-resources
43
+ # @!attribute [rw] authorized_network
44
+ # @return [::String]
45
+ # Optional. The full name of the Google Compute Engine
46
+ # [network](https://cloud.google.com/vpc/docs/vpc) to which the
47
+ # instance is connected. If left unspecified, the `default` network
48
+ # will be used.
49
+ # @!attribute [rw] zones
50
+ # @return [::Array<::String>]
51
+ # Optional. Zones where Memcached nodes should be provisioned in.
52
+ # Memcached nodes will be equally distributed across these zones. If not
53
+ # provided, the service will by default create nodes in all zones in the
54
+ # region for the instance.
55
+ # @!attribute [rw] node_count
56
+ # @return [::Integer]
57
+ # Required. Number of nodes in the Memcached instance.
58
+ # @!attribute [rw] node_config
59
+ # @return [::Google::Cloud::Memcache::V1beta2::Instance::NodeConfig]
60
+ # Required. Configuration for Memcached nodes.
61
+ # @!attribute [rw] memcache_version
62
+ # @return [::Google::Cloud::Memcache::V1beta2::MemcacheVersion]
63
+ # Optional. The major version of Memcached software.
64
+ # If not provided, latest supported version will be used. Currently the
65
+ # latest supported major version is MEMCACHE_1_5.
66
+ # The minor version will be automatically determined by our system based on
67
+ # the latest supported minor version.
68
+ # @!attribute [rw] parameters
69
+ # @return [::Google::Cloud::Memcache::V1beta2::MemcacheParameters]
70
+ # Optional: User defined parameters to apply to the memcached process
71
+ # on each node.
72
+ # @!attribute [r] memcache_nodes
73
+ # @return [::Array<::Google::Cloud::Memcache::V1beta2::Instance::Node>]
74
+ # Output only. List of Memcached nodes.
75
+ # Refer to [Node] message for more details.
76
+ # @!attribute [r] create_time
77
+ # @return [::Google::Protobuf::Timestamp]
78
+ # Output only. The time the instance was created.
79
+ # @!attribute [r] update_time
80
+ # @return [::Google::Protobuf::Timestamp]
81
+ # Output only. The time the instance was updated.
82
+ # @!attribute [r] state
83
+ # @return [::Google::Cloud::Memcache::V1beta2::Instance::State]
84
+ # Output only. The state of this Memcached instance.
85
+ # @!attribute [r] memcache_full_version
86
+ # @return [::String]
87
+ # Output only. The full version of memcached server running on this instance.
88
+ # System automatically determines the full memcached version for an instance
89
+ # based on the input MemcacheVersion.
90
+ # The full version format will be "memcached-1.5.16".
91
+ # @!attribute [rw] instance_messages
92
+ # @return [::Array<::Google::Cloud::Memcache::V1beta2::Instance::InstanceMessage>]
93
+ # List of messages that describe current statuses of memcached instance.
94
+ # @!attribute [r] discovery_endpoint
95
+ # @return [::String]
96
+ # Output only. Endpoint for Discovery API
97
+ class Instance
98
+ include ::Google::Protobuf::MessageExts
99
+ extend ::Google::Protobuf::MessageExts::ClassMethods
100
+
101
+ # Configuration for a Memcached Node.
102
+ # @!attribute [rw] cpu_count
103
+ # @return [::Integer]
104
+ # Required. Number of cpus per Memcached node.
105
+ # @!attribute [rw] memory_size_mb
106
+ # @return [::Integer]
107
+ # Required. Memory size in MiB for each Memcached node.
108
+ class NodeConfig
109
+ include ::Google::Protobuf::MessageExts
110
+ extend ::Google::Protobuf::MessageExts::ClassMethods
111
+ end
112
+
113
+ # @!attribute [r] node_id
114
+ # @return [::String]
115
+ # Output only. Identifier of the Memcached node. The node id does not
116
+ # include project or location like the Memcached instance name.
117
+ # @!attribute [r] zone
118
+ # @return [::String]
119
+ # Output only. Location (GCP Zone) for the Memcached node.
120
+ # @!attribute [r] state
121
+ # @return [::Google::Cloud::Memcache::V1beta2::Instance::Node::State]
122
+ # Output only. Current state of the Memcached node.
123
+ # @!attribute [r] host
124
+ # @return [::String]
125
+ # Output only. Hostname or IP address of the Memcached node used by the
126
+ # clients to connect to the Memcached server on this node.
127
+ # @!attribute [r] port
128
+ # @return [::Integer]
129
+ # Output only. The port number of the Memcached server on this node.
130
+ # @!attribute [rw] parameters
131
+ # @return [::Google::Cloud::Memcache::V1beta2::MemcacheParameters]
132
+ # User defined parameters currently applied to the node.
133
+ class Node
134
+ include ::Google::Protobuf::MessageExts
135
+ extend ::Google::Protobuf::MessageExts::ClassMethods
136
+
137
+ # Different states of a Memcached node.
138
+ # LINT.IfChange
139
+ module State
140
+ # Node state is not set.
141
+ STATE_UNSPECIFIED = 0
142
+
143
+ # Node is being created.
144
+ CREATING = 1
145
+
146
+ # Node has been created and ready to be used.
147
+ READY = 2
148
+
149
+ # Node is being deleted.
150
+ DELETING = 3
151
+
152
+ # Node is being updated.
153
+ UPDATING = 4
154
+ end
155
+ end
156
+
157
+ # @!attribute [rw] code
158
+ # @return [::Google::Cloud::Memcache::V1beta2::Instance::InstanceMessage::Code]
159
+ # A code that correspond to one type of user-facing message.
160
+ # @!attribute [rw] message
161
+ # @return [::String]
162
+ # Message on memcached instance which will be exposed to users.
163
+ class InstanceMessage
164
+ include ::Google::Protobuf::MessageExts
165
+ extend ::Google::Protobuf::MessageExts::ClassMethods
166
+
167
+ module Code
168
+ # Message Code not set.
169
+ CODE_UNSPECIFIED = 0
170
+
171
+ # Memcached nodes are distributed unevenly.
172
+ ZONE_DISTRIBUTION_UNBALANCED = 1
173
+ end
174
+ end
175
+
176
+ # @!attribute [rw] key
177
+ # @return [::String]
178
+ # @!attribute [rw] value
179
+ # @return [::String]
180
+ class LabelsEntry
181
+ include ::Google::Protobuf::MessageExts
182
+ extend ::Google::Protobuf::MessageExts::ClassMethods
183
+ end
184
+
185
+ # Different states of a Memcached instance.
186
+ # LINT.IfChange
187
+ module State
188
+ # State not set.
189
+ STATE_UNSPECIFIED = 0
190
+
191
+ # Memcached instance is being created.
192
+ CREATING = 1
193
+
194
+ # Memcached instance has been created and ready to be used.
195
+ READY = 2
196
+
197
+ # Memcached instance is being deleted.
198
+ DELETING = 4
199
+
200
+ # Memcached instance is going through maintenance, e.g. data plane rollout.
201
+ PERFORMING_MAINTENANCE = 5
202
+ end
203
+ end
204
+
205
+ # Request for {::Google::Cloud::Memcache::V1beta2::CloudMemcache::Client#list_instances ListInstances}.
206
+ # @!attribute [rw] parent
207
+ # @return [::String]
208
+ # Required. The resource name of the instance location using the form:
209
+ # `projects/{project_id}/locations/{location_id}`
210
+ # where `location_id` refers to a GCP region
211
+ # @!attribute [rw] page_size
212
+ # @return [::Integer]
213
+ # The maximum number of items to return.
214
+ #
215
+ # If not specified, a default value of 1000 will be used by the service.
216
+ # Regardless of the page_size value, the response may include a partial list
217
+ # and a caller should only rely on response's
218
+ # [next_page_token][CloudMemcache.ListInstancesResponse.next_page_token]
219
+ # to determine if there are more instances left to be queried.
220
+ # @!attribute [rw] page_token
221
+ # @return [::String]
222
+ # The next_page_token value returned from a previous List request,
223
+ # if any.
224
+ # @!attribute [rw] filter
225
+ # @return [::String]
226
+ # List filter. For example, exclude all Memcached instances with name as
227
+ # my-instance by specifying "name != my-instance".
228
+ # @!attribute [rw] order_by
229
+ # @return [::String]
230
+ # Sort results. Supported values are "name", "name desc" or "" (unsorted).
231
+ class ListInstancesRequest
232
+ include ::Google::Protobuf::MessageExts
233
+ extend ::Google::Protobuf::MessageExts::ClassMethods
234
+ end
235
+
236
+ # Response for {::Google::Cloud::Memcache::V1beta2::CloudMemcache::Client#list_instances ListInstances}.
237
+ # @!attribute [rw] resources
238
+ # @return [::Array<::Google::Cloud::Memcache::V1beta2::Instance>]
239
+ # A list of Memcached instances in the project in the specified location,
240
+ # or across all locations.
241
+ #
242
+ # If the `location_id` in the parent field of the request is "-", all regions
243
+ # available to the project are queried, and the results aggregated.
244
+ # @!attribute [rw] next_page_token
245
+ # @return [::String]
246
+ # Token to retrieve the next page of results, or empty if there are no more
247
+ # results in the list.
248
+ # @!attribute [rw] unreachable
249
+ # @return [::Array<::String>]
250
+ # Locations that could not be reached.
251
+ class ListInstancesResponse
252
+ include ::Google::Protobuf::MessageExts
253
+ extend ::Google::Protobuf::MessageExts::ClassMethods
254
+ end
255
+
256
+ # Request for {::Google::Cloud::Memcache::V1beta2::CloudMemcache::Client#get_instance GetInstance}.
257
+ # @!attribute [rw] name
258
+ # @return [::String]
259
+ # Required. Memcached instance resource name in the format:
260
+ # `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
261
+ # where `location_id` refers to a GCP region
262
+ class GetInstanceRequest
263
+ include ::Google::Protobuf::MessageExts
264
+ extend ::Google::Protobuf::MessageExts::ClassMethods
265
+ end
266
+
267
+ # Request for {::Google::Cloud::Memcache::V1beta2::CloudMemcache::Client#create_instance CreateInstance}.
268
+ # @!attribute [rw] parent
269
+ # @return [::String]
270
+ # Required. The resource name of the instance location using the form:
271
+ # `projects/{project_id}/locations/{location_id}`
272
+ # where `location_id` refers to a GCP region
273
+ # @!attribute [rw] instance_id
274
+ # @return [::String]
275
+ # Required. The logical name of the Memcached instance in the user
276
+ # project with the following restrictions:
277
+ #
278
+ # * Must contain only lowercase letters, numbers, and hyphens.
279
+ # * Must start with a letter.
280
+ # * Must be between 1-40 characters.
281
+ # * Must end with a number or a letter.
282
+ # * Must be unique within the user project / location
283
+ # @!attribute [rw] resource
284
+ # @return [::Google::Cloud::Memcache::V1beta2::Instance]
285
+ # Required. A Memcached [Instance] resource
286
+ class CreateInstanceRequest
287
+ include ::Google::Protobuf::MessageExts
288
+ extend ::Google::Protobuf::MessageExts::ClassMethods
289
+ end
290
+
291
+ # Request for {::Google::Cloud::Memcache::V1beta2::CloudMemcache::Client#update_instance UpdateInstance}.
292
+ # @!attribute [rw] update_mask
293
+ # @return [::Google::Protobuf::FieldMask]
294
+ # Required. Mask of fields to update.
295
+ # * `displayName`
296
+ # @!attribute [rw] resource
297
+ # @return [::Google::Cloud::Memcache::V1beta2::Instance]
298
+ # Required. A Memcached [Instance] resource.
299
+ # Only fields specified in update_mask are updated.
300
+ class UpdateInstanceRequest
301
+ include ::Google::Protobuf::MessageExts
302
+ extend ::Google::Protobuf::MessageExts::ClassMethods
303
+ end
304
+
305
+ # Request for {::Google::Cloud::Memcache::V1beta2::CloudMemcache::Client#delete_instance DeleteInstance}.
306
+ # @!attribute [rw] name
307
+ # @return [::String]
308
+ # Memcached instance resource name in the format:
309
+ # `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
310
+ # where `location_id` refers to a GCP region
311
+ class DeleteInstanceRequest
312
+ include ::Google::Protobuf::MessageExts
313
+ extend ::Google::Protobuf::MessageExts::ClassMethods
314
+ end
315
+
316
+ # Request for {::Google::Cloud::Memcache::V1beta2::CloudMemcache::Client#apply_parameters ApplyParameters}.
317
+ # @!attribute [rw] name
318
+ # @return [::String]
319
+ # Required. Resource name of the Memcached instance for which parameter group updates
320
+ # should be applied.
321
+ # @!attribute [rw] node_ids
322
+ # @return [::Array<::String>]
323
+ # Nodes to which we should apply the instance-level parameter group.
324
+ # @!attribute [rw] apply_all
325
+ # @return [::Boolean]
326
+ # Whether to apply instance-level parameter group to all nodes. If set to
327
+ # true, will explicitly restrict users from specifying any nodes, and apply
328
+ # parameter group updates to all nodes within the instance.
329
+ class ApplyParametersRequest
330
+ include ::Google::Protobuf::MessageExts
331
+ extend ::Google::Protobuf::MessageExts::ClassMethods
332
+ end
333
+
334
+ # Request for {::Google::Cloud::Memcache::V1beta2::CloudMemcache::Client#update_parameters UpdateParameters}.
335
+ # @!attribute [rw] name
336
+ # @return [::String]
337
+ # Required. Resource name of the Memcached instance for which the parameters should be
338
+ # updated.
339
+ # @!attribute [rw] update_mask
340
+ # @return [::Google::Protobuf::FieldMask]
341
+ # Required. Mask of fields to update.
342
+ # @!attribute [rw] parameters
343
+ # @return [::Google::Cloud::Memcache::V1beta2::MemcacheParameters]
344
+ # The parameters to apply to the instance.
345
+ class UpdateParametersRequest
346
+ include ::Google::Protobuf::MessageExts
347
+ extend ::Google::Protobuf::MessageExts::ClassMethods
348
+ end
349
+
350
+ # @!attribute [r] id
351
+ # @return [::String]
352
+ # Output only. The unique ID associated with this set of parameters. Users
353
+ # can use this id to determine if the parameters associated with the instance
354
+ # differ from the parameters associated with the nodes and any action needs
355
+ # to be taken to apply parameters on nodes.
356
+ # @!attribute [rw] params
357
+ # @return [::Google::Protobuf::Map{::String => ::String}]
358
+ # User defined set of parameters to use in the memcached process.
359
+ class MemcacheParameters
360
+ include ::Google::Protobuf::MessageExts
361
+ extend ::Google::Protobuf::MessageExts::ClassMethods
362
+
363
+ # @!attribute [rw] key
364
+ # @return [::String]
365
+ # @!attribute [rw] value
366
+ # @return [::String]
367
+ class ParamsEntry
368
+ include ::Google::Protobuf::MessageExts
369
+ extend ::Google::Protobuf::MessageExts::ClassMethods
370
+ end
371
+ end
372
+
373
+ # Represents the metadata of a long-running operation.
374
+ # @!attribute [rw] create_time
375
+ # @return [::Google::Protobuf::Timestamp]
376
+ # Time when the operation was created.
377
+ # @!attribute [rw] end_time
378
+ # @return [::Google::Protobuf::Timestamp]
379
+ # Time when the operation finished running.
380
+ # @!attribute [rw] target
381
+ # @return [::String]
382
+ # Server-defined resource path for the target of the operation.
383
+ # @!attribute [rw] verb
384
+ # @return [::String]
385
+ # Name of the verb executed by the operation.
386
+ # @!attribute [rw] status_detail
387
+ # @return [::String]
388
+ # Human-readable status of the operation, if any.
389
+ # @!attribute [rw] cancel_requested
390
+ # @return [::Boolean]
391
+ # Identifies whether the user has requested cancellation
392
+ # of the operation. Operations that have successfully been cancelled
393
+ # have [Operation.error][] value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
394
+ # corresponding to `Code.CANCELLED`.
395
+ # @!attribute [rw] api_version
396
+ # @return [::String]
397
+ # API version used to start the operation.
398
+ class OperationMetadata
399
+ include ::Google::Protobuf::MessageExts
400
+ extend ::Google::Protobuf::MessageExts::ClassMethods
401
+ end
402
+
403
+ # Metadata for the given [google.cloud.location.Location][google.cloud.location.Location].
404
+ # @!attribute [r] available_zones
405
+ # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Memcache::V1beta2::ZoneMetadata}]
406
+ # Output only. The set of available zones in the location. The map is keyed
407
+ # by the lowercase ID of each zone, as defined by GCE. These keys can be
408
+ # specified in the `zones` field when creating a Memcached instance.
409
+ class LocationMetadata
410
+ include ::Google::Protobuf::MessageExts
411
+ extend ::Google::Protobuf::MessageExts::ClassMethods
412
+
413
+ # @!attribute [rw] key
414
+ # @return [::String]
415
+ # @!attribute [rw] value
416
+ # @return [::Google::Cloud::Memcache::V1beta2::ZoneMetadata]
417
+ class AvailableZonesEntry
418
+ include ::Google::Protobuf::MessageExts
419
+ extend ::Google::Protobuf::MessageExts::ClassMethods
420
+ end
421
+ end
422
+
423
+ class ZoneMetadata
424
+ include ::Google::Protobuf::MessageExts
425
+ extend ::Google::Protobuf::MessageExts::ClassMethods
426
+ end
427
+
428
+ # Memcached versions supported by our service.
429
+ module MemcacheVersion
430
+ MEMCACHE_VERSION_UNSPECIFIED = 0
431
+
432
+ # Memcached 1.5 version.
433
+ MEMCACHE_1_5 = 1
434
+ end
435
+ end
436
+ end
437
+ end
438
+ end
@@ -0,0 +1,150 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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
+
20
+ module Google
21
+ module Longrunning
22
+ # This resource represents a long-running operation that is the result of a
23
+ # network API call.
24
+ # @!attribute [rw] name
25
+ # @return [::String]
26
+ # The server-assigned name, which is only unique within the same service that
27
+ # originally returns it. If you use the default HTTP mapping, the
28
+ # `name` should have the format of `operations/some/unique/name`.
29
+ # @!attribute [rw] metadata
30
+ # @return [::Google::Protobuf::Any]
31
+ # Service-specific metadata associated with the operation. It typically
32
+ # contains progress information and common metadata such as create time.
33
+ # Some services might not provide such metadata. Any method that returns a
34
+ # long-running operation should document the metadata type, if any.
35
+ # @!attribute [rw] done
36
+ # @return [::Boolean]
37
+ # If the value is `false`, it means the operation is still in progress.
38
+ # If true, the operation is completed, and either `error` or `response` is
39
+ # available.
40
+ # @!attribute [rw] error
41
+ # @return [::Google::Rpc::Status]
42
+ # The error result of the operation in case of failure or cancellation.
43
+ # @!attribute [rw] response
44
+ # @return [::Google::Protobuf::Any]
45
+ # The normal response of the operation in case of success. If the original
46
+ # method returns no data on success, such as `Delete`, the response is
47
+ # `google.protobuf.Empty`. If the original method is standard
48
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
49
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
50
+ # is the original method name. For example, if the original method name
51
+ # is `TakeSnapshot()`, the inferred response type is
52
+ # `TakeSnapshotResponse`.
53
+ class Operation
54
+ include ::Google::Protobuf::MessageExts
55
+ extend ::Google::Protobuf::MessageExts::ClassMethods
56
+ end
57
+
58
+ # The request message for Operations.GetOperation.
59
+ # @!attribute [rw] name
60
+ # @return [::String]
61
+ # The name of the operation resource.
62
+ class GetOperationRequest
63
+ include ::Google::Protobuf::MessageExts
64
+ extend ::Google::Protobuf::MessageExts::ClassMethods
65
+ end
66
+
67
+ # The request message for Operations.ListOperations.
68
+ # @!attribute [rw] name
69
+ # @return [::String]
70
+ # The name of the operation collection.
71
+ # @!attribute [rw] filter
72
+ # @return [::String]
73
+ # The standard list filter.
74
+ # @!attribute [rw] page_size
75
+ # @return [::Integer]
76
+ # The standard list page size.
77
+ # @!attribute [rw] page_token
78
+ # @return [::String]
79
+ # The standard list page token.
80
+ class ListOperationsRequest
81
+ include ::Google::Protobuf::MessageExts
82
+ extend ::Google::Protobuf::MessageExts::ClassMethods
83
+ end
84
+
85
+ # The response message for Operations.ListOperations.
86
+ # @!attribute [rw] operations
87
+ # @return [::Array<::Google::Longrunning::Operation>]
88
+ # A list of operations that matches the specified filter in the request.
89
+ # @!attribute [rw] next_page_token
90
+ # @return [::String]
91
+ # The standard List next-page token.
92
+ class ListOperationsResponse
93
+ include ::Google::Protobuf::MessageExts
94
+ extend ::Google::Protobuf::MessageExts::ClassMethods
95
+ end
96
+
97
+ # The request message for Operations.CancelOperation.
98
+ # @!attribute [rw] name
99
+ # @return [::String]
100
+ # The name of the operation resource to be cancelled.
101
+ class CancelOperationRequest
102
+ include ::Google::Protobuf::MessageExts
103
+ extend ::Google::Protobuf::MessageExts::ClassMethods
104
+ end
105
+
106
+ # The request message for Operations.DeleteOperation.
107
+ # @!attribute [rw] name
108
+ # @return [::String]
109
+ # The name of the operation resource to be deleted.
110
+ class DeleteOperationRequest
111
+ include ::Google::Protobuf::MessageExts
112
+ extend ::Google::Protobuf::MessageExts::ClassMethods
113
+ end
114
+
115
+ # A message representing the message types used by a long-running operation.
116
+ #
117
+ # Example:
118
+ #
119
+ # rpc LongRunningRecognize(LongRunningRecognizeRequest)
120
+ # returns (google.longrunning.Operation) {
121
+ # option (google.longrunning.operation_info) = {
122
+ # response_type: "LongRunningRecognizeResponse"
123
+ # metadata_type: "LongRunningRecognizeMetadata"
124
+ # };
125
+ # }
126
+ # @!attribute [rw] response_type
127
+ # @return [::String]
128
+ # Required. The message name of the primary return type for this
129
+ # long-running operation.
130
+ # This type will be used to deserialize the LRO's response.
131
+ #
132
+ # If the response is in a different package from the rpc, a fully-qualified
133
+ # message name must be used (e.g. `google.protobuf.Struct`).
134
+ #
135
+ # Note: Altering this value constitutes a breaking change.
136
+ # @!attribute [rw] metadata_type
137
+ # @return [::String]
138
+ # Required. The message name of the metadata type for this long-running
139
+ # operation.
140
+ #
141
+ # If the response is in a different package from the rpc, a fully-qualified
142
+ # message name must be used (e.g. `google.protobuf.Struct`).
143
+ #
144
+ # Note: Altering this value constitutes a breaking change.
145
+ class OperationInfo
146
+ include ::Google::Protobuf::MessageExts
147
+ extend ::Google::Protobuf::MessageExts::ClassMethods
148
+ end
149
+ end
150
+ end