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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/vision_ai/v1/app_platform/client.rb +3318 -0
  6. data/lib/google/cloud/vision_ai/v1/app_platform/credentials.rb +47 -0
  7. data/lib/google/cloud/vision_ai/v1/app_platform/operations.rb +809 -0
  8. data/lib/google/cloud/vision_ai/v1/app_platform/paths.rb +151 -0
  9. data/lib/google/cloud/vision_ai/v1/app_platform/rest/client.rb +3106 -0
  10. data/lib/google/cloud/vision_ai/v1/app_platform/rest/operations.rb +951 -0
  11. data/lib/google/cloud/vision_ai/v1/app_platform/rest/service_stub.rb +1618 -0
  12. data/lib/google/cloud/vision_ai/v1/app_platform/rest.rb +53 -0
  13. data/lib/google/cloud/vision_ai/v1/app_platform.rb +56 -0
  14. data/lib/google/cloud/vision_ai/v1/health_check_service/client.rb +456 -0
  15. data/lib/google/cloud/vision_ai/v1/health_check_service/credentials.rb +47 -0
  16. data/lib/google/cloud/vision_ai/v1/health_check_service/paths.rb +52 -0
  17. data/lib/google/cloud/vision_ai/v1/health_check_service/rest/client.rb +423 -0
  18. data/lib/google/cloud/vision_ai/v1/health_check_service/rest/service_stub.rb +128 -0
  19. data/lib/google/cloud/vision_ai/v1/health_check_service/rest.rb +53 -0
  20. data/lib/google/cloud/vision_ai/v1/health_check_service.rb +56 -0
  21. data/lib/google/cloud/vision_ai/v1/live_video_analytics/client.rb +2375 -0
  22. data/lib/google/cloud/vision_ai/v1/live_video_analytics/credentials.rb +47 -0
  23. data/lib/google/cloud/vision_ai/v1/live_video_analytics/operations.rb +809 -0
  24. data/lib/google/cloud/vision_ai/v1/live_video_analytics/paths.rb +130 -0
  25. data/lib/google/cloud/vision_ai/v1/live_video_analytics/rest/client.rb +2220 -0
  26. data/lib/google/cloud/vision_ai/v1/live_video_analytics/rest/operations.rb +951 -0
  27. data/lib/google/cloud/vision_ai/v1/live_video_analytics/rest/service_stub.rb +1139 -0
  28. data/lib/google/cloud/vision_ai/v1/live_video_analytics/rest.rb +54 -0
  29. data/lib/google/cloud/vision_ai/v1/live_video_analytics.rb +57 -0
  30. data/lib/google/cloud/vision_ai/v1/rest.rb +42 -0
  31. data/lib/google/cloud/vision_ai/v1/streaming_service/client.rb +915 -0
  32. data/lib/google/cloud/vision_ai/v1/streaming_service/credentials.rb +47 -0
  33. data/lib/google/cloud/vision_ai/v1/streaming_service/paths.rb +54 -0
  34. data/lib/google/cloud/vision_ai/v1/streaming_service/rest/client.rb +610 -0
  35. data/lib/google/cloud/vision_ai/v1/streaming_service/rest/service_stub.rb +249 -0
  36. data/lib/google/cloud/vision_ai/v1/streaming_service/rest.rb +52 -0
  37. data/lib/google/cloud/vision_ai/v1/streaming_service.rb +55 -0
  38. data/lib/google/cloud/vision_ai/v1/streams_service/client.rb +2931 -0
  39. data/lib/google/cloud/vision_ai/v1/streams_service/credentials.rb +47 -0
  40. data/lib/google/cloud/vision_ai/v1/streams_service/operations.rb +809 -0
  41. data/lib/google/cloud/vision_ai/v1/streams_service/paths.rb +153 -0
  42. data/lib/google/cloud/vision_ai/v1/streams_service/rest/client.rb +2740 -0
  43. data/lib/google/cloud/vision_ai/v1/streams_service/rest/operations.rb +951 -0
  44. data/lib/google/cloud/vision_ai/v1/streams_service/rest/service_stub.rb +1437 -0
  45. data/lib/google/cloud/vision_ai/v1/streams_service/rest.rb +56 -0
  46. data/lib/google/cloud/vision_ai/v1/streams_service.rb +59 -0
  47. data/lib/google/cloud/vision_ai/v1/version.rb +8 -3
  48. data/lib/google/cloud/vision_ai/v1/warehouse/client.rb +6957 -0
  49. data/lib/google/cloud/vision_ai/v1/warehouse/credentials.rb +47 -0
  50. data/lib/google/cloud/vision_ai/v1/warehouse/operations.rb +809 -0
  51. data/lib/google/cloud/vision_ai/v1/warehouse/paths.rb +237 -0
  52. data/lib/google/cloud/vision_ai/v1/warehouse/rest/client.rb +6402 -0
  53. data/lib/google/cloud/vision_ai/v1/warehouse/rest/operations.rb +951 -0
  54. data/lib/google/cloud/vision_ai/v1/warehouse/rest/service_stub.rb +3760 -0
  55. data/lib/google/cloud/vision_ai/v1/warehouse/rest.rb +53 -0
  56. data/lib/google/cloud/vision_ai/v1/warehouse.rb +56 -0
  57. data/lib/google/cloud/vision_ai/v1.rb +50 -0
  58. data/lib/google/cloud/visionai/v1/annotations_pb.rb +90 -0
  59. data/lib/google/cloud/visionai/v1/common_pb.rb +50 -0
  60. data/lib/google/cloud/visionai/v1/health_service_pb.rb +48 -0
  61. data/lib/google/cloud/visionai/v1/health_service_services_pb.rb +46 -0
  62. data/lib/google/cloud/visionai/v1/lva_pb.rb +54 -0
  63. data/lib/google/cloud/visionai/v1/lva_resources_pb.rb +51 -0
  64. data/lib/google/cloud/visionai/v1/lva_service_pb.rb +80 -0
  65. data/lib/google/cloud/visionai/v1/lva_service_services_pb.rb +81 -0
  66. data/lib/google/cloud/visionai/v1/platform_pb.rb +162 -0
  67. data/lib/google/cloud/visionai/v1/platform_services_pb.rb +111 -0
  68. data/lib/google/cloud/visionai/v1/streaming_resources_pb.rb +58 -0
  69. data/lib/google/cloud/visionai/v1/streaming_service_pb.rb +71 -0
  70. data/lib/google/cloud/visionai/v1/streaming_service_services_pb.rb +55 -0
  71. data/lib/google/cloud/visionai/v1/streams_resources_pb.rb +53 -0
  72. data/lib/google/cloud/visionai/v1/streams_service_pb.rb +85 -0
  73. data/lib/google/cloud/visionai/v1/streams_service_services_pb.rb +92 -0
  74. data/lib/google/cloud/visionai/v1/warehouse_pb.rb +250 -0
  75. data/lib/google/cloud/visionai/v1/warehouse_services_pb.rb +227 -0
  76. data/lib/google-cloud-vision_ai-v1.rb +21 -0
  77. data/proto_docs/README.md +4 -0
  78. data/proto_docs/google/api/client.rb +403 -0
  79. data/proto_docs/google/api/field_behavior.rb +85 -0
  80. data/proto_docs/google/api/launch_stage.rb +71 -0
  81. data/proto_docs/google/api/resource.rb +227 -0
  82. data/proto_docs/google/cloud/visionai/v1/annotations.rb +787 -0
  83. data/proto_docs/google/cloud/visionai/v1/common.rb +134 -0
  84. data/proto_docs/google/cloud/visionai/v1/health_service.rb +61 -0
  85. data/proto_docs/google/cloud/visionai/v1/lva.rb +345 -0
  86. data/proto_docs/google/cloud/visionai/v1/lva_resources.rb +167 -0
  87. data/proto_docs/google/cloud/visionai/v1/lva_service.rb +543 -0
  88. data/proto_docs/google/cloud/visionai/v1/platform.rb +2228 -0
  89. data/proto_docs/google/cloud/visionai/v1/streaming_resources.rb +178 -0
  90. data/proto_docs/google/cloud/visionai/v1/streaming_service.rb +393 -0
  91. data/proto_docs/google/cloud/visionai/v1/streams_resources.rb +229 -0
  92. data/proto_docs/google/cloud/visionai/v1/streams_service.rb +644 -0
  93. data/proto_docs/google/cloud/visionai/v1/warehouse.rb +3002 -0
  94. data/proto_docs/google/longrunning/operations.rb +164 -0
  95. data/proto_docs/google/protobuf/any.rb +145 -0
  96. data/proto_docs/google/protobuf/duration.rb +98 -0
  97. data/proto_docs/google/protobuf/empty.rb +34 -0
  98. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  99. data/proto_docs/google/protobuf/struct.rb +96 -0
  100. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  101. data/proto_docs/google/rpc/status.rb +48 -0
  102. data/proto_docs/google/type/datetime.rb +99 -0
  103. data/proto_docs/google/type/expr.rb +75 -0
  104. metadata +183 -10
@@ -0,0 +1,2228 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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 VisionAI
23
+ module V1
24
+ # Message for DeleteApplicationInstance Response.
25
+ class DeleteApplicationInstancesResponse
26
+ include ::Google::Protobuf::MessageExts
27
+ extend ::Google::Protobuf::MessageExts::ClassMethods
28
+ end
29
+
30
+ # Message for CreateApplicationInstance Response.
31
+ class CreateApplicationInstancesResponse
32
+ include ::Google::Protobuf::MessageExts
33
+ extend ::Google::Protobuf::MessageExts::ClassMethods
34
+ end
35
+
36
+ # Message for UpdateApplicationInstances Response.
37
+ class UpdateApplicationInstancesResponse
38
+ include ::Google::Protobuf::MessageExts
39
+ extend ::Google::Protobuf::MessageExts::ClassMethods
40
+ end
41
+
42
+ # Message for adding stream input to an Application.
43
+ # @!attribute [rw] name
44
+ # @return [::String]
45
+ # Required. the name of the application to retrieve.
46
+ # Format:
47
+ # "projects/\\{project}/locations/\\{location}/applications/\\{application}"
48
+ # @!attribute [rw] application_instances
49
+ # @return [::Array<::Google::Cloud::VisionAI::V1::ApplicationInstance>]
50
+ # Required. The resources being created.
51
+ # @!attribute [rw] request_id
52
+ # @return [::String]
53
+ # Optional. An optional request ID to identify requests. Specify a unique
54
+ # request ID so that if you must retry your request, the server will know to
55
+ # ignore the request if it has already been completed. The server will
56
+ # guarantee that for at least 60 minutes since the first request.
57
+ #
58
+ # For example, consider a situation where you make an initial request and
59
+ # the request times out. If you make the request again with the same request
60
+ # ID, the server can check if original operation with the same request ID
61
+ # was received, and if so, will ignore the second request. This prevents
62
+ # clients from accidentally creating duplicate commitments.
63
+ #
64
+ # The request ID must be a valid UUID with the exception that zero UUID is
65
+ # not supported (00000000-0000-0000-0000-000000000000).
66
+ class CreateApplicationInstancesRequest
67
+ include ::Google::Protobuf::MessageExts
68
+ extend ::Google::Protobuf::MessageExts::ClassMethods
69
+ end
70
+
71
+ # Message for removing stream input from an Application.
72
+ # @!attribute [rw] name
73
+ # @return [::String]
74
+ # Required. the name of the application to retrieve.
75
+ # Format:
76
+ # "projects/\\{project}/locations/\\{location}/applications/\\{application}"
77
+ # @!attribute [rw] instance_ids
78
+ # @return [::Array<::String>]
79
+ # Required. Id of the requesting object.
80
+ # @!attribute [rw] request_id
81
+ # @return [::String]
82
+ # Optional. An optional request ID to identify requests. Specify a unique
83
+ # request ID so that if you must retry your request, the server will know to
84
+ # ignore the request if it has already been completed. The server will
85
+ # guarantee that for at least 60 minutes since the first request.
86
+ #
87
+ # For example, consider a situation where you make an initial request and
88
+ # the request times out. If you make the request again with the same request
89
+ # ID, the server can check if original operation with the same request ID
90
+ # was received, and if so, will ignore the second request. This prevents
91
+ # clients from accidentally creating duplicate commitments.
92
+ #
93
+ # The request ID must be a valid UUID with the exception that zero UUID is
94
+ # not supported (00000000-0000-0000-0000-000000000000).
95
+ class DeleteApplicationInstancesRequest
96
+ include ::Google::Protobuf::MessageExts
97
+ extend ::Google::Protobuf::MessageExts::ClassMethods
98
+ end
99
+
100
+ # RPC Request Messages.
101
+ # Message for DeployApplication Response.
102
+ class DeployApplicationResponse
103
+ include ::Google::Protobuf::MessageExts
104
+ extend ::Google::Protobuf::MessageExts::ClassMethods
105
+ end
106
+
107
+ # Message for UndeployApplication Response.
108
+ class UndeployApplicationResponse
109
+ include ::Google::Protobuf::MessageExts
110
+ extend ::Google::Protobuf::MessageExts::ClassMethods
111
+ end
112
+
113
+ # Message for RemoveApplicationStreamInput Response.
114
+ class RemoveApplicationStreamInputResponse
115
+ include ::Google::Protobuf::MessageExts
116
+ extend ::Google::Protobuf::MessageExts::ClassMethods
117
+ end
118
+
119
+ # Message for AddApplicationStreamInput Response.
120
+ class AddApplicationStreamInputResponse
121
+ include ::Google::Protobuf::MessageExts
122
+ extend ::Google::Protobuf::MessageExts::ClassMethods
123
+ end
124
+
125
+ # Message for AddApplicationStreamInput Response.
126
+ class UpdateApplicationStreamInputResponse
127
+ include ::Google::Protobuf::MessageExts
128
+ extend ::Google::Protobuf::MessageExts::ClassMethods
129
+ end
130
+
131
+ # Message for requesting list of Applications.
132
+ # @!attribute [rw] parent
133
+ # @return [::String]
134
+ # Required. Parent value for ListApplicationsRequest.
135
+ # @!attribute [rw] page_size
136
+ # @return [::Integer]
137
+ # Requested page size. Server may return fewer items than requested.
138
+ # If unspecified, server will pick an appropriate default.
139
+ # @!attribute [rw] page_token
140
+ # @return [::String]
141
+ # A token identifying a page of results the server should return.
142
+ # @!attribute [rw] filter
143
+ # @return [::String]
144
+ # Filtering results.
145
+ # @!attribute [rw] order_by
146
+ # @return [::String]
147
+ # Hint for how to order the results.
148
+ class ListApplicationsRequest
149
+ include ::Google::Protobuf::MessageExts
150
+ extend ::Google::Protobuf::MessageExts::ClassMethods
151
+ end
152
+
153
+ # Message for response to listing Applications.
154
+ # @!attribute [rw] applications
155
+ # @return [::Array<::Google::Cloud::VisionAI::V1::Application>]
156
+ # The list of Application.
157
+ # @!attribute [rw] next_page_token
158
+ # @return [::String]
159
+ # A token identifying a page of results the server should return.
160
+ # @!attribute [rw] unreachable
161
+ # @return [::Array<::String>]
162
+ # Locations that could not be reached.
163
+ class ListApplicationsResponse
164
+ include ::Google::Protobuf::MessageExts
165
+ extend ::Google::Protobuf::MessageExts::ClassMethods
166
+ end
167
+
168
+ # Message for getting a Application.
169
+ # @!attribute [rw] name
170
+ # @return [::String]
171
+ # Required. Name of the resource.
172
+ class GetApplicationRequest
173
+ include ::Google::Protobuf::MessageExts
174
+ extend ::Google::Protobuf::MessageExts::ClassMethods
175
+ end
176
+
177
+ # Message for creating a Application.
178
+ # @!attribute [rw] parent
179
+ # @return [::String]
180
+ # Required. Value for parent.
181
+ # @!attribute [rw] application_id
182
+ # @return [::String]
183
+ # Required. Id of the requesting object.
184
+ # @!attribute [rw] application
185
+ # @return [::Google::Cloud::VisionAI::V1::Application]
186
+ # Required. The resource being created.
187
+ # @!attribute [rw] request_id
188
+ # @return [::String]
189
+ # Optional. An optional request ID to identify requests. Specify a unique
190
+ # request ID so that if you must retry your request, the server will know to
191
+ # ignore the request if it has already been completed. The server will
192
+ # guarantee that for at least 60 minutes since the first request.
193
+ #
194
+ # For example, consider a situation where you make an initial request and
195
+ # the request times out. If you make the request again with the same request
196
+ # ID, the server can check if original operation with the same request ID
197
+ # was received, and if so, will ignore the second request. This prevents
198
+ # clients from accidentally creating duplicate commitments.
199
+ #
200
+ # The request ID must be a valid UUID with the exception that zero UUID is
201
+ # not supported (00000000-0000-0000-0000-000000000000).
202
+ class CreateApplicationRequest
203
+ include ::Google::Protobuf::MessageExts
204
+ extend ::Google::Protobuf::MessageExts::ClassMethods
205
+ end
206
+
207
+ # Message for updating an Application.
208
+ # @!attribute [rw] update_mask
209
+ # @return [::Google::Protobuf::FieldMask]
210
+ # Optional. Field mask is used to specify the fields to be overwritten in the
211
+ # Application resource by the update.
212
+ # The fields specified in the update_mask are relative to the resource, not
213
+ # the full request. A field will be overwritten if it is in the mask. If the
214
+ # user does not provide a mask then all fields will be overwritten.
215
+ # @!attribute [rw] application
216
+ # @return [::Google::Cloud::VisionAI::V1::Application]
217
+ # Required. The resource being updated.
218
+ # @!attribute [rw] request_id
219
+ # @return [::String]
220
+ # Optional. An optional request ID to identify requests. Specify a unique
221
+ # request ID so that if you must retry your request, the server will know to
222
+ # ignore the request if it has already been completed. The server will
223
+ # guarantee that for at least 60 minutes since the first request.
224
+ #
225
+ # For example, consider a situation where you make an initial request and
226
+ # the request times out. If you make the request again with the same request
227
+ # ID, the server can check if original operation with the same request ID
228
+ # was received, and if so, will ignore the second request. This prevents
229
+ # clients from accidentally creating duplicate commitments.
230
+ #
231
+ # The request ID must be a valid UUID with the exception that zero UUID is
232
+ # not supported (00000000-0000-0000-0000-000000000000).
233
+ class UpdateApplicationRequest
234
+ include ::Google::Protobuf::MessageExts
235
+ extend ::Google::Protobuf::MessageExts::ClassMethods
236
+ end
237
+
238
+ # Message for deleting an Application.
239
+ # @!attribute [rw] name
240
+ # @return [::String]
241
+ # Required. Name of the resource.
242
+ # @!attribute [rw] request_id
243
+ # @return [::String]
244
+ # Optional. An optional request ID to identify requests. Specify a unique
245
+ # request ID so that if you must retry your request, the server will know to
246
+ # ignore the request if it has already been completed. The server will
247
+ # guarantee that for at least 60 minutes after the first request.
248
+ #
249
+ # For example, consider a situation where you make an initial request and
250
+ # the request times out. If you make the request again with the same request
251
+ # ID, the server can check if original operation with the same request ID
252
+ # was received, and if so, will ignore the second request. This prevents
253
+ # clients from accidentally creating duplicate commitments.
254
+ #
255
+ # The request ID must be a valid UUID with the exception that zero UUID is
256
+ # not supported (00000000-0000-0000-0000-000000000000).
257
+ # @!attribute [rw] force
258
+ # @return [::Boolean]
259
+ # Optional. If set to true, any instances and drafts from this application
260
+ # will also be deleted. (Otherwise, the request will only work if the
261
+ # application has no instances and drafts.)
262
+ class DeleteApplicationRequest
263
+ include ::Google::Protobuf::MessageExts
264
+ extend ::Google::Protobuf::MessageExts::ClassMethods
265
+ end
266
+
267
+ # Message for deploying an Application.
268
+ # @!attribute [rw] name
269
+ # @return [::String]
270
+ # Required. the name of the application to retrieve.
271
+ # Format:
272
+ # "projects/\\{project}/locations/\\{location}/applications/\\{application}"
273
+ # @!attribute [rw] validate_only
274
+ # @return [::Boolean]
275
+ # If set, validate the request and preview the application graph, but do not
276
+ # actually deploy it.
277
+ # @!attribute [rw] request_id
278
+ # @return [::String]
279
+ # Optional. An optional request ID to identify requests. Specify a unique
280
+ # request ID so that if you must retry your request, the server will know to
281
+ # ignore the request if it has already been completed. The server will
282
+ # guarantee that for at least 60 minutes since the first request.
283
+ #
284
+ # For example, consider a situation where you make an initial request and
285
+ # the request times out. If you make the request again with the same request
286
+ # ID, the server can check if original operation with the same request ID
287
+ # was received, and if so, will ignore the second request. This prevents
288
+ # clients from accidentally creating duplicate commitments.
289
+ #
290
+ # The request ID must be a valid UUID with the exception that zero UUID is
291
+ # not supported (00000000-0000-0000-0000-000000000000).
292
+ # @!attribute [rw] enable_monitoring
293
+ # @return [::Boolean]
294
+ # Optional. Whether or not to enable monitoring for the application on
295
+ # deployment.
296
+ class DeployApplicationRequest
297
+ include ::Google::Protobuf::MessageExts
298
+ extend ::Google::Protobuf::MessageExts::ClassMethods
299
+ end
300
+
301
+ # Message for undeploying an Application.
302
+ # @!attribute [rw] name
303
+ # @return [::String]
304
+ # Required. the name of the application to retrieve.
305
+ # Format:
306
+ # "projects/\\{project}/locations/\\{location}/applications/\\{application}"
307
+ # @!attribute [rw] request_id
308
+ # @return [::String]
309
+ # Optional. An optional request ID to identify requests. Specify a unique
310
+ # request ID so that if you must retry your request, the server will know to
311
+ # ignore the request if it has already been completed. The server will
312
+ # guarantee that for at least 60 minutes since the first request.
313
+ #
314
+ # For example, consider a situation where you make an initial request and
315
+ # the request times out. If you make the request again with the same request
316
+ # ID, the server can check if original operation with the same request ID
317
+ # was received, and if so, will ignore the second request. This prevents
318
+ # clients from accidentally creating duplicate commitments.
319
+ #
320
+ # The request ID must be a valid UUID with the exception that zero UUID is
321
+ # not supported (00000000-0000-0000-0000-000000000000).
322
+ class UndeployApplicationRequest
323
+ include ::Google::Protobuf::MessageExts
324
+ extend ::Google::Protobuf::MessageExts::ClassMethods
325
+ end
326
+
327
+ # Message about a single stream input config.
328
+ # @!attribute [rw] stream_with_annotation
329
+ # @return [::Google::Cloud::VisionAI::V1::StreamWithAnnotation]
330
+ class ApplicationStreamInput
331
+ include ::Google::Protobuf::MessageExts
332
+ extend ::Google::Protobuf::MessageExts::ClassMethods
333
+ end
334
+
335
+ # Message for adding stream input to an Application.
336
+ # @!attribute [rw] name
337
+ # @return [::String]
338
+ # Required. the name of the application to retrieve.
339
+ # Format:
340
+ # "projects/\\{project}/locations/\\{location}/applications/\\{application}"
341
+ # @!attribute [rw] application_stream_inputs
342
+ # @return [::Array<::Google::Cloud::VisionAI::V1::ApplicationStreamInput>]
343
+ # The stream inputs to add, the stream resource name is the key of each
344
+ # StreamInput, and it must be unique within each application.
345
+ # @!attribute [rw] request_id
346
+ # @return [::String]
347
+ # Optional. An optional request ID to identify requests. Specify a unique
348
+ # request ID so that if you must retry your request, the server will know to
349
+ # ignore the request if it has already been completed. The server will
350
+ # guarantee that for at least 60 minutes since the first request.
351
+ #
352
+ # For example, consider a situation where you make an initial request and
353
+ # the request times out. If you make the request again with the same request
354
+ # ID, the server can check if original operation with the same request ID
355
+ # was received, and if so, will ignore the second request. This prevents
356
+ # clients from accidentally creating duplicate commitments.
357
+ #
358
+ # The request ID must be a valid UUID with the exception that zero UUID is
359
+ # not supported (00000000-0000-0000-0000-000000000000).
360
+ class AddApplicationStreamInputRequest
361
+ include ::Google::Protobuf::MessageExts
362
+ extend ::Google::Protobuf::MessageExts::ClassMethods
363
+ end
364
+
365
+ # Message for updating stream input to an Application.
366
+ # @!attribute [rw] name
367
+ # @return [::String]
368
+ # Required. the name of the application to retrieve.
369
+ # Format:
370
+ # "projects/\\{project}/locations/\\{location}/applications/\\{application}"
371
+ # @!attribute [rw] application_stream_inputs
372
+ # @return [::Array<::Google::Cloud::VisionAI::V1::ApplicationStreamInput>]
373
+ # The stream inputs to update, the stream resource name is the key of each
374
+ # StreamInput, and it must be unique within each application.
375
+ # @!attribute [rw] request_id
376
+ # @return [::String]
377
+ # Optional. An optional request ID to identify requests. Specify a unique
378
+ # request ID so that if you must retry your request, the server will know to
379
+ # ignore the request if it has already been completed. The server will
380
+ # guarantee that for at least 60 minutes since the first request.
381
+ #
382
+ # For example, consider a situation where you make an initial request and
383
+ # the request times out. If you make the request again with the same request
384
+ # ID, the server can check if original operation with the same request ID
385
+ # was received, and if so, will ignore the second request. This prevents
386
+ # clients from accidentally creating duplicate commitments.
387
+ #
388
+ # The request ID must be a valid UUID with the exception that zero UUID is
389
+ # not supported (00000000-0000-0000-0000-000000000000).
390
+ # @!attribute [rw] allow_missing
391
+ # @return [::Boolean]
392
+ # If true, UpdateApplicationStreamInput will insert stream input to
393
+ # application even if the target stream is not included in the application.
394
+ class UpdateApplicationStreamInputRequest
395
+ include ::Google::Protobuf::MessageExts
396
+ extend ::Google::Protobuf::MessageExts::ClassMethods
397
+ end
398
+
399
+ # Message for removing stream input from an Application.
400
+ # @!attribute [rw] name
401
+ # @return [::String]
402
+ # Required. the name of the application to retrieve.
403
+ # Format:
404
+ # "projects/\\{project}/locations/\\{location}/applications/\\{application}"
405
+ # @!attribute [rw] target_stream_inputs
406
+ # @return [::Array<::Google::Cloud::VisionAI::V1::RemoveApplicationStreamInputRequest::TargetStreamInput>]
407
+ # The target stream to remove.
408
+ # @!attribute [rw] request_id
409
+ # @return [::String]
410
+ # Optional. An optional request ID to identify requests. Specify a unique
411
+ # request ID so that if you must retry your request, the server will know to
412
+ # ignore the request if it has already been completed. The server will
413
+ # guarantee that for at least 60 minutes since the first request.
414
+ #
415
+ # For example, consider a situation where you make an initial request and
416
+ # the request times out. If you make the request again with the same request
417
+ # ID, the server can check if original operation with the same request ID
418
+ # was received, and if so, will ignore the second request. This prevents
419
+ # clients from accidentally creating duplicate commitments.
420
+ #
421
+ # The request ID must be a valid UUID with the exception that zero UUID is
422
+ # not supported (00000000-0000-0000-0000-000000000000).
423
+ class RemoveApplicationStreamInputRequest
424
+ include ::Google::Protobuf::MessageExts
425
+ extend ::Google::Protobuf::MessageExts::ClassMethods
426
+
427
+ # Message about target streamInput to remove.
428
+ # @!attribute [rw] stream
429
+ # @return [::String]
430
+ class TargetStreamInput
431
+ include ::Google::Protobuf::MessageExts
432
+ extend ::Google::Protobuf::MessageExts::ClassMethods
433
+ end
434
+ end
435
+
436
+ # Message for requesting list of Instances.
437
+ # @!attribute [rw] parent
438
+ # @return [::String]
439
+ # Required. Parent value for ListInstancesRequest.
440
+ # @!attribute [rw] page_size
441
+ # @return [::Integer]
442
+ # Requested page size. Server may return fewer items than requested.
443
+ # If unspecified, server will pick an appropriate default.
444
+ # @!attribute [rw] page_token
445
+ # @return [::String]
446
+ # A token identifying a page of results the server should return.
447
+ # @!attribute [rw] filter
448
+ # @return [::String]
449
+ # Filtering results.
450
+ # @!attribute [rw] order_by
451
+ # @return [::String]
452
+ # Hint for how to order the results.
453
+ class ListInstancesRequest
454
+ include ::Google::Protobuf::MessageExts
455
+ extend ::Google::Protobuf::MessageExts::ClassMethods
456
+ end
457
+
458
+ # Message for response to listing Instances.
459
+ # @!attribute [rw] instances
460
+ # @return [::Array<::Google::Cloud::VisionAI::V1::Instance>]
461
+ # The list of Instance.
462
+ # @!attribute [rw] next_page_token
463
+ # @return [::String]
464
+ # A token identifying a page of results the server should return.
465
+ # @!attribute [rw] unreachable
466
+ # @return [::Array<::String>]
467
+ # Locations that could not be reached.
468
+ class ListInstancesResponse
469
+ include ::Google::Protobuf::MessageExts
470
+ extend ::Google::Protobuf::MessageExts::ClassMethods
471
+ end
472
+
473
+ # Message for getting a Instance.
474
+ # @!attribute [rw] name
475
+ # @return [::String]
476
+ # Required. Name of the resource.
477
+ class GetInstanceRequest
478
+ include ::Google::Protobuf::MessageExts
479
+ extend ::Google::Protobuf::MessageExts::ClassMethods
480
+ end
481
+
482
+ # Message for requesting list of Drafts.
483
+ # @!attribute [rw] parent
484
+ # @return [::String]
485
+ # Required. Parent value for ListDraftsRequest.
486
+ # @!attribute [rw] page_size
487
+ # @return [::Integer]
488
+ # Requested page size. Server may return fewer items than requested.
489
+ # If unspecified, server will pick an appropriate default.
490
+ # @!attribute [rw] page_token
491
+ # @return [::String]
492
+ # A token identifying a page of results the server should return.
493
+ # @!attribute [rw] filter
494
+ # @return [::String]
495
+ # Filtering results.
496
+ # @!attribute [rw] order_by
497
+ # @return [::String]
498
+ # Hint for how to order the results.
499
+ class ListDraftsRequest
500
+ include ::Google::Protobuf::MessageExts
501
+ extend ::Google::Protobuf::MessageExts::ClassMethods
502
+ end
503
+
504
+ # Message for response to listing Drafts.
505
+ # @!attribute [rw] drafts
506
+ # @return [::Array<::Google::Cloud::VisionAI::V1::Draft>]
507
+ # The list of Draft.
508
+ # @!attribute [rw] next_page_token
509
+ # @return [::String]
510
+ # A token identifying a page of results the server should return.
511
+ # @!attribute [rw] unreachable
512
+ # @return [::Array<::String>]
513
+ # Locations that could not be reached.
514
+ class ListDraftsResponse
515
+ include ::Google::Protobuf::MessageExts
516
+ extend ::Google::Protobuf::MessageExts::ClassMethods
517
+ end
518
+
519
+ # Message for getting a Draft.
520
+ # @!attribute [rw] name
521
+ # @return [::String]
522
+ # Required. Name of the resource.
523
+ class GetDraftRequest
524
+ include ::Google::Protobuf::MessageExts
525
+ extend ::Google::Protobuf::MessageExts::ClassMethods
526
+ end
527
+
528
+ # Message for creating a Draft.
529
+ # @!attribute [rw] parent
530
+ # @return [::String]
531
+ # Required. Value for parent.
532
+ # @!attribute [rw] draft_id
533
+ # @return [::String]
534
+ # Required. Id of the requesting object.
535
+ # @!attribute [rw] draft
536
+ # @return [::Google::Cloud::VisionAI::V1::Draft]
537
+ # Required. The resource being created.
538
+ # @!attribute [rw] request_id
539
+ # @return [::String]
540
+ # Optional. An optional request ID to identify requests. Specify a unique
541
+ # request ID so that if you must retry your request, the server will know to
542
+ # ignore the request if it has already been completed. The server will
543
+ # guarantee that for at least 60 minutes since the first request.
544
+ #
545
+ # For example, consider a situation where you make an initial request and
546
+ # the request times out. If you make the request again with the same request
547
+ # ID, the server can check if original operation with the same request ID
548
+ # was received, and if so, will ignore the second request. This prevents
549
+ # clients from accidentally creating duplicate commitments.
550
+ #
551
+ # The request ID must be a valid UUID with the exception that zero UUID is
552
+ # not supported (00000000-0000-0000-0000-000000000000).
553
+ class CreateDraftRequest
554
+ include ::Google::Protobuf::MessageExts
555
+ extend ::Google::Protobuf::MessageExts::ClassMethods
556
+ end
557
+
558
+ # Message for updating a Draft.
559
+ # @!attribute [rw] update_mask
560
+ # @return [::Google::Protobuf::FieldMask]
561
+ # Optional. Field mask is used to specify the fields to be overwritten in the
562
+ # Draft resource by the update.
563
+ # The fields specified in the update_mask are relative to the resource, not
564
+ # the full request. A field will be overwritten if it is in the mask. If the
565
+ # user does not provide a mask then all fields will be overwritten.
566
+ # @!attribute [rw] draft
567
+ # @return [::Google::Cloud::VisionAI::V1::Draft]
568
+ # Required. The resource being updated.
569
+ # @!attribute [rw] request_id
570
+ # @return [::String]
571
+ # Optional. An optional request ID to identify requests. Specify a unique
572
+ # request ID so that if you must retry your request, the server will know to
573
+ # ignore the request if it has already been completed. The server will
574
+ # guarantee that for at least 60 minutes since the first request.
575
+ #
576
+ # For example, consider a situation where you make an initial request and
577
+ # the request times out. If you make the request again with the same request
578
+ # ID, the server can check if original operation with the same request ID
579
+ # was received, and if so, will ignore the second request. This prevents
580
+ # clients from accidentally creating duplicate commitments.
581
+ #
582
+ # The request ID must be a valid UUID with the exception that zero UUID is
583
+ # not supported (00000000-0000-0000-0000-000000000000).
584
+ # @!attribute [rw] allow_missing
585
+ # @return [::Boolean]
586
+ # If true, UpdateDraftRequest will create one resource if the target resource
587
+ # doesn't exist, this time, the field_mask will be ignored.
588
+ class UpdateDraftRequest
589
+ include ::Google::Protobuf::MessageExts
590
+ extend ::Google::Protobuf::MessageExts::ClassMethods
591
+ end
592
+
593
+ # Message for updating an ApplicationInstance.
594
+ # @!attribute [rw] name
595
+ # @return [::String]
596
+ # Required. the name of the application to retrieve.
597
+ # Format:
598
+ # "projects/\\{project}/locations/\\{location}/applications/\\{application}"
599
+ # @!attribute [rw] application_instances
600
+ # @return [::Array<::Google::Cloud::VisionAI::V1::UpdateApplicationInstancesRequest::UpdateApplicationInstance>]
601
+ # @!attribute [rw] request_id
602
+ # @return [::String]
603
+ # Optional. An optional request ID to identify requests. Specify a unique
604
+ # request ID so that if you must retry your request, the server will know to
605
+ # ignore the request if it has already been completed. The server will
606
+ # guarantee that for at least 60 minutes since the first request.
607
+ #
608
+ # For example, consider a situation where you make an initial request and
609
+ # the request times out. If you make the request again with the same request
610
+ # ID, the server can check if original operation with the same request ID
611
+ # was received, and if so, will ignore the second request. This prevents
612
+ # clients from accidentally creating duplicate commitments.
613
+ #
614
+ # The request ID must be a valid UUID with the exception that zero UUID is
615
+ # not supported (00000000-0000-0000-0000-000000000000).
616
+ # @!attribute [rw] allow_missing
617
+ # @return [::Boolean]
618
+ # If true, Update Request will create one resource if the target resource
619
+ # doesn't exist, this time, the field_mask will be ignored.
620
+ class UpdateApplicationInstancesRequest
621
+ include ::Google::Protobuf::MessageExts
622
+ extend ::Google::Protobuf::MessageExts::ClassMethods
623
+
624
+ # @!attribute [rw] update_mask
625
+ # @return [::Google::Protobuf::FieldMask]
626
+ # Optional. Field mask is used to specify the fields to be overwritten in
627
+ # the Draft resource by the update. The fields specified in the update_mask
628
+ # are relative to the resource, not the full request. A field will be
629
+ # overwritten if it is in the mask. If the user does not provide a mask
630
+ # then all fields will be overwritten.
631
+ # @!attribute [rw] instance
632
+ # @return [::Google::Cloud::VisionAI::V1::Instance]
633
+ # Required. The resource being updated.
634
+ # @!attribute [rw] instance_id
635
+ # @return [::String]
636
+ # Required. The id of the instance.
637
+ class UpdateApplicationInstance
638
+ include ::Google::Protobuf::MessageExts
639
+ extend ::Google::Protobuf::MessageExts::ClassMethods
640
+ end
641
+ end
642
+
643
+ # Message for deleting a Draft.
644
+ # @!attribute [rw] name
645
+ # @return [::String]
646
+ # Required. Name of the resource.
647
+ # @!attribute [rw] request_id
648
+ # @return [::String]
649
+ # Optional. An optional request ID to identify requests. Specify a unique
650
+ # request ID so that if you must retry your request, the server will know to
651
+ # ignore the request if it has already been completed. The server will
652
+ # guarantee that for at least 60 minutes after the first request.
653
+ #
654
+ # For example, consider a situation where you make an initial request and
655
+ # the request times out. If you make the request again with the same request
656
+ # ID, the server can check if original operation with the same request ID
657
+ # was received, and if so, will ignore the second request. This prevents
658
+ # clients from accidentally creating duplicate commitments.
659
+ #
660
+ # The request ID must be a valid UUID with the exception that zero UUID is
661
+ # not supported (00000000-0000-0000-0000-000000000000).
662
+ class DeleteDraftRequest
663
+ include ::Google::Protobuf::MessageExts
664
+ extend ::Google::Protobuf::MessageExts::ClassMethods
665
+ end
666
+
667
+ # Message for requesting list of Processors.
668
+ # @!attribute [rw] parent
669
+ # @return [::String]
670
+ # Required. Parent value for ListProcessorsRequest.
671
+ # @!attribute [rw] page_size
672
+ # @return [::Integer]
673
+ # Requested page size. Server may return fewer items than requested.
674
+ # If unspecified, server will pick an appropriate default.
675
+ # @!attribute [rw] page_token
676
+ # @return [::String]
677
+ # A token identifying a page of results the server should return.
678
+ # @!attribute [rw] filter
679
+ # @return [::String]
680
+ # Filtering results.
681
+ # @!attribute [rw] order_by
682
+ # @return [::String]
683
+ # Hint for how to order the results.
684
+ class ListProcessorsRequest
685
+ include ::Google::Protobuf::MessageExts
686
+ extend ::Google::Protobuf::MessageExts::ClassMethods
687
+ end
688
+
689
+ # Message for response to listing Processors.
690
+ # @!attribute [rw] processors
691
+ # @return [::Array<::Google::Cloud::VisionAI::V1::Processor>]
692
+ # The list of Processor.
693
+ # @!attribute [rw] next_page_token
694
+ # @return [::String]
695
+ # A token identifying a page of results the server should return.
696
+ # @!attribute [rw] unreachable
697
+ # @return [::Array<::String>]
698
+ # Locations that could not be reached.
699
+ class ListProcessorsResponse
700
+ include ::Google::Protobuf::MessageExts
701
+ extend ::Google::Protobuf::MessageExts::ClassMethods
702
+ end
703
+
704
+ # Request Message for listing Prebuilt Processors.
705
+ # @!attribute [rw] parent
706
+ # @return [::String]
707
+ # Required. Parent path.
708
+ class ListPrebuiltProcessorsRequest
709
+ include ::Google::Protobuf::MessageExts
710
+ extend ::Google::Protobuf::MessageExts::ClassMethods
711
+ end
712
+
713
+ # Response Message for listing Prebuilt Processors.
714
+ # @!attribute [rw] processors
715
+ # @return [::Array<::Google::Cloud::VisionAI::V1::Processor>]
716
+ # The list of Processor.
717
+ class ListPrebuiltProcessorsResponse
718
+ include ::Google::Protobuf::MessageExts
719
+ extend ::Google::Protobuf::MessageExts::ClassMethods
720
+ end
721
+
722
+ # Message for getting a Processor.
723
+ # @!attribute [rw] name
724
+ # @return [::String]
725
+ # Required. Name of the resource.
726
+ class GetProcessorRequest
727
+ include ::Google::Protobuf::MessageExts
728
+ extend ::Google::Protobuf::MessageExts::ClassMethods
729
+ end
730
+
731
+ # Message for creating a Processor.
732
+ # @!attribute [rw] parent
733
+ # @return [::String]
734
+ # Required. Value for parent.
735
+ # @!attribute [rw] processor_id
736
+ # @return [::String]
737
+ # Required. Id of the requesting object.
738
+ # @!attribute [rw] processor
739
+ # @return [::Google::Cloud::VisionAI::V1::Processor]
740
+ # Required. The resource being created.
741
+ # @!attribute [rw] request_id
742
+ # @return [::String]
743
+ # Optional. An optional request ID to identify requests. Specify a unique
744
+ # request ID so that if you must retry your request, the server will know to
745
+ # ignore the request if it has already been completed. The server will
746
+ # guarantee that for at least 60 minutes since the first request.
747
+ #
748
+ # For example, consider a situation where you make an initial request and
749
+ # the request times out. If you make the request again with the same request
750
+ # ID, the server can check if original operation with the same request ID
751
+ # was received, and if so, will ignore the second request. This prevents
752
+ # clients from accidentally creating duplicate commitments.
753
+ #
754
+ # The request ID must be a valid UUID with the exception that zero UUID is
755
+ # not supported (00000000-0000-0000-0000-000000000000).
756
+ class CreateProcessorRequest
757
+ include ::Google::Protobuf::MessageExts
758
+ extend ::Google::Protobuf::MessageExts::ClassMethods
759
+ end
760
+
761
+ # Message for updating a Processor.
762
+ # @!attribute [rw] update_mask
763
+ # @return [::Google::Protobuf::FieldMask]
764
+ # Optional. Field mask is used to specify the fields to be overwritten in the
765
+ # Processor resource by the update.
766
+ # The fields specified in the update_mask are relative to the resource, not
767
+ # the full request. A field will be overwritten if it is in the mask. If the
768
+ # user does not provide a mask then all fields will be overwritten.
769
+ # @!attribute [rw] processor
770
+ # @return [::Google::Cloud::VisionAI::V1::Processor]
771
+ # Required. The resource being updated.
772
+ # @!attribute [rw] request_id
773
+ # @return [::String]
774
+ # Optional. An optional request ID to identify requests. Specify a unique
775
+ # request ID so that if you must retry your request, the server will know to
776
+ # ignore the request if it has already been completed. The server will
777
+ # guarantee that for at least 60 minutes since the first request.
778
+ #
779
+ # For example, consider a situation where you make an initial request and
780
+ # the request times out. If you make the request again with the same request
781
+ # ID, the server can check if original operation with the same request ID
782
+ # was received, and if so, will ignore the second request. This prevents
783
+ # clients from accidentally creating duplicate commitments.
784
+ #
785
+ # The request ID must be a valid UUID with the exception that zero UUID is
786
+ # not supported (00000000-0000-0000-0000-000000000000).
787
+ class UpdateProcessorRequest
788
+ include ::Google::Protobuf::MessageExts
789
+ extend ::Google::Protobuf::MessageExts::ClassMethods
790
+ end
791
+
792
+ # Message for deleting a Processor.
793
+ # @!attribute [rw] name
794
+ # @return [::String]
795
+ # Required. Name of the resource
796
+ # @!attribute [rw] request_id
797
+ # @return [::String]
798
+ # Optional. An optional request ID to identify requests. Specify a unique
799
+ # request ID so that if you must retry your request, the server will know to
800
+ # ignore the request if it has already been completed. The server will
801
+ # guarantee that for at least 60 minutes after the first request.
802
+ #
803
+ # For example, consider a situation where you make an initial request and
804
+ # the request times out. If you make the request again with the same request
805
+ # ID, the server can check if original operation with the same request ID
806
+ # was received, and if so, will ignore the second request. This prevents
807
+ # clients from accidentally creating duplicate commitments.
808
+ #
809
+ # The request ID must be a valid UUID with the exception that zero UUID is
810
+ # not supported (00000000-0000-0000-0000-000000000000).
811
+ class DeleteProcessorRequest
812
+ include ::Google::Protobuf::MessageExts
813
+ extend ::Google::Protobuf::MessageExts::ClassMethods
814
+ end
815
+
816
+ # Message describing Application object
817
+ # @!attribute [rw] name
818
+ # @return [::String]
819
+ # name of resource
820
+ # @!attribute [r] create_time
821
+ # @return [::Google::Protobuf::Timestamp]
822
+ # Output only. [Output only] Create timestamp
823
+ # @!attribute [r] update_time
824
+ # @return [::Google::Protobuf::Timestamp]
825
+ # Output only. [Output only] Update timestamp
826
+ # @!attribute [rw] labels
827
+ # @return [::Google::Protobuf::Map{::String => ::String}]
828
+ # Labels as key value pairs
829
+ # @!attribute [rw] display_name
830
+ # @return [::String]
831
+ # Required. A user friendly display name for the solution.
832
+ # @!attribute [rw] description
833
+ # @return [::String]
834
+ # A description for this application.
835
+ # @!attribute [rw] application_configs
836
+ # @return [::Google::Cloud::VisionAI::V1::ApplicationConfigs]
837
+ # Application graph configuration.
838
+ # @!attribute [r] runtime_info
839
+ # @return [::Google::Cloud::VisionAI::V1::Application::ApplicationRuntimeInfo]
840
+ # Output only. Application graph runtime info. Only exists when application
841
+ # state equals to DEPLOYED.
842
+ # @!attribute [r] state
843
+ # @return [::Google::Cloud::VisionAI::V1::Application::State]
844
+ # Output only. State of the application.
845
+ # @!attribute [rw] billing_mode
846
+ # @return [::Google::Cloud::VisionAI::V1::Application::BillingMode]
847
+ # Billing mode of the application.
848
+ class Application
849
+ include ::Google::Protobuf::MessageExts
850
+ extend ::Google::Protobuf::MessageExts::ClassMethods
851
+
852
+ # Message storing the runtime information of the application.
853
+ # @!attribute [rw] deploy_time
854
+ # @return [::Google::Protobuf::Timestamp]
855
+ # Timestamp when the engine be deployed
856
+ # @!attribute [rw] global_output_resources
857
+ # @return [::Array<::Google::Cloud::VisionAI::V1::Application::ApplicationRuntimeInfo::GlobalOutputResource>]
858
+ # Globally created resources like warehouse dataschemas.
859
+ # @!attribute [rw] monitoring_config
860
+ # @return [::Google::Cloud::VisionAI::V1::Application::ApplicationRuntimeInfo::MonitoringConfig]
861
+ # Monitoring-related configuration for this application.
862
+ class ApplicationRuntimeInfo
863
+ include ::Google::Protobuf::MessageExts
864
+ extend ::Google::Protobuf::MessageExts::ClassMethods
865
+
866
+ # Message about output resources from application.
867
+ # @!attribute [rw] output_resource
868
+ # @return [::String]
869
+ # The full resource name of the outputted resources.
870
+ # @!attribute [rw] producer_node
871
+ # @return [::String]
872
+ # The name of graph node who produces the output resource name.
873
+ # For example:
874
+ # output_resource:
875
+ # /projects/123/locations/us-central1/corpora/my-corpus/dataSchemas/my-schema
876
+ # producer_node: occupancy-count
877
+ # @!attribute [rw] key
878
+ # @return [::String]
879
+ # The key of the output resource, it has to be unique within the same
880
+ # producer node. One producer node can output several output resources,
881
+ # the key can be used to match corresponding output resources.
882
+ class GlobalOutputResource
883
+ include ::Google::Protobuf::MessageExts
884
+ extend ::Google::Protobuf::MessageExts::ClassMethods
885
+ end
886
+
887
+ # Monitoring-related configuration for an application.
888
+ # @!attribute [rw] enabled
889
+ # @return [::Boolean]
890
+ # Whether this application has monitoring enabled.
891
+ class MonitoringConfig
892
+ include ::Google::Protobuf::MessageExts
893
+ extend ::Google::Protobuf::MessageExts::ClassMethods
894
+ end
895
+ end
896
+
897
+ # @!attribute [rw] key
898
+ # @return [::String]
899
+ # @!attribute [rw] value
900
+ # @return [::String]
901
+ class LabelsEntry
902
+ include ::Google::Protobuf::MessageExts
903
+ extend ::Google::Protobuf::MessageExts::ClassMethods
904
+ end
905
+
906
+ # State of the Application
907
+ module State
908
+ # The default value. This value is used if the state is omitted.
909
+ STATE_UNSPECIFIED = 0
910
+
911
+ # State CREATED.
912
+ CREATED = 1
913
+
914
+ # State DEPLOYING.
915
+ DEPLOYING = 2
916
+
917
+ # State DEPLOYED.
918
+ DEPLOYED = 3
919
+
920
+ # State UNDEPLOYING.
921
+ UNDEPLOYING = 4
922
+
923
+ # State DELETED.
924
+ DELETED = 5
925
+
926
+ # State ERROR.
927
+ ERROR = 6
928
+
929
+ # State CREATING.
930
+ CREATING = 7
931
+
932
+ # State Updating.
933
+ UPDATING = 8
934
+
935
+ # State Deleting.
936
+ DELETING = 9
937
+
938
+ # State Fixing.
939
+ FIXING = 10
940
+ end
941
+
942
+ # Billing mode of the Application
943
+ module BillingMode
944
+ # The default value.
945
+ BILLING_MODE_UNSPECIFIED = 0
946
+
947
+ # Pay as you go billing mode.
948
+ PAYG = 1
949
+
950
+ # Monthly billing mode.
951
+ MONTHLY = 2
952
+ end
953
+ end
954
+
955
+ # Message storing the graph of the application.
956
+ # @!attribute [rw] nodes
957
+ # @return [::Array<::Google::Cloud::VisionAI::V1::Node>]
958
+ # A list of nodes in the application graph.
959
+ # @!attribute [rw] event_delivery_config
960
+ # @return [::Google::Cloud::VisionAI::V1::ApplicationConfigs::EventDeliveryConfig]
961
+ # Event-related configuration for this application.
962
+ class ApplicationConfigs
963
+ include ::Google::Protobuf::MessageExts
964
+ extend ::Google::Protobuf::MessageExts::ClassMethods
965
+
966
+ # message storing the config for event delivery
967
+ # @!attribute [rw] channel
968
+ # @return [::String]
969
+ # The delivery channel for the event notification, only pub/sub topic is
970
+ # supported now.
971
+ # Example channel:
972
+ # [//pubsub.googleapis.com/projects/visionai-testing-stable/topics/test-topic]
973
+ # @!attribute [rw] minimal_delivery_interval
974
+ # @return [::Google::Protobuf::Duration]
975
+ # The expected delivery interval for the same event. The same event won't
976
+ # be notified multiple times during this internal event that it is
977
+ # happening multiple times during the period of time.The same event is
978
+ # identified by <event_id, app_platform_metadata>.
979
+ class EventDeliveryConfig
980
+ include ::Google::Protobuf::MessageExts
981
+ extend ::Google::Protobuf::MessageExts::ClassMethods
982
+ end
983
+ end
984
+
985
+ # Message describing node object.
986
+ # @!attribute [rw] output_all_output_channels_to_stream
987
+ # @return [::Boolean]
988
+ # By default, the output of the node will only be available to downstream
989
+ # nodes. To consume the direct output from the application node, the output
990
+ # must be sent to Vision AI Streams at first.
991
+ #
992
+ # By setting output_all_output_channels_to_stream to true, App Platform
993
+ # will automatically send all the outputs of the current node to Vision AI
994
+ # Stream resources (one stream per output channel). The output stream
995
+ # resource will be created by App Platform automatically during deployment
996
+ # and deleted after application un-deployment.
997
+ # Note that this config applies to all the Application Instances.
998
+ #
999
+ # The output stream can be override at instance level by
1000
+ # configuring the `output_resources` section of Instance resource.
1001
+ # `producer_node` should be current node, `output_resource_binding` should
1002
+ # be the output channel name (or leave it blank if there is only 1 output
1003
+ # channel of the processor) and `output_resource` should be the target
1004
+ # output stream.
1005
+ # @!attribute [rw] name
1006
+ # @return [::String]
1007
+ # Required. A unique name for the node.
1008
+ # @!attribute [rw] display_name
1009
+ # @return [::String]
1010
+ # A user friendly display name for the node.
1011
+ # @!attribute [rw] node_config
1012
+ # @return [::Google::Cloud::VisionAI::V1::ProcessorConfig]
1013
+ # Node config.
1014
+ # @!attribute [rw] processor
1015
+ # @return [::String]
1016
+ # Processor name refer to the chosen processor resource.
1017
+ # @!attribute [rw] parents
1018
+ # @return [::Array<::Google::Cloud::VisionAI::V1::Node::InputEdge>]
1019
+ # Parent node. Input node should not have parent node. For V1 Alpha1/Beta
1020
+ # only media warehouse node can have multiple parents, other types of nodes
1021
+ # will only have one parent.
1022
+ class Node
1023
+ include ::Google::Protobuf::MessageExts
1024
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1025
+
1026
+ # Message describing one edge pointing into a node.
1027
+ # @!attribute [rw] parent_node
1028
+ # @return [::String]
1029
+ # The name of the parent node.
1030
+ # @!attribute [rw] parent_output_channel
1031
+ # @return [::String]
1032
+ # The connected output artifact of the parent node.
1033
+ # It can be omitted if target processor only has 1 output artifact.
1034
+ # @!attribute [rw] connected_input_channel
1035
+ # @return [::String]
1036
+ # The connected input channel of the current node's processor.
1037
+ # It can be omitted if target processor only has 1 input channel.
1038
+ class InputEdge
1039
+ include ::Google::Protobuf::MessageExts
1040
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1041
+ end
1042
+ end
1043
+
1044
+ # Message describing Draft object
1045
+ # @!attribute [rw] name
1046
+ # @return [::String]
1047
+ # name of resource
1048
+ # @!attribute [r] create_time
1049
+ # @return [::Google::Protobuf::Timestamp]
1050
+ # Output only. [Output only] Create timestamp
1051
+ # @!attribute [r] update_time
1052
+ # @return [::Google::Protobuf::Timestamp]
1053
+ # Output only. [Output only] Create timestamp
1054
+ # @!attribute [rw] labels
1055
+ # @return [::Google::Protobuf::Map{::String => ::String}]
1056
+ # Labels as key value pairs
1057
+ # @!attribute [rw] display_name
1058
+ # @return [::String]
1059
+ # Required. A user friendly display name for the solution.
1060
+ # @!attribute [rw] description
1061
+ # @return [::String]
1062
+ # A description for this application.
1063
+ # @!attribute [rw] draft_application_configs
1064
+ # @return [::Google::Cloud::VisionAI::V1::ApplicationConfigs]
1065
+ # The draft application configs which haven't been updated to an application.
1066
+ class Draft
1067
+ include ::Google::Protobuf::MessageExts
1068
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1069
+
1070
+ # @!attribute [rw] key
1071
+ # @return [::String]
1072
+ # @!attribute [rw] value
1073
+ # @return [::String]
1074
+ class LabelsEntry
1075
+ include ::Google::Protobuf::MessageExts
1076
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1077
+ end
1078
+ end
1079
+
1080
+ # Message describing Instance object
1081
+ # Next ID: 12
1082
+ # @!attribute [r] name
1083
+ # @return [::String]
1084
+ # Output only. name of resource
1085
+ # @!attribute [r] create_time
1086
+ # @return [::Google::Protobuf::Timestamp]
1087
+ # Output only. [Output only] Create timestamp
1088
+ # @!attribute [r] update_time
1089
+ # @return [::Google::Protobuf::Timestamp]
1090
+ # Output only. [Output only] Update timestamp
1091
+ # @!attribute [rw] labels
1092
+ # @return [::Google::Protobuf::Map{::String => ::String}]
1093
+ # Labels as key value pairs
1094
+ # @!attribute [rw] display_name
1095
+ # @return [::String]
1096
+ # Required. A user friendly display name for the solution.
1097
+ # @!attribute [rw] description
1098
+ # @return [::String]
1099
+ # A description for this instance.
1100
+ # @!attribute [rw] instance_type
1101
+ # @return [::Google::Cloud::VisionAI::V1::Instance::InstanceType]
1102
+ # The instance type for the current instance.
1103
+ # @!attribute [rw] input_resources
1104
+ # @return [::Array<::Google::Cloud::VisionAI::V1::Instance::InputResource>]
1105
+ # The input resources for the current application instance.
1106
+ # For example:
1107
+ # input_resources:
1108
+ # visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/stream-a
1109
+ # @!attribute [rw] output_resources
1110
+ # @return [::Array<::Google::Cloud::VisionAI::V1::Instance::OutputResource>]
1111
+ # All the output resources associated to one application instance.
1112
+ # @!attribute [rw] state
1113
+ # @return [::Google::Cloud::VisionAI::V1::Instance::State]
1114
+ # State of the instance.
1115
+ class Instance
1116
+ include ::Google::Protobuf::MessageExts
1117
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1118
+
1119
+ # Message of input resource used in one application instance.
1120
+ # @!attribute [rw] input_resource
1121
+ # @return [::String]
1122
+ # The direct input resource name.
1123
+ # If the instance type is STREAMING_PREDICTION, the input resource is in
1124
+ # format of
1125
+ # "projects/123/locations/us-central1/clusters/456/streams/stream-a".
1126
+ # If the instance type is BATCH_PREDICTION from Cloud Storage input
1127
+ # container, the input resource is in format of "gs://bucket-a".
1128
+ # @!attribute [rw] annotated_stream
1129
+ # @deprecated This field is deprecated and may be removed in the next major version update.
1130
+ # @return [::Google::Cloud::VisionAI::V1::StreamWithAnnotation]
1131
+ # If the input resource is VisionAI Stream, the associated annotations
1132
+ # can be specified using annotated_stream instead.
1133
+ # @!attribute [rw] data_type
1134
+ # @return [::Google::Cloud::VisionAI::V1::DataType]
1135
+ # Data type for the current input resource.
1136
+ # @!attribute [rw] consumer_node
1137
+ # @return [::String]
1138
+ # The name of graph node who receives the input resource.
1139
+ # For example:
1140
+ # input_resource:
1141
+ # visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/input-stream-a
1142
+ # consumer_node: stream-input
1143
+ # @!attribute [rw] input_resource_binding
1144
+ # @return [::String]
1145
+ # The specific input resource binding which will consume the current Input
1146
+ # Resource, can be ignored is there is only 1 input binding.
1147
+ # @!attribute [rw] annotations
1148
+ # @return [::Google::Cloud::VisionAI::V1::ResourceAnnotations]
1149
+ # Contains resource annotations.
1150
+ class InputResource
1151
+ include ::Google::Protobuf::MessageExts
1152
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1153
+ end
1154
+
1155
+ # Message of output resource used in one application instance.
1156
+ # @!attribute [rw] output_resource
1157
+ # @return [::String]
1158
+ # The output resource name for the current application instance.
1159
+ # @!attribute [rw] producer_node
1160
+ # @return [::String]
1161
+ # The name of graph node who produces the output resource name.
1162
+ # For example:
1163
+ # output_resource:
1164
+ # /projects/123/locations/us-central1/clusters/456/streams/output-application-789-stream-a-occupancy-counting
1165
+ # producer_node: occupancy-counting
1166
+ # @!attribute [rw] output_resource_binding
1167
+ # @return [::String]
1168
+ # The specific output resource binding which produces the current
1169
+ # OutputResource.
1170
+ # @!attribute [r] is_temporary
1171
+ # @return [::Boolean]
1172
+ # Output only. Whether the output resource is temporary which means the
1173
+ # resource is generated during the deployment of the application. Temporary
1174
+ # resource will be deleted during the undeployment of the application.
1175
+ # @!attribute [r] autogen
1176
+ # @return [::Boolean]
1177
+ # Output only. Whether the output resource is created automatically by the
1178
+ # Vision AI App Platform.
1179
+ class OutputResource
1180
+ include ::Google::Protobuf::MessageExts
1181
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1182
+ end
1183
+
1184
+ # @!attribute [rw] key
1185
+ # @return [::String]
1186
+ # @!attribute [rw] value
1187
+ # @return [::String]
1188
+ class LabelsEntry
1189
+ include ::Google::Protobuf::MessageExts
1190
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1191
+ end
1192
+
1193
+ # All the supported instance types.
1194
+ module InstanceType
1195
+ # Unspecified instance type.
1196
+ # If the instance type is not specified, the default one is
1197
+ # STREAMING_PREDICTION.
1198
+ INSTANCE_TYPE_UNSPECIFIED = 0
1199
+
1200
+ # Instance type for streaming prediction.
1201
+ STREAMING_PREDICTION = 1
1202
+
1203
+ # Instance type for batch prediction.
1204
+ BATCH_PREDICTION = 2
1205
+
1206
+ # Instance type for online prediction.
1207
+ ONLINE_PREDICTION = 3
1208
+ end
1209
+
1210
+ # State of the Instance
1211
+ module State
1212
+ # The default value. This value is used if the state is omitted.
1213
+ STATE_UNSPECIFIED = 0
1214
+
1215
+ # State CREATING.
1216
+ CREATING = 1
1217
+
1218
+ # State CREATED.
1219
+ CREATED = 2
1220
+
1221
+ # State DEPLOYING.
1222
+ DEPLOYING = 3
1223
+
1224
+ # State DEPLOYED.
1225
+ DEPLOYED = 4
1226
+
1227
+ # State UNDEPLOYING.
1228
+ UNDEPLOYING = 5
1229
+
1230
+ # State DELETED.
1231
+ DELETED = 6
1232
+
1233
+ # State ERROR.
1234
+ ERROR = 7
1235
+
1236
+ # State Updating
1237
+ UPDATING = 8
1238
+
1239
+ # State Deleting.
1240
+ DELETING = 9
1241
+
1242
+ # State Fixing.
1243
+ FIXING = 10
1244
+
1245
+ # State Finished.
1246
+ FINISHED = 11
1247
+ end
1248
+ end
1249
+
1250
+ # Message for creating a Instance.
1251
+ # @!attribute [rw] instance_id
1252
+ # @return [::String]
1253
+ # Required. Id of the requesting object.
1254
+ # @!attribute [rw] instance
1255
+ # @return [::Google::Cloud::VisionAI::V1::Instance]
1256
+ # Required. The resource being created.
1257
+ class ApplicationInstance
1258
+ include ::Google::Protobuf::MessageExts
1259
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1260
+ end
1261
+
1262
+ # Message describing Processor object.
1263
+ # Next ID: 19
1264
+ # @!attribute [rw] name
1265
+ # @return [::String]
1266
+ # name of resource.
1267
+ # @!attribute [r] create_time
1268
+ # @return [::Google::Protobuf::Timestamp]
1269
+ # Output only. [Output only] Create timestamp.
1270
+ # @!attribute [r] update_time
1271
+ # @return [::Google::Protobuf::Timestamp]
1272
+ # Output only. [Output only] Update timestamp.
1273
+ # @!attribute [rw] labels
1274
+ # @return [::Google::Protobuf::Map{::String => ::String}]
1275
+ # Labels as key value pairs.
1276
+ # @!attribute [rw] display_name
1277
+ # @return [::String]
1278
+ # Required. A user friendly display name for the processor.
1279
+ # @!attribute [rw] description
1280
+ # @return [::String]
1281
+ # Illustrative sentences for describing the functionality of the processor.
1282
+ # @!attribute [r] processor_type
1283
+ # @return [::Google::Cloud::VisionAI::V1::Processor::ProcessorType]
1284
+ # Output only. Processor Type.
1285
+ # @!attribute [rw] model_type
1286
+ # @return [::Google::Cloud::VisionAI::V1::ModelType]
1287
+ # Model Type.
1288
+ # @!attribute [rw] custom_processor_source_info
1289
+ # @return [::Google::Cloud::VisionAI::V1::CustomProcessorSourceInfo]
1290
+ # Source info for customer created processor.
1291
+ # @!attribute [r] state
1292
+ # @return [::Google::Cloud::VisionAI::V1::Processor::ProcessorState]
1293
+ # Output only. State of the Processor.
1294
+ # @!attribute [r] processor_io_spec
1295
+ # @return [::Google::Cloud::VisionAI::V1::ProcessorIOSpec]
1296
+ # Output only. [Output only] The input / output specifications of a
1297
+ # processor, each type of processor has fixed input / output specs which
1298
+ # cannot be altered by customer.
1299
+ # @!attribute [r] configuration_typeurl
1300
+ # @return [::String]
1301
+ # Output only. The corresponding configuration can be used in the Application
1302
+ # to customize the behavior of the processor.
1303
+ # @!attribute [r] supported_annotation_types
1304
+ # @return [::Array<::Google::Cloud::VisionAI::V1::StreamAnnotationType>]
1305
+ # @!attribute [rw] supports_post_processing
1306
+ # @return [::Boolean]
1307
+ # Indicates if the processor supports post processing.
1308
+ # @!attribute [rw] supported_instance_types
1309
+ # @return [::Array<::Google::Cloud::VisionAI::V1::Instance::InstanceType>]
1310
+ # Which instance types this processor supports; if empty, this default to
1311
+ # STREAMING_PREDICTION.
1312
+ class Processor
1313
+ include ::Google::Protobuf::MessageExts
1314
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1315
+
1316
+ # @!attribute [rw] key
1317
+ # @return [::String]
1318
+ # @!attribute [rw] value
1319
+ # @return [::String]
1320
+ class LabelsEntry
1321
+ include ::Google::Protobuf::MessageExts
1322
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1323
+ end
1324
+
1325
+ # Type
1326
+ module ProcessorType
1327
+ # Processor Type UNSPECIFIED.
1328
+ PROCESSOR_TYPE_UNSPECIFIED = 0
1329
+
1330
+ # Processor Type PRETRAINED.
1331
+ # Pretrained processor is developed by Vision AI App Platform with
1332
+ # state-of-the-art vision data processing functionality, like occupancy
1333
+ # counting or person blur. Pretrained processor is usually publicly
1334
+ # available.
1335
+ PRETRAINED = 1
1336
+
1337
+ # Processor Type CUSTOM.
1338
+ # Custom processors are specialized processors which are either uploaded by
1339
+ # customers or imported from other GCP platform (for example Vertex AI).
1340
+ # Custom processor is only visible to the creator.
1341
+ CUSTOM = 2
1342
+
1343
+ # Processor Type CONNECTOR.
1344
+ # Connector processors are special processors which perform I/O for the
1345
+ # application, they do not processing the data but either deliver the data
1346
+ # to other processors or receive data from other processors.
1347
+ CONNECTOR = 3
1348
+ end
1349
+
1350
+ module ProcessorState
1351
+ # Unspecified Processor state.
1352
+ PROCESSOR_STATE_UNSPECIFIED = 0
1353
+
1354
+ # Processor is being created (not ready for use).
1355
+ CREATING = 1
1356
+
1357
+ # Processor is and ready for use.
1358
+ ACTIVE = 2
1359
+
1360
+ # Processor is being deleted (not ready for use).
1361
+ DELETING = 3
1362
+
1363
+ # Processor deleted or creation failed .
1364
+ FAILED = 4
1365
+ end
1366
+ end
1367
+
1368
+ # Message describing the input / output specifications of a processor.
1369
+ # @!attribute [rw] graph_input_channel_specs
1370
+ # @return [::Array<::Google::Cloud::VisionAI::V1::ProcessorIOSpec::GraphInputChannelSpec>]
1371
+ # For processors with input_channel_specs, the processor must be explicitly
1372
+ # connected to another processor.
1373
+ # @!attribute [rw] graph_output_channel_specs
1374
+ # @return [::Array<::Google::Cloud::VisionAI::V1::ProcessorIOSpec::GraphOutputChannelSpec>]
1375
+ # The output artifact specifications for the current processor.
1376
+ # @!attribute [rw] instance_resource_input_binding_specs
1377
+ # @return [::Array<::Google::Cloud::VisionAI::V1::ProcessorIOSpec::InstanceResourceInputBindingSpec>]
1378
+ # The input resource that needs to be fed from the application instance.
1379
+ # @!attribute [rw] instance_resource_output_binding_specs
1380
+ # @return [::Array<::Google::Cloud::VisionAI::V1::ProcessorIOSpec::InstanceResourceOutputBindingSpec>]
1381
+ # The output resource that the processor will generate per instance.
1382
+ # Other than the explicitly listed output bindings here, all the processors'
1383
+ # GraphOutputChannels can be binded to stream resource. The bind name then is
1384
+ # the same as the GraphOutputChannel's name.
1385
+ class ProcessorIOSpec
1386
+ include ::Google::Protobuf::MessageExts
1387
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1388
+
1389
+ # Message for input channel specification.
1390
+ # @!attribute [rw] name
1391
+ # @return [::String]
1392
+ # The name of the current input channel.
1393
+ # @!attribute [rw] data_type
1394
+ # @return [::Google::Cloud::VisionAI::V1::DataType]
1395
+ # The data types of the current input channel.
1396
+ # When this field has more than 1 value, it means this input channel can be
1397
+ # connected to either of these different data types.
1398
+ # @!attribute [rw] accepted_data_type_uris
1399
+ # @return [::Array<::String>]
1400
+ # If specified, only those detailed data types can be connected to the
1401
+ # processor. For example, jpeg stream for MEDIA, or PredictionResult proto
1402
+ # for PROTO type. If unspecified, then any proto is accepted.
1403
+ # @!attribute [rw] required
1404
+ # @return [::Boolean]
1405
+ # Whether the current input channel is required by the processor.
1406
+ # For example, for a processor with required video input and optional audio
1407
+ # input, if video input is missing, the application will be rejected while
1408
+ # the audio input can be missing as long as the video input exists.
1409
+ # @!attribute [rw] max_connection_allowed
1410
+ # @return [::Integer]
1411
+ # How many input edges can be connected to this input channel. 0 means
1412
+ # unlimited.
1413
+ class GraphInputChannelSpec
1414
+ include ::Google::Protobuf::MessageExts
1415
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1416
+ end
1417
+
1418
+ # Message for output channel specification.
1419
+ # @!attribute [rw] name
1420
+ # @return [::String]
1421
+ # The name of the current output channel.
1422
+ # @!attribute [rw] data_type
1423
+ # @return [::Google::Cloud::VisionAI::V1::DataType]
1424
+ # The data type of the current output channel.
1425
+ # @!attribute [rw] data_type_uri
1426
+ # @return [::String]
1427
+ class GraphOutputChannelSpec
1428
+ include ::Google::Protobuf::MessageExts
1429
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1430
+ end
1431
+
1432
+ # Message for instance resource channel specification.
1433
+ # External resources are virtual nodes which are not expressed in the
1434
+ # application graph. Each processor expresses its out-graph spec, so customer
1435
+ # is able to override the external source or destinations to the
1436
+ # @!attribute [rw] config_type_uri
1437
+ # @return [::String]
1438
+ # The configuration proto that includes the Googleapis resources. I.e.
1439
+ # type.googleapis.com/google.cloud.vision.v1.StreamWithAnnotation
1440
+ # @!attribute [rw] resource_type_uri
1441
+ # @return [::String]
1442
+ # The direct type url of Googleapis resource. i.e.
1443
+ # type.googleapis.com/google.cloud.vision.v1.Asset
1444
+ # @!attribute [rw] name
1445
+ # @return [::String]
1446
+ # Name of the input binding, unique within the processor.
1447
+ class InstanceResourceInputBindingSpec
1448
+ include ::Google::Protobuf::MessageExts
1449
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1450
+ end
1451
+
1452
+ # @!attribute [rw] name
1453
+ # @return [::String]
1454
+ # Name of the output binding, unique within the processor.
1455
+ # @!attribute [rw] resource_type_uri
1456
+ # @return [::String]
1457
+ # The resource type uri of the acceptable output resource.
1458
+ # @!attribute [rw] explicit
1459
+ # @return [::Boolean]
1460
+ # Whether the output resource needs to be explicitly set in the instance.
1461
+ # If it is false, the processor will automatically generate it if required.
1462
+ class InstanceResourceOutputBindingSpec
1463
+ include ::Google::Protobuf::MessageExts
1464
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1465
+ end
1466
+ end
1467
+
1468
+ # Describes the source info for a custom processor.
1469
+ # @!attribute [rw] vertex_model
1470
+ # @return [::String]
1471
+ # The resource name original model hosted in the vertex AI platform.
1472
+ # @!attribute [rw] product_recognizer_artifact
1473
+ # @return [::Google::Cloud::VisionAI::V1::CustomProcessorSourceInfo::ProductRecognizerArtifact]
1474
+ # Artifact for product recognizer.
1475
+ # @!attribute [rw] source_type
1476
+ # @return [::Google::Cloud::VisionAI::V1::CustomProcessorSourceInfo::SourceType]
1477
+ # The original product which holds the custom processor's functionality.
1478
+ # @!attribute [r] additional_info
1479
+ # @return [::Google::Protobuf::Map{::String => ::String}]
1480
+ # Output only. Additional info related to the imported custom processor.
1481
+ # Data is filled in by app platform during the processor creation.
1482
+ # @!attribute [rw] model_schema
1483
+ # @return [::Google::Cloud::VisionAI::V1::CustomProcessorSourceInfo::ModelSchema]
1484
+ # Model schema files which specifies the signature of the model.
1485
+ # For VERTEX_CUSTOM models, instances schema is required.
1486
+ # If instances schema is not specified during the processor creation,
1487
+ # VisionAI Platform will try to get it from Vertex, if it doesn't exist, the
1488
+ # creation will fail.
1489
+ class CustomProcessorSourceInfo
1490
+ include ::Google::Protobuf::MessageExts
1491
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1492
+
1493
+ # Message describes product recognizer artifact.
1494
+ # @!attribute [rw] retail_product_recognition_index
1495
+ # @return [::String]
1496
+ # Required. Resource name of RetailProductRecognitionIndex.
1497
+ # Format is
1498
+ # 'projects/*/locations/*/retailCatalogs/*/retailProductRecognitionIndexes/*'
1499
+ # @!attribute [rw] vertex_model
1500
+ # @return [::String]
1501
+ # Optional. The resource name of embedding model hosted in Vertex AI
1502
+ # Platform.
1503
+ class ProductRecognizerArtifact
1504
+ include ::Google::Protobuf::MessageExts
1505
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1506
+ end
1507
+
1508
+ # The schema is defined as an OpenAPI 3.0.2 [Schema
1509
+ # Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
1510
+ # @!attribute [rw] instances_schema
1511
+ # @return [::Google::Cloud::VisionAI::V1::GcsSource]
1512
+ # Cloud Storage location to a YAML file that defines the format of a single
1513
+ # instance used in prediction and explanation requests.
1514
+ # @!attribute [rw] parameters_schema
1515
+ # @return [::Google::Cloud::VisionAI::V1::GcsSource]
1516
+ # Cloud Storage location to a YAML file that defines the prediction and
1517
+ # explanation parameters.
1518
+ # @!attribute [rw] predictions_schema
1519
+ # @return [::Google::Cloud::VisionAI::V1::GcsSource]
1520
+ # Cloud Storage location to a YAML file that defines the format of a single
1521
+ # prediction or explanation.
1522
+ class ModelSchema
1523
+ include ::Google::Protobuf::MessageExts
1524
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1525
+ end
1526
+
1527
+ # @!attribute [rw] key
1528
+ # @return [::String]
1529
+ # @!attribute [rw] value
1530
+ # @return [::String]
1531
+ class AdditionalInfoEntry
1532
+ include ::Google::Protobuf::MessageExts
1533
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1534
+ end
1535
+
1536
+ # Source type of the imported custom processor.
1537
+ module SourceType
1538
+ # Source type unspecified.
1539
+ SOURCE_TYPE_UNSPECIFIED = 0
1540
+
1541
+ # Custom processors coming from Vertex AutoML product.
1542
+ VERTEX_AUTOML = 1
1543
+
1544
+ # Custom processors coming from general custom models from Vertex.
1545
+ VERTEX_CUSTOM = 2
1546
+
1547
+ # Source for Product Recognizer.
1548
+ PRODUCT_RECOGNIZER = 3
1549
+ end
1550
+ end
1551
+
1552
+ # Next ID: 35
1553
+ # @!attribute [rw] video_stream_input_config
1554
+ # @return [::Google::Cloud::VisionAI::V1::VideoStreamInputConfig]
1555
+ # Configs of stream input processor.
1556
+ # @!attribute [rw] ai_enabled_devices_input_config
1557
+ # @return [::Google::Cloud::VisionAI::V1::AIEnabledDevicesInputConfig]
1558
+ # Config of AI-enabled input devices.
1559
+ # @!attribute [rw] media_warehouse_config
1560
+ # @return [::Google::Cloud::VisionAI::V1::MediaWarehouseConfig]
1561
+ # Configs of media warehouse processor.
1562
+ # @!attribute [rw] person_blur_config
1563
+ # @return [::Google::Cloud::VisionAI::V1::PersonBlurConfig]
1564
+ # Configs of person blur processor.
1565
+ # @!attribute [rw] occupancy_count_config
1566
+ # @return [::Google::Cloud::VisionAI::V1::OccupancyCountConfig]
1567
+ # Configs of occupancy count processor.
1568
+ # @!attribute [rw] person_vehicle_detection_config
1569
+ # @return [::Google::Cloud::VisionAI::V1::PersonVehicleDetectionConfig]
1570
+ # Configs of Person Vehicle Detection processor.
1571
+ # @!attribute [rw] vertex_automl_vision_config
1572
+ # @return [::Google::Cloud::VisionAI::V1::VertexAutoMLVisionConfig]
1573
+ # Configs of Vertex AutoML vision processor.
1574
+ # @!attribute [rw] vertex_automl_video_config
1575
+ # @return [::Google::Cloud::VisionAI::V1::VertexAutoMLVideoConfig]
1576
+ # Configs of Vertex AutoML video processor.
1577
+ # @!attribute [rw] vertex_custom_config
1578
+ # @return [::Google::Cloud::VisionAI::V1::VertexCustomConfig]
1579
+ # Configs of Vertex Custom processor.
1580
+ # @!attribute [rw] general_object_detection_config
1581
+ # @return [::Google::Cloud::VisionAI::V1::GeneralObjectDetectionConfig]
1582
+ # Configs of General Object Detection processor.
1583
+ # @!attribute [rw] big_query_config
1584
+ # @return [::Google::Cloud::VisionAI::V1::BigQueryConfig]
1585
+ # Configs of BigQuery processor.
1586
+ # @!attribute [rw] gcs_output_config
1587
+ # @return [::Google::Cloud::VisionAI::V1::GcsOutputConfig]
1588
+ # Configs of Cloud Storage output processor.
1589
+ # @!attribute [rw] product_recognizer_config
1590
+ # @return [::Google::Cloud::VisionAI::V1::ProductRecognizerConfig]
1591
+ # Runtime configs of Product Recognizer processor.
1592
+ # @!attribute [rw] personal_protective_equipment_detection_config
1593
+ # @return [::Google::Cloud::VisionAI::V1::PersonalProtectiveEquipmentDetectionConfig]
1594
+ # Configs of personal_protective_equipment_detection_config
1595
+ # @!attribute [rw] tag_recognizer_config
1596
+ # @return [::Google::Cloud::VisionAI::V1::TagRecognizerConfig]
1597
+ # Runtime configs of Tag Recognizer processor.
1598
+ # @!attribute [rw] universal_input_config
1599
+ # @return [::Google::Cloud::VisionAI::V1::UniversalInputConfig]
1600
+ # Runtime configs of UniversalInput processor.
1601
+ # @!attribute [rw] experimental_config
1602
+ # @return [::Google::Protobuf::Struct]
1603
+ # Experimental configurations. Structured object containing not-yet-stable
1604
+ # processor parameters.
1605
+ class ProcessorConfig
1606
+ include ::Google::Protobuf::MessageExts
1607
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1608
+ end
1609
+
1610
+ # Message describing Vision AI stream with application specific annotations.
1611
+ # All the StreamAnnotation object inside this message MUST have unique id.
1612
+ # @!attribute [rw] stream
1613
+ # @return [::String]
1614
+ # Vision AI Stream resource name.
1615
+ # @!attribute [rw] application_annotations
1616
+ # @return [::Array<::Google::Cloud::VisionAI::V1::StreamAnnotation>]
1617
+ # Annotations that will be applied to the whole application.
1618
+ # @!attribute [rw] node_annotations
1619
+ # @return [::Array<::Google::Cloud::VisionAI::V1::StreamWithAnnotation::NodeAnnotation>]
1620
+ # Annotations that will be applied to the specific node of the application.
1621
+ # If the same type of the annotations is applied to both application and
1622
+ # node, the node annotation will be added in addition to the global
1623
+ # application one.
1624
+ # For example, if there is one active zone annotation for the whole
1625
+ # application and one active zone annotation for the Occupancy Analytic
1626
+ # processor, then the Occupancy Analytic processor will have two active zones
1627
+ # defined.
1628
+ class StreamWithAnnotation
1629
+ include ::Google::Protobuf::MessageExts
1630
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1631
+
1632
+ # Message describing annotations specific to application node.
1633
+ # @!attribute [rw] node
1634
+ # @return [::String]
1635
+ # The node name of the application graph.
1636
+ # @!attribute [rw] annotations
1637
+ # @return [::Array<::Google::Cloud::VisionAI::V1::StreamAnnotation>]
1638
+ # The node specific stream annotations.
1639
+ class NodeAnnotation
1640
+ include ::Google::Protobuf::MessageExts
1641
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1642
+ end
1643
+ end
1644
+
1645
+ # Message describing annotations specific to application node.
1646
+ # This message is a duplication of StreamWithAnnotation.NodeAnnotation.
1647
+ # @!attribute [rw] node
1648
+ # @return [::String]
1649
+ # The node name of the application graph.
1650
+ # @!attribute [rw] annotations
1651
+ # @return [::Array<::Google::Cloud::VisionAI::V1::StreamAnnotation>]
1652
+ # The node specific stream annotations.
1653
+ class ApplicationNodeAnnotation
1654
+ include ::Google::Protobuf::MessageExts
1655
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1656
+ end
1657
+
1658
+ # Message describing general annotation for resources.
1659
+ # @!attribute [rw] application_annotations
1660
+ # @return [::Array<::Google::Cloud::VisionAI::V1::StreamAnnotation>]
1661
+ # Annotations that will be applied to the whole application.
1662
+ # @!attribute [rw] node_annotations
1663
+ # @return [::Array<::Google::Cloud::VisionAI::V1::ApplicationNodeAnnotation>]
1664
+ # Annotations that will be applied to the specific node of the application.
1665
+ # If the same type of the annotations is applied to both application and
1666
+ # node, the node annotation will be added in addition to the global
1667
+ # application one.
1668
+ # For example, if there is one active zone annotation for the whole
1669
+ # application and one active zone annotation for the Occupancy Analytic
1670
+ # processor, then the Occupancy Analytic processor will have two active zones
1671
+ # defined.
1672
+ class ResourceAnnotations
1673
+ include ::Google::Protobuf::MessageExts
1674
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1675
+ end
1676
+
1677
+ # Message describing Video Stream Input Config.
1678
+ # This message should only be used as a placeholder for builtin:stream-input
1679
+ # processor, actual stream binding should be specified using corresponding
1680
+ # API.
1681
+ # @!attribute [rw] streams
1682
+ # @deprecated This field is deprecated and may be removed in the next major version update.
1683
+ # @return [::Array<::String>]
1684
+ # @!attribute [rw] streams_with_annotation
1685
+ # @deprecated This field is deprecated and may be removed in the next major version update.
1686
+ # @return [::Array<::Google::Cloud::VisionAI::V1::StreamWithAnnotation>]
1687
+ class VideoStreamInputConfig
1688
+ include ::Google::Protobuf::MessageExts
1689
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1690
+ end
1691
+
1692
+ # Message describing AI-enabled Devices Input Config.
1693
+ class AIEnabledDevicesInputConfig
1694
+ include ::Google::Protobuf::MessageExts
1695
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1696
+ end
1697
+
1698
+ # Message describing MediaWarehouseConfig.
1699
+ # @!attribute [rw] corpus
1700
+ # @return [::String]
1701
+ # Resource name of the Media Warehouse corpus.
1702
+ # Format:
1703
+ # projects/$\\{project_id}/locations/$\\{location_id}/corpora/$\\{corpus_id}
1704
+ # @!attribute [rw] region
1705
+ # @deprecated This field is deprecated and may be removed in the next major version update.
1706
+ # @return [::String]
1707
+ # Deprecated.
1708
+ # @!attribute [rw] ttl
1709
+ # @return [::Google::Protobuf::Duration]
1710
+ # The duration for which all media assets, associated metadata, and search
1711
+ # documents can exist.
1712
+ class MediaWarehouseConfig
1713
+ include ::Google::Protobuf::MessageExts
1714
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1715
+ end
1716
+
1717
+ # Message describing FaceBlurConfig.
1718
+ # @!attribute [rw] person_blur_type
1719
+ # @return [::Google::Cloud::VisionAI::V1::PersonBlurConfig::PersonBlurType]
1720
+ # Person blur type.
1721
+ # @!attribute [rw] faces_only
1722
+ # @return [::Boolean]
1723
+ # Whether only blur faces other than the whole object in the processor.
1724
+ class PersonBlurConfig
1725
+ include ::Google::Protobuf::MessageExts
1726
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1727
+
1728
+ # Type of Person Blur
1729
+ module PersonBlurType
1730
+ # PersonBlur Type UNSPECIFIED.
1731
+ PERSON_BLUR_TYPE_UNSPECIFIED = 0
1732
+
1733
+ # FaceBlur Type full occlusion.
1734
+ FULL_OCCULUSION = 1
1735
+
1736
+ # FaceBlur Type blur filter.
1737
+ BLUR_FILTER = 2
1738
+ end
1739
+ end
1740
+
1741
+ # Message describing OccupancyCountConfig.
1742
+ # @!attribute [rw] enable_people_counting
1743
+ # @return [::Boolean]
1744
+ # Whether to count the appearances of people, output counts have 'people' as
1745
+ # the key.
1746
+ # @!attribute [rw] enable_vehicle_counting
1747
+ # @return [::Boolean]
1748
+ # Whether to count the appearances of vehicles, output counts will have
1749
+ # 'vehicle' as the key.
1750
+ # @!attribute [rw] enable_dwelling_time_tracking
1751
+ # @return [::Boolean]
1752
+ # Whether to track each invidual object's loitering time inside the scene or
1753
+ # specific zone.
1754
+ class OccupancyCountConfig
1755
+ include ::Google::Protobuf::MessageExts
1756
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1757
+ end
1758
+
1759
+ # Message describing PersonVehicleDetectionConfig.
1760
+ # @!attribute [rw] enable_people_counting
1761
+ # @return [::Boolean]
1762
+ # At least one of enable_people_counting and enable_vehicle_counting fields
1763
+ # must be set to true.
1764
+ # Whether to count the appearances of people, output counts have 'people' as
1765
+ # the key.
1766
+ # @!attribute [rw] enable_vehicle_counting
1767
+ # @return [::Boolean]
1768
+ # Whether to count the appearances of vehicles, output counts will have
1769
+ # 'vehicle' as the key.
1770
+ class PersonVehicleDetectionConfig
1771
+ include ::Google::Protobuf::MessageExts
1772
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1773
+ end
1774
+
1775
+ # Message describing PersonalProtectiveEquipmentDetectionConfig.
1776
+ # @!attribute [rw] enable_face_coverage_detection
1777
+ # @return [::Boolean]
1778
+ # Whether to enable face coverage detection.
1779
+ # @!attribute [rw] enable_head_coverage_detection
1780
+ # @return [::Boolean]
1781
+ # Whether to enable head coverage detection.
1782
+ # @!attribute [rw] enable_hands_coverage_detection
1783
+ # @return [::Boolean]
1784
+ # Whether to enable hands coverage detection.
1785
+ class PersonalProtectiveEquipmentDetectionConfig
1786
+ include ::Google::Protobuf::MessageExts
1787
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1788
+ end
1789
+
1790
+ # Message of configurations for General Object Detection processor.
1791
+ class GeneralObjectDetectionConfig
1792
+ include ::Google::Protobuf::MessageExts
1793
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1794
+ end
1795
+
1796
+ # Message of configurations for BigQuery processor.
1797
+ # @!attribute [rw] table
1798
+ # @return [::String]
1799
+ # BigQuery table resource for Vision AI Platform to ingest annotations to.
1800
+ # @!attribute [rw] cloud_function_mapping
1801
+ # @return [::Google::Protobuf::Map{::String => ::String}]
1802
+ # Data Schema
1803
+ # By default, Vision AI Application will try to write annotations to the
1804
+ # target BigQuery table using the following schema:
1805
+ #
1806
+ # ingestion_time: TIMESTAMP, the ingestion time of the original data.
1807
+ #
1808
+ # application: STRING, name of the application which produces the annotation.
1809
+ #
1810
+ # instance: STRING, Id of the instance which produces the annotation.
1811
+ #
1812
+ # node: STRING, name of the application graph node which produces the
1813
+ # annotation.
1814
+ #
1815
+ # annotation: STRING or JSON, the actual annotation protobuf will be
1816
+ # converted to json string with bytes field as 64 encoded string. It can be
1817
+ # written to both String or Json type column.
1818
+ #
1819
+ # To forward annotation data to an existing BigQuery table, customer needs to
1820
+ # make sure the compatibility of the schema.
1821
+ # The map maps application node name to its corresponding cloud function
1822
+ # endpoint to transform the annotations directly to the
1823
+ # google.cloud.bigquery.storage.v1.AppendRowsRequest (only avro_rows or
1824
+ # proto_rows should be set). If configured, annotations produced by
1825
+ # corresponding application node will sent to the Cloud Function at first
1826
+ # before be forwarded to BigQuery.
1827
+ #
1828
+ # If the default table schema doesn't fit, customer is able to transform the
1829
+ # annotation output from Vision AI Application to arbitrary BigQuery table
1830
+ # schema with CloudFunction.
1831
+ # * The cloud function will receive AppPlatformCloudFunctionRequest where
1832
+ # the annotations field will be the json format of Vision AI annotation.
1833
+ # * The cloud function should return AppPlatformCloudFunctionResponse with
1834
+ # AppendRowsRequest stored in the annotations field.
1835
+ # * To drop the annotation, simply clear the annotations field in the
1836
+ # returned AppPlatformCloudFunctionResponse.
1837
+ # @!attribute [rw] create_default_table_if_not_exists
1838
+ # @return [::Boolean]
1839
+ # If true, App Platform will create the BigQuery DataSet and the
1840
+ # BigQuery Table with default schema if the specified table doesn't exist.
1841
+ # This doesn't work if any cloud function customized schema is specified
1842
+ # since the system doesn't know your desired schema.
1843
+ # JSON column will be used in the default table created by App Platform.
1844
+ class BigQueryConfig
1845
+ include ::Google::Protobuf::MessageExts
1846
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1847
+
1848
+ # @!attribute [rw] key
1849
+ # @return [::String]
1850
+ # @!attribute [rw] value
1851
+ # @return [::String]
1852
+ class CloudFunctionMappingEntry
1853
+ include ::Google::Protobuf::MessageExts
1854
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1855
+ end
1856
+ end
1857
+
1858
+ # Message of configurations of Vertex AutoML Vision Processors.
1859
+ # @!attribute [rw] confidence_threshold
1860
+ # @return [::Float]
1861
+ # Only entities with higher score than the threshold will be returned.
1862
+ # Value 0.0 means to return all the detected entities.
1863
+ # @!attribute [rw] max_predictions
1864
+ # @return [::Integer]
1865
+ # At most this many predictions will be returned per output frame.
1866
+ # Value 0 means to return all the detected entities.
1867
+ class VertexAutoMLVisionConfig
1868
+ include ::Google::Protobuf::MessageExts
1869
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1870
+ end
1871
+
1872
+ # Message describing VertexAutoMLVideoConfig.
1873
+ # @!attribute [rw] confidence_threshold
1874
+ # @return [::Float]
1875
+ # Only entities with higher score than the threshold will be returned.
1876
+ # Value 0.0 means returns all the detected entities.
1877
+ # @!attribute [rw] blocked_labels
1878
+ # @return [::Array<::String>]
1879
+ # Labels specified in this field won't be returned.
1880
+ # @!attribute [rw] max_predictions
1881
+ # @return [::Integer]
1882
+ # At most this many predictions will be returned per output frame.
1883
+ # Value 0 means to return all the detected entities.
1884
+ # @!attribute [rw] bounding_box_size_limit
1885
+ # @return [::Float]
1886
+ # Only Bounding Box whose size is larger than this limit will be returned.
1887
+ # Object Tracking only.
1888
+ # Value 0.0 means to return all the detected entities.
1889
+ class VertexAutoMLVideoConfig
1890
+ include ::Google::Protobuf::MessageExts
1891
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1892
+ end
1893
+
1894
+ # Message describing VertexCustomConfig.
1895
+ # @!attribute [rw] max_prediction_fps
1896
+ # @return [::Integer]
1897
+ # The max prediction frame per second. This attribute sets how fast the
1898
+ # operator sends prediction requests to Vertex AI endpoint. Default value is
1899
+ # 0, which means there is no max prediction fps limit. The operator sends
1900
+ # prediction requests at input fps.
1901
+ # @!attribute [rw] dedicated_resources
1902
+ # @return [::Google::Cloud::VisionAI::V1::DedicatedResources]
1903
+ # A description of resources that are dedicated to the DeployedModel, and
1904
+ # that need a higher degree of manual configuration.
1905
+ # @!attribute [rw] post_processing_cloud_function
1906
+ # @return [::String]
1907
+ # If not empty, the prediction result will be sent to the specified cloud
1908
+ # function for post processing.
1909
+ # * The cloud function will receive AppPlatformCloudFunctionRequest where
1910
+ # the annotations field will be the json format of proto PredictResponse.
1911
+ # * The cloud function should return AppPlatformCloudFunctionResponse with
1912
+ # PredictResponse stored in the annotations field.
1913
+ # * To drop the prediction output, simply clear the payload field in the
1914
+ # returned AppPlatformCloudFunctionResponse.
1915
+ # @!attribute [rw] attach_application_metadata
1916
+ # @return [::Boolean]
1917
+ # If true, the prediction request received by custom model will also contain
1918
+ # metadata with the following schema:
1919
+ # 'appPlatformMetadata': {
1920
+ # 'ingestionTime': DOUBLE; (UNIX timestamp)
1921
+ # 'application': STRING;
1922
+ # 'instanceId': STRING;
1923
+ # 'node': STRING;
1924
+ # 'processor': STRING;
1925
+ # }
1926
+ # @!attribute [rw] dynamic_config_input_topic
1927
+ # @return [::String]
1928
+ # Optional. By setting the configuration_input_topic, processor will
1929
+ # subscribe to given topic, only pub/sub topic is supported now. Example
1930
+ # channel:
1931
+ # //pubsub.googleapis.com/projects/visionai-testing-stable/topics/test-topic
1932
+ # message schema should be:
1933
+ # message Message {
1934
+ # // The ID of the stream that associates with the application instance.
1935
+ # string stream_id = 1;
1936
+ # // The target fps. By default, the custom processor will *not* send any
1937
+ # data to the Vertex Prediction container. Note that once the
1938
+ # dynamic_config_input_topic is set, max_prediction_fps will not work and be
1939
+ # preceded by the fps set inside the topic.
1940
+ # int32 fps = 2;
1941
+ # }
1942
+ class VertexCustomConfig
1943
+ include ::Google::Protobuf::MessageExts
1944
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1945
+ end
1946
+
1947
+ # Message describing GcsOutputConfig.
1948
+ # @!attribute [rw] gcs_path
1949
+ # @return [::String]
1950
+ # The Cloud Storage path for Vision AI Platform to ingest annotations to.
1951
+ class GcsOutputConfig
1952
+ include ::Google::Protobuf::MessageExts
1953
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1954
+ end
1955
+
1956
+ # Message describing UniversalInputConfig.
1957
+ class UniversalInputConfig
1958
+ include ::Google::Protobuf::MessageExts
1959
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1960
+ end
1961
+
1962
+ # Specification of a single machine.
1963
+ # @!attribute [rw] machine_type
1964
+ # @return [::String]
1965
+ # Immutable. The type of the machine.
1966
+ #
1967
+ # See the [list of machine types supported for
1968
+ # prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)
1969
+ #
1970
+ # See the [list of machine types supported for custom
1971
+ # training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).
1972
+ #
1973
+ # For [DeployedModel][] this field is optional, and the default
1974
+ # value is `n1-standard-2`. For [BatchPredictionJob][] or as part of
1975
+ # [WorkerPoolSpec][] this field is required.
1976
+ # @!attribute [rw] accelerator_type
1977
+ # @return [::Google::Cloud::VisionAI::V1::AcceleratorType]
1978
+ # Immutable. The type of accelerator(s) that may be attached to the machine
1979
+ # as per
1980
+ # {::Google::Cloud::VisionAI::V1::MachineSpec#accelerator_count accelerator_count}.
1981
+ # @!attribute [rw] accelerator_count
1982
+ # @return [::Integer]
1983
+ # The number of accelerators to attach to the machine.
1984
+ class MachineSpec
1985
+ include ::Google::Protobuf::MessageExts
1986
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1987
+ end
1988
+
1989
+ # The metric specification that defines the target resource utilization
1990
+ # (CPU utilization, accelerator's duty cycle, and so on) for calculating the
1991
+ # desired replica count.
1992
+ # @!attribute [rw] metric_name
1993
+ # @return [::String]
1994
+ # Required. The resource metric name.
1995
+ # Supported metrics:
1996
+ #
1997
+ # * For Online Prediction:
1998
+ # * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle`
1999
+ # * `aiplatform.googleapis.com/prediction/online/cpu/utilization`
2000
+ # @!attribute [rw] target
2001
+ # @return [::Integer]
2002
+ # The target resource utilization in percentage (1% - 100%) for the given
2003
+ # metric; once the real usage deviates from the target by a certain
2004
+ # percentage, the machine replicas change. The default value is 60
2005
+ # (representing 60%) if not provided.
2006
+ class AutoscalingMetricSpec
2007
+ include ::Google::Protobuf::MessageExts
2008
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2009
+ end
2010
+
2011
+ # A description of resources that are dedicated to a DeployedModel, and
2012
+ # that need a higher degree of manual configuration.
2013
+ # @!attribute [rw] machine_spec
2014
+ # @return [::Google::Cloud::VisionAI::V1::MachineSpec]
2015
+ # Required. Immutable. The specification of a single machine used by the
2016
+ # prediction.
2017
+ # @!attribute [rw] min_replica_count
2018
+ # @return [::Integer]
2019
+ # Required. Immutable. The minimum number of machine replicas this
2020
+ # DeployedModel will be always deployed on. This value must be greater than
2021
+ # or equal to 1.
2022
+ #
2023
+ # If traffic against the DeployedModel increases, it may dynamically be
2024
+ # deployed onto more replicas, and as traffic decreases, some of these extra
2025
+ # replicas may be freed.
2026
+ # @!attribute [rw] max_replica_count
2027
+ # @return [::Integer]
2028
+ # Immutable. The maximum number of replicas this DeployedModel may be
2029
+ # deployed on when the traffic against it increases. If the requested value
2030
+ # is too large, the deployment will error, but if deployment succeeds then
2031
+ # the ability to scale the model to that many replicas is guaranteed (barring
2032
+ # service outages). If traffic against the DeployedModel increases beyond
2033
+ # what its replicas at maximum may handle, a portion of the traffic will be
2034
+ # dropped. If this value is not provided, will use
2035
+ # {::Google::Cloud::VisionAI::V1::DedicatedResources#min_replica_count min_replica_count}
2036
+ # as the default value.
2037
+ #
2038
+ # The value of this field impacts the charge against Vertex CPU and GPU
2039
+ # quotas. Specifically, you will be charged for max_replica_count *
2040
+ # number of cores in the selected machine type) and (max_replica_count *
2041
+ # number of GPUs per replica in the selected machine type).
2042
+ # @!attribute [rw] autoscaling_metric_specs
2043
+ # @return [::Array<::Google::Cloud::VisionAI::V1::AutoscalingMetricSpec>]
2044
+ # Immutable. The metric specifications that overrides a resource
2045
+ # utilization metric (CPU utilization, accelerator's duty cycle, and so on)
2046
+ # target value (default to 60 if not set). At most one entry is allowed per
2047
+ # metric.
2048
+ #
2049
+ # If
2050
+ # {::Google::Cloud::VisionAI::V1::MachineSpec#accelerator_count machine_spec.accelerator_count}
2051
+ # is above 0, the autoscaling will be based on both CPU utilization and
2052
+ # accelerator's duty cycle metrics and scale up when either metrics exceeds
2053
+ # its target value while scale down if both metrics are under their target
2054
+ # value. The default target value is 60 for both metrics.
2055
+ #
2056
+ # If
2057
+ # {::Google::Cloud::VisionAI::V1::MachineSpec#accelerator_count machine_spec.accelerator_count}
2058
+ # is 0, the autoscaling will be based on CPU utilization metric only with
2059
+ # default target value 60 if not explicitly set.
2060
+ #
2061
+ # For example, in the case of Online Prediction, if you want to override
2062
+ # target CPU utilization to 80, you should set
2063
+ # {::Google::Cloud::VisionAI::V1::AutoscalingMetricSpec#metric_name autoscaling_metric_specs.metric_name}
2064
+ # to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
2065
+ # {::Google::Cloud::VisionAI::V1::AutoscalingMetricSpec#target autoscaling_metric_specs.target}
2066
+ # to `80`.
2067
+ class DedicatedResources
2068
+ include ::Google::Protobuf::MessageExts
2069
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2070
+ end
2071
+
2072
+ # Message describing ProductRecognizerConfig.
2073
+ # @!attribute [rw] retail_endpoint
2074
+ # @return [::String]
2075
+ # The resource name of retail endpoint to use.
2076
+ # @!attribute [rw] recognition_confidence_threshold
2077
+ # @return [::Float]
2078
+ # Confidence threshold to filter detection results. If not set, a system
2079
+ # default value will be used.
2080
+ class ProductRecognizerConfig
2081
+ include ::Google::Protobuf::MessageExts
2082
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2083
+ end
2084
+
2085
+ # Message describing TagRecognizerConfig.
2086
+ # @!attribute [rw] entity_detection_confidence_threshold
2087
+ # @return [::Float]
2088
+ # Confidence threshold to filter detection results. If not set, a system
2089
+ # default value will be used.
2090
+ # @!attribute [rw] tag_parsing_config
2091
+ # @return [::Google::Cloud::VisionAI::V1::TagParsingConfig]
2092
+ # Configuration to customize how tags are parsed.
2093
+ class TagRecognizerConfig
2094
+ include ::Google::Protobuf::MessageExts
2095
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2096
+ end
2097
+
2098
+ # Configuration for tag parsing.
2099
+ # @!attribute [rw] entity_parsing_configs
2100
+ # @return [::Array<::Google::Cloud::VisionAI::V1::TagParsingConfig::EntityParsingConfig>]
2101
+ # Each tag entity class may have an optional EntityParsingConfig which is
2102
+ # used to help parse the entities of the class.
2103
+ class TagParsingConfig
2104
+ include ::Google::Protobuf::MessageExts
2105
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2106
+
2107
+ # Configuration for parsing a tag entity class.
2108
+ # @!attribute [rw] entity_class
2109
+ # @return [::String]
2110
+ # Required. The tag entity class name. This should match the class name
2111
+ # produced by the tag entity detection model.
2112
+ # @!attribute [rw] regex
2113
+ # @return [::String]
2114
+ # Optional. An regular expression hint.
2115
+ # @!attribute [rw] entity_matching_strategy
2116
+ # @return [::Google::Cloud::VisionAI::V1::TagParsingConfig::EntityParsingConfig::EntityMatchingStrategy]
2117
+ # Optional. Entity matching strategy.
2118
+ class EntityParsingConfig
2119
+ include ::Google::Protobuf::MessageExts
2120
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2121
+
2122
+ # Type of entity matching strategy.
2123
+ module EntityMatchingStrategy
2124
+ # If unspecified, multi-line matching will be used by default.
2125
+ ENTITY_MATCHING_STRATEGY_UNSPECIFIED = 0
2126
+
2127
+ # Matches multiple lines of text.
2128
+ MULTI_LINE_MATCHING = 1
2129
+
2130
+ # Matches the line with the maximum overlap area with entity bounding
2131
+ # box.
2132
+ MAX_OVERLAP_AREA = 2
2133
+ end
2134
+ end
2135
+ end
2136
+
2137
+ # All the supported model types in Vision AI App Platform.
2138
+ module ModelType
2139
+ # Processor Type UNSPECIFIED.
2140
+ MODEL_TYPE_UNSPECIFIED = 0
2141
+
2142
+ # Model Type Image Classification.
2143
+ IMAGE_CLASSIFICATION = 1
2144
+
2145
+ # Model Type Object Detection.
2146
+ OBJECT_DETECTION = 2
2147
+
2148
+ # Model Type Video Classification.
2149
+ VIDEO_CLASSIFICATION = 3
2150
+
2151
+ # Model Type Object Tracking.
2152
+ VIDEO_OBJECT_TRACKING = 4
2153
+
2154
+ # Model Type Action Recognition.
2155
+ VIDEO_ACTION_RECOGNITION = 5
2156
+
2157
+ # Model Type Occupancy Counting.
2158
+ OCCUPANCY_COUNTING = 6
2159
+
2160
+ # Model Type Person Blur.
2161
+ PERSON_BLUR = 7
2162
+
2163
+ # Model Type Vertex Custom.
2164
+ VERTEX_CUSTOM = 8
2165
+
2166
+ # Model Type Product Recognizer.
2167
+ PRODUCT_RECOGNIZER = 9
2168
+
2169
+ # Model Type Tag Recognizer.
2170
+ TAG_RECOGNIZER = 10
2171
+
2172
+ # Model Type SynthID.
2173
+ SYNTH_ID = 15
2174
+ end
2175
+
2176
+ # Represents a hardware accelerator type.
2177
+ module AcceleratorType
2178
+ # Unspecified accelerator type, which means no accelerator.
2179
+ ACCELERATOR_TYPE_UNSPECIFIED = 0
2180
+
2181
+ # Nvidia Tesla K80 GPU.
2182
+ NVIDIA_TESLA_K80 = 1
2183
+
2184
+ # Nvidia Tesla P100 GPU.
2185
+ NVIDIA_TESLA_P100 = 2
2186
+
2187
+ # Nvidia Tesla V100 GPU.
2188
+ NVIDIA_TESLA_V100 = 3
2189
+
2190
+ # Nvidia Tesla P4 GPU.
2191
+ NVIDIA_TESLA_P4 = 4
2192
+
2193
+ # Nvidia Tesla T4 GPU.
2194
+ NVIDIA_TESLA_T4 = 5
2195
+
2196
+ # Nvidia Tesla A100 GPU.
2197
+ NVIDIA_TESLA_A100 = 8
2198
+
2199
+ # TPU v2.
2200
+ TPU_V2 = 6
2201
+
2202
+ # TPU v3.
2203
+ TPU_V3 = 7
2204
+ end
2205
+
2206
+ # All supported data types.
2207
+ module DataType
2208
+ # The default value of DataType.
2209
+ DATA_TYPE_UNSPECIFIED = 0
2210
+
2211
+ # Video data type like H264.
2212
+ VIDEO = 1
2213
+
2214
+ # Image data type.
2215
+ IMAGE = 3
2216
+
2217
+ # Protobuf data type, usually used for general data blob.
2218
+ PROTO = 2
2219
+
2220
+ # A placeholder data type, applicable for the universal input processor which
2221
+ # supports any data type. This will be instantiated and replaced by a
2222
+ # concrete underlying `DataType` during instance deployment.
2223
+ PLACEHOLDER = 4
2224
+ end
2225
+ end
2226
+ end
2227
+ end
2228
+ end