google-cloud-data_labeling-v1beta1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +203 -0
- data/README.md +75 -0
- data/lib/google-cloud-data_labeling-v1beta1.rb +21 -0
- data/lib/google/cloud/data_labeling/v1beta1.rb +35 -0
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service.rb +50 -0
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service/client.rb +3294 -0
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service/credentials.rb +51 -0
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service/operations.rb +570 -0
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service/paths.rb +193 -0
- data/lib/google/cloud/data_labeling/v1beta1/version.rb +28 -0
- data/lib/google/cloud/datalabeling/v1beta1/annotation_pb.rb +178 -0
- data/lib/google/cloud/datalabeling/v1beta1/annotation_spec_set_pb.rb +33 -0
- data/lib/google/cloud/datalabeling/v1beta1/data_labeling_service_pb.rb +301 -0
- data/lib/google/cloud/datalabeling/v1beta1/data_labeling_service_services_pb.rb +132 -0
- data/lib/google/cloud/datalabeling/v1beta1/data_payloads_pb.rb +45 -0
- data/lib/google/cloud/datalabeling/v1beta1/dataset_pb.rb +142 -0
- data/lib/google/cloud/datalabeling/v1beta1/evaluation_job_pb.rb +71 -0
- data/lib/google/cloud/datalabeling/v1beta1/evaluation_pb.rb +93 -0
- data/lib/google/cloud/datalabeling/v1beta1/human_annotation_config_pb.rb +98 -0
- data/lib/google/cloud/datalabeling/v1beta1/instruction_pb.rb +42 -0
- data/lib/google/cloud/datalabeling/v1beta1/operations_pb.rb +124 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +59 -0
- data/proto_docs/google/api/resource.rb +283 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/annotation.rb +407 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/annotation_spec_set.rb +71 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/data_labeling_service.rb +839 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/data_payloads.rb +87 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/dataset.rb +354 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/evaluation.rb +225 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/evaluation_job.rb +280 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/human_annotation_config.rb +248 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/instruction.rb +88 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/operations.rb +279 -0
- data/proto_docs/google/longrunning/operations.rb +150 -0
- data/proto_docs/google/protobuf/any.rb +138 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +120 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +227 -0
@@ -0,0 +1,88 @@
|
|
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 DataLabeling
|
23
|
+
module V1beta1
|
24
|
+
# Instruction of how to perform the labeling task for human operators.
|
25
|
+
# Currently only PDF instruction is supported.
|
26
|
+
# @!attribute [rw] name
|
27
|
+
# @return [::String]
|
28
|
+
# Output only. Instruction resource name, format:
|
29
|
+
# projects/\\{project_id}/instructions/\\{instruction_id}
|
30
|
+
# @!attribute [rw] display_name
|
31
|
+
# @return [::String]
|
32
|
+
# Required. The display name of the instruction. Maximum of 64 characters.
|
33
|
+
# @!attribute [rw] description
|
34
|
+
# @return [::String]
|
35
|
+
# Optional. User-provided description of the instruction.
|
36
|
+
# The description can be up to 10000 characters long.
|
37
|
+
# @!attribute [rw] create_time
|
38
|
+
# @return [::Google::Protobuf::Timestamp]
|
39
|
+
# Output only. Creation time of instruction.
|
40
|
+
# @!attribute [rw] update_time
|
41
|
+
# @return [::Google::Protobuf::Timestamp]
|
42
|
+
# Output only. Last update time of instruction.
|
43
|
+
# @!attribute [rw] data_type
|
44
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::DataType]
|
45
|
+
# Required. The data type of this instruction.
|
46
|
+
# @!attribute [rw] csv_instruction
|
47
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::CsvInstruction]
|
48
|
+
# Deprecated: this instruction format is not supported any more.
|
49
|
+
# Instruction from a CSV file, such as for classification task.
|
50
|
+
# The CSV file should have exact two columns, in the following format:
|
51
|
+
#
|
52
|
+
# * The first column is labeled data, such as an image reference, text.
|
53
|
+
# * The second column is comma separated labels associated with data.
|
54
|
+
# @!attribute [rw] pdf_instruction
|
55
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::PdfInstruction]
|
56
|
+
# Instruction from a PDF document. The PDF should be in a Cloud Storage
|
57
|
+
# bucket.
|
58
|
+
# @!attribute [rw] blocking_resources
|
59
|
+
# @return [::Array<::String>]
|
60
|
+
# Output only. The names of any related resources that are blocking changes
|
61
|
+
# to the instruction.
|
62
|
+
class Instruction
|
63
|
+
include ::Google::Protobuf::MessageExts
|
64
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
65
|
+
end
|
66
|
+
|
67
|
+
# Deprecated: this instruction format is not supported any more.
|
68
|
+
# Instruction from a CSV file.
|
69
|
+
# @!attribute [rw] gcs_file_uri
|
70
|
+
# @return [::String]
|
71
|
+
# CSV file for the instruction. Only gcs path is allowed.
|
72
|
+
class CsvInstruction
|
73
|
+
include ::Google::Protobuf::MessageExts
|
74
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
75
|
+
end
|
76
|
+
|
77
|
+
# Instruction from a PDF file.
|
78
|
+
# @!attribute [rw] gcs_file_uri
|
79
|
+
# @return [::String]
|
80
|
+
# PDF file for the instruction. Only gcs path is allowed.
|
81
|
+
class PdfInstruction
|
82
|
+
include ::Google::Protobuf::MessageExts
|
83
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
@@ -0,0 +1,279 @@
|
|
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 DataLabeling
|
23
|
+
module V1beta1
|
24
|
+
# Response used for ImportData longrunning operation.
|
25
|
+
# @!attribute [rw] dataset
|
26
|
+
# @return [::String]
|
27
|
+
# Ouptut only. The name of imported dataset.
|
28
|
+
# @!attribute [rw] total_count
|
29
|
+
# @return [::Integer]
|
30
|
+
# Output only. Total number of examples requested to import
|
31
|
+
# @!attribute [rw] import_count
|
32
|
+
# @return [::Integer]
|
33
|
+
# Output only. Number of examples imported successfully.
|
34
|
+
class ImportDataOperationResponse
|
35
|
+
include ::Google::Protobuf::MessageExts
|
36
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
37
|
+
end
|
38
|
+
|
39
|
+
# Response used for ExportDataset longrunning operation.
|
40
|
+
# @!attribute [rw] dataset
|
41
|
+
# @return [::String]
|
42
|
+
# Ouptut only. The name of dataset.
|
43
|
+
# "projects/*/datasets/*"
|
44
|
+
# @!attribute [rw] total_count
|
45
|
+
# @return [::Integer]
|
46
|
+
# Output only. Total number of examples requested to export
|
47
|
+
# @!attribute [rw] export_count
|
48
|
+
# @return [::Integer]
|
49
|
+
# Output only. Number of examples exported successfully.
|
50
|
+
# @!attribute [rw] label_stats
|
51
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelStats]
|
52
|
+
# Output only. Statistic infos of labels in the exported dataset.
|
53
|
+
# @!attribute [rw] output_config
|
54
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::OutputConfig]
|
55
|
+
# Output only. output_config in the ExportData request.
|
56
|
+
class ExportDataOperationResponse
|
57
|
+
include ::Google::Protobuf::MessageExts
|
58
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
59
|
+
end
|
60
|
+
|
61
|
+
# Metadata of an ImportData operation.
|
62
|
+
# @!attribute [rw] dataset
|
63
|
+
# @return [::String]
|
64
|
+
# Output only. The name of imported dataset.
|
65
|
+
# "projects/*/datasets/*"
|
66
|
+
# @!attribute [rw] partial_failures
|
67
|
+
# @return [::Array<::Google::Rpc::Status>]
|
68
|
+
# Output only. Partial failures encountered.
|
69
|
+
# E.g. single files that couldn't be read.
|
70
|
+
# Status details field will contain standard GCP error details.
|
71
|
+
# @!attribute [rw] create_time
|
72
|
+
# @return [::Google::Protobuf::Timestamp]
|
73
|
+
# Output only. Timestamp when import dataset request was created.
|
74
|
+
class ImportDataOperationMetadata
|
75
|
+
include ::Google::Protobuf::MessageExts
|
76
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
77
|
+
end
|
78
|
+
|
79
|
+
# Metadata of an ExportData operation.
|
80
|
+
# @!attribute [rw] dataset
|
81
|
+
# @return [::String]
|
82
|
+
# Output only. The name of dataset to be exported.
|
83
|
+
# "projects/*/datasets/*"
|
84
|
+
# @!attribute [rw] partial_failures
|
85
|
+
# @return [::Array<::Google::Rpc::Status>]
|
86
|
+
# Output only. Partial failures encountered.
|
87
|
+
# E.g. single files that couldn't be read.
|
88
|
+
# Status details field will contain standard GCP error details.
|
89
|
+
# @!attribute [rw] create_time
|
90
|
+
# @return [::Google::Protobuf::Timestamp]
|
91
|
+
# Output only. Timestamp when export dataset request was created.
|
92
|
+
class ExportDataOperationMetadata
|
93
|
+
include ::Google::Protobuf::MessageExts
|
94
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
95
|
+
end
|
96
|
+
|
97
|
+
# Metadata of a labeling operation, such as LabelImage or LabelVideo.
|
98
|
+
# Next tag: 20
|
99
|
+
# @!attribute [rw] image_classification_details
|
100
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelImageClassificationOperationMetadata]
|
101
|
+
# Details of label image classification operation.
|
102
|
+
# @!attribute [rw] image_bounding_box_details
|
103
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelImageBoundingBoxOperationMetadata]
|
104
|
+
# Details of label image bounding box operation.
|
105
|
+
# @!attribute [rw] image_bounding_poly_details
|
106
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelImageBoundingPolyOperationMetadata]
|
107
|
+
# Details of label image bounding poly operation.
|
108
|
+
# @!attribute [rw] image_oriented_bounding_box_details
|
109
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelImageOrientedBoundingBoxOperationMetadata]
|
110
|
+
# Details of label image oriented bounding box operation.
|
111
|
+
# @!attribute [rw] image_polyline_details
|
112
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelImagePolylineOperationMetadata]
|
113
|
+
# Details of label image polyline operation.
|
114
|
+
# @!attribute [rw] image_segmentation_details
|
115
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelImageSegmentationOperationMetadata]
|
116
|
+
# Details of label image segmentation operation.
|
117
|
+
# @!attribute [rw] video_classification_details
|
118
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelVideoClassificationOperationMetadata]
|
119
|
+
# Details of label video classification operation.
|
120
|
+
# @!attribute [rw] video_object_detection_details
|
121
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelVideoObjectDetectionOperationMetadata]
|
122
|
+
# Details of label video object detection operation.
|
123
|
+
# @!attribute [rw] video_object_tracking_details
|
124
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelVideoObjectTrackingOperationMetadata]
|
125
|
+
# Details of label video object tracking operation.
|
126
|
+
# @!attribute [rw] video_event_details
|
127
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelVideoEventOperationMetadata]
|
128
|
+
# Details of label video event operation.
|
129
|
+
# @!attribute [rw] text_classification_details
|
130
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelTextClassificationOperationMetadata]
|
131
|
+
# Details of label text classification operation.
|
132
|
+
# @!attribute [rw] text_entity_extraction_details
|
133
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelTextEntityExtractionOperationMetadata]
|
134
|
+
# Details of label text entity extraction operation.
|
135
|
+
# @!attribute [rw] progress_percent
|
136
|
+
# @return [::Integer]
|
137
|
+
# Output only. Progress of label operation. Range: [0, 100].
|
138
|
+
# @!attribute [rw] partial_failures
|
139
|
+
# @return [::Array<::Google::Rpc::Status>]
|
140
|
+
# Output only. Partial failures encountered.
|
141
|
+
# E.g. single files that couldn't be read.
|
142
|
+
# Status details field will contain standard GCP error details.
|
143
|
+
# @!attribute [rw] create_time
|
144
|
+
# @return [::Google::Protobuf::Timestamp]
|
145
|
+
# Output only. Timestamp when labeling request was created.
|
146
|
+
class LabelOperationMetadata
|
147
|
+
include ::Google::Protobuf::MessageExts
|
148
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
149
|
+
end
|
150
|
+
|
151
|
+
# Metadata of a LabelImageClassification operation.
|
152
|
+
# @!attribute [rw] basic_config
|
153
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig]
|
154
|
+
# Basic human annotation config used in labeling request.
|
155
|
+
class LabelImageClassificationOperationMetadata
|
156
|
+
include ::Google::Protobuf::MessageExts
|
157
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
158
|
+
end
|
159
|
+
|
160
|
+
# Details of a LabelImageBoundingBox operation metadata.
|
161
|
+
# @!attribute [rw] basic_config
|
162
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig]
|
163
|
+
# Basic human annotation config used in labeling request.
|
164
|
+
class LabelImageBoundingBoxOperationMetadata
|
165
|
+
include ::Google::Protobuf::MessageExts
|
166
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
167
|
+
end
|
168
|
+
|
169
|
+
# Details of a LabelImageOrientedBoundingBox operation metadata.
|
170
|
+
# @!attribute [rw] basic_config
|
171
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig]
|
172
|
+
# Basic human annotation config.
|
173
|
+
class LabelImageOrientedBoundingBoxOperationMetadata
|
174
|
+
include ::Google::Protobuf::MessageExts
|
175
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
176
|
+
end
|
177
|
+
|
178
|
+
# Details of LabelImageBoundingPoly operation metadata.
|
179
|
+
# @!attribute [rw] basic_config
|
180
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig]
|
181
|
+
# Basic human annotation config used in labeling request.
|
182
|
+
class LabelImageBoundingPolyOperationMetadata
|
183
|
+
include ::Google::Protobuf::MessageExts
|
184
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
185
|
+
end
|
186
|
+
|
187
|
+
# Details of LabelImagePolyline operation metadata.
|
188
|
+
# @!attribute [rw] basic_config
|
189
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig]
|
190
|
+
# Basic human annotation config used in labeling request.
|
191
|
+
class LabelImagePolylineOperationMetadata
|
192
|
+
include ::Google::Protobuf::MessageExts
|
193
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
194
|
+
end
|
195
|
+
|
196
|
+
# Details of a LabelImageSegmentation operation metadata.
|
197
|
+
# @!attribute [rw] basic_config
|
198
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig]
|
199
|
+
# Basic human annotation config.
|
200
|
+
class LabelImageSegmentationOperationMetadata
|
201
|
+
include ::Google::Protobuf::MessageExts
|
202
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
203
|
+
end
|
204
|
+
|
205
|
+
# Details of a LabelVideoClassification operation metadata.
|
206
|
+
# @!attribute [rw] basic_config
|
207
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig]
|
208
|
+
# Basic human annotation config used in labeling request.
|
209
|
+
class LabelVideoClassificationOperationMetadata
|
210
|
+
include ::Google::Protobuf::MessageExts
|
211
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
212
|
+
end
|
213
|
+
|
214
|
+
# Details of a LabelVideoObjectDetection operation metadata.
|
215
|
+
# @!attribute [rw] basic_config
|
216
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig]
|
217
|
+
# Basic human annotation config used in labeling request.
|
218
|
+
class LabelVideoObjectDetectionOperationMetadata
|
219
|
+
include ::Google::Protobuf::MessageExts
|
220
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
221
|
+
end
|
222
|
+
|
223
|
+
# Details of a LabelVideoObjectTracking operation metadata.
|
224
|
+
# @!attribute [rw] basic_config
|
225
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig]
|
226
|
+
# Basic human annotation config used in labeling request.
|
227
|
+
class LabelVideoObjectTrackingOperationMetadata
|
228
|
+
include ::Google::Protobuf::MessageExts
|
229
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
230
|
+
end
|
231
|
+
|
232
|
+
# Details of a LabelVideoEvent operation metadata.
|
233
|
+
# @!attribute [rw] basic_config
|
234
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig]
|
235
|
+
# Basic human annotation config used in labeling request.
|
236
|
+
class LabelVideoEventOperationMetadata
|
237
|
+
include ::Google::Protobuf::MessageExts
|
238
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
239
|
+
end
|
240
|
+
|
241
|
+
# Details of a LabelTextClassification operation metadata.
|
242
|
+
# @!attribute [rw] basic_config
|
243
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig]
|
244
|
+
# Basic human annotation config used in labeling request.
|
245
|
+
class LabelTextClassificationOperationMetadata
|
246
|
+
include ::Google::Protobuf::MessageExts
|
247
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
248
|
+
end
|
249
|
+
|
250
|
+
# Details of a LabelTextEntityExtraction operation metadata.
|
251
|
+
# @!attribute [rw] basic_config
|
252
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig]
|
253
|
+
# Basic human annotation config used in labeling request.
|
254
|
+
class LabelTextEntityExtractionOperationMetadata
|
255
|
+
include ::Google::Protobuf::MessageExts
|
256
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
257
|
+
end
|
258
|
+
|
259
|
+
# Metadata of a CreateInstruction operation.
|
260
|
+
# @!attribute [rw] instruction
|
261
|
+
# @return [::String]
|
262
|
+
# The name of the created Instruction.
|
263
|
+
# projects/\\{project_id}/instructions/\\{instruction_id}
|
264
|
+
# @!attribute [rw] partial_failures
|
265
|
+
# @return [::Array<::Google::Rpc::Status>]
|
266
|
+
# Partial failures encountered.
|
267
|
+
# E.g. single files that couldn't be read.
|
268
|
+
# Status details field will contain standard GCP error details.
|
269
|
+
# @!attribute [rw] create_time
|
270
|
+
# @return [::Google::Protobuf::Timestamp]
|
271
|
+
# Timestamp when create instruction request was created.
|
272
|
+
class CreateInstructionMetadata
|
273
|
+
include ::Google::Protobuf::MessageExts
|
274
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
275
|
+
end
|
276
|
+
end
|
277
|
+
end
|
278
|
+
end
|
279
|
+
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
|