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,134 @@
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 describing the Cluster object.
25
+ # @!attribute [r] name
26
+ # @return [::String]
27
+ # Output only. Name of the resource.
28
+ # @!attribute [r] create_time
29
+ # @return [::Google::Protobuf::Timestamp]
30
+ # Output only. The create timestamp.
31
+ # @!attribute [r] update_time
32
+ # @return [::Google::Protobuf::Timestamp]
33
+ # Output only. The update timestamp.
34
+ # @!attribute [rw] labels
35
+ # @return [::Google::Protobuf::Map{::String => ::String}]
36
+ # Labels as key value pairs
37
+ # @!attribute [rw] annotations
38
+ # @return [::Google::Protobuf::Map{::String => ::String}]
39
+ # Annotations to allow clients to store small amounts of arbitrary data.
40
+ # @!attribute [r] dataplane_service_endpoint
41
+ # @return [::String]
42
+ # Output only. The DNS name of the data plane service
43
+ # @!attribute [r] state
44
+ # @return [::Google::Cloud::VisionAI::V1::Cluster::State]
45
+ # Output only. The current state of the cluster.
46
+ # @!attribute [r] psc_target
47
+ # @return [::String]
48
+ # Output only. The private service connection service target name.
49
+ class Cluster
50
+ include ::Google::Protobuf::MessageExts
51
+ extend ::Google::Protobuf::MessageExts::ClassMethods
52
+
53
+ # @!attribute [rw] key
54
+ # @return [::String]
55
+ # @!attribute [rw] value
56
+ # @return [::String]
57
+ class LabelsEntry
58
+ include ::Google::Protobuf::MessageExts
59
+ extend ::Google::Protobuf::MessageExts::ClassMethods
60
+ end
61
+
62
+ # @!attribute [rw] key
63
+ # @return [::String]
64
+ # @!attribute [rw] value
65
+ # @return [::String]
66
+ class AnnotationsEntry
67
+ include ::Google::Protobuf::MessageExts
68
+ extend ::Google::Protobuf::MessageExts::ClassMethods
69
+ end
70
+
71
+ # The current state of the cluster.
72
+ module State
73
+ # Not set.
74
+ STATE_UNSPECIFIED = 0
75
+
76
+ # The PROVISIONING state indicates the cluster is being created.
77
+ PROVISIONING = 1
78
+
79
+ # The RUNNING state indicates the cluster has been created and is fully
80
+ # usable.
81
+ RUNNING = 2
82
+
83
+ # The STOPPING state indicates the cluster is being deleted.
84
+ STOPPING = 3
85
+
86
+ # The ERROR state indicates the cluster is unusable. It will be
87
+ # automatically deleted.
88
+ ERROR = 4
89
+ end
90
+ end
91
+
92
+ # Represents the metadata of the long-running operation.
93
+ # @!attribute [r] create_time
94
+ # @return [::Google::Protobuf::Timestamp]
95
+ # Output only. The time the operation was created.
96
+ # @!attribute [r] end_time
97
+ # @return [::Google::Protobuf::Timestamp]
98
+ # Output only. The time the operation finished running.
99
+ # @!attribute [r] target
100
+ # @return [::String]
101
+ # Output only. Server-defined resource path for the target of the operation.
102
+ # @!attribute [r] verb
103
+ # @return [::String]
104
+ # Output only. Name of the verb executed by the operation.
105
+ # @!attribute [r] status_message
106
+ # @return [::String]
107
+ # Output only. Human-readable status of the operation, if any.
108
+ # @!attribute [r] requested_cancellation
109
+ # @return [::Boolean]
110
+ # Output only. Identifies whether the user has requested cancellation
111
+ # of the operation. Operations that have successfully been cancelled
112
+ # have [Operation.error][] value with a
113
+ # {::Google::Rpc::Status#code google.rpc.Status.code} of 1, corresponding to
114
+ # `Code.CANCELLED`.
115
+ # @!attribute [r] api_version
116
+ # @return [::String]
117
+ # Output only. API version used to start the operation.
118
+ class OperationMetadata
119
+ include ::Google::Protobuf::MessageExts
120
+ extend ::Google::Protobuf::MessageExts::ClassMethods
121
+ end
122
+
123
+ # The Google Cloud Storage location for the input content.
124
+ # @!attribute [rw] uris
125
+ # @return [::Array<::String>]
126
+ # Required. References to a Google Cloud Storage paths.
127
+ class GcsSource
128
+ include ::Google::Protobuf::MessageExts
129
+ extend ::Google::Protobuf::MessageExts::ClassMethods
130
+ end
131
+ end
132
+ end
133
+ end
134
+ end
@@ -0,0 +1,61 @@
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
+ # HealthCheckRequest is the request message for Check.
25
+ # @!attribute [rw] cluster
26
+ # @return [::String]
27
+ # The parent of the resource.
28
+ class HealthCheckRequest
29
+ include ::Google::Protobuf::MessageExts
30
+ extend ::Google::Protobuf::MessageExts::ClassMethods
31
+ end
32
+
33
+ # HealthCheckResponse is the response message for Check.
34
+ # @!attribute [rw] healthy
35
+ # @return [::Boolean]
36
+ # Indicates whether the cluster is in healthy state or not.
37
+ # @!attribute [rw] reason
38
+ # @return [::String]
39
+ # Reason of why the cluster is in unhealthy state.
40
+ # @!attribute [rw] cluster_info
41
+ # @return [::Google::Cloud::VisionAI::V1::ClusterInfo]
42
+ # Other information of the cluster client may be interested.
43
+ class HealthCheckResponse
44
+ include ::Google::Protobuf::MessageExts
45
+ extend ::Google::Protobuf::MessageExts::ClassMethods
46
+ end
47
+
48
+ # @!attribute [rw] streams_count
49
+ # @return [::Integer]
50
+ # The number of active streams in the cluster.
51
+ # @!attribute [rw] processes_count
52
+ # @return [::Integer]
53
+ # The number of active processes in the cluster.
54
+ class ClusterInfo
55
+ include ::Google::Protobuf::MessageExts
56
+ extend ::Google::Protobuf::MessageExts::ClassMethods
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,345 @@
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
+ # Defines the interface of an Operator.
25
+ #
26
+ # Arguments to an operator are input/output streams that are getting
27
+ # processesed/returned while attributes are fixed configuration parameters.
28
+ # @!attribute [rw] operator
29
+ # @return [::String]
30
+ # The name of this operator.
31
+ #
32
+ # Tentatively [A-Z][a-zA-Z0-9]*, e.g., BboxCounter, PetDetector,
33
+ # PetDetector1.
34
+ # @!attribute [rw] input_args
35
+ # @return [::Array<::Google::Cloud::VisionAI::V1::OperatorDefinition::ArgumentDefinition>]
36
+ # Declares input arguments.
37
+ # @!attribute [rw] output_args
38
+ # @return [::Array<::Google::Cloud::VisionAI::V1::OperatorDefinition::ArgumentDefinition>]
39
+ # Declares output arguments.
40
+ # @!attribute [rw] attributes
41
+ # @return [::Array<::Google::Cloud::VisionAI::V1::OperatorDefinition::AttributeDefinition>]
42
+ # Declares the attributes.
43
+ # @!attribute [rw] resources
44
+ # @return [::Google::Cloud::VisionAI::V1::ResourceSpecification]
45
+ # The resources for running the operator.
46
+ # @!attribute [rw] short_description
47
+ # @return [::String]
48
+ # Short description of the operator.
49
+ # @!attribute [rw] description
50
+ # @return [::String]
51
+ # Full description of the operator.
52
+ class OperatorDefinition
53
+ include ::Google::Protobuf::MessageExts
54
+ extend ::Google::Protobuf::MessageExts::ClassMethods
55
+
56
+ # Defines an argument to an operator.
57
+ #
58
+ # Used for both inputs and outputs.
59
+ # @!attribute [rw] argument
60
+ # @return [::String]
61
+ # The name of the argument.
62
+ #
63
+ # Tentatively [a-z]([_a-z0-9]*[a-z0-9])?, e.g., video, audio,
64
+ # high_fps_frame.
65
+ # @!attribute [rw] type
66
+ # @return [::String]
67
+ # The data type of the argument.
68
+ #
69
+ # This should match the textual representation of a stream/Packet type.
70
+ class ArgumentDefinition
71
+ include ::Google::Protobuf::MessageExts
72
+ extend ::Google::Protobuf::MessageExts::ClassMethods
73
+ end
74
+
75
+ # Defines an attribute of an operator.
76
+ # @!attribute [rw] attribute
77
+ # @return [::String]
78
+ # The name of the attribute.
79
+ #
80
+ # Tentatively [a-z]([_a-z0-9]*[a-z0-9])?, e.g., max_frames_per_video,
81
+ # resize_height.
82
+ # @!attribute [rw] type
83
+ # @return [::String]
84
+ # The type of this attribute.
85
+ #
86
+ # See attribute_value.proto for possibilities.
87
+ # @!attribute [rw] default_value
88
+ # @return [::Google::Cloud::VisionAI::V1::AttributeValue]
89
+ # The default value for the attribute.
90
+ class AttributeDefinition
91
+ include ::Google::Protobuf::MessageExts
92
+ extend ::Google::Protobuf::MessageExts::ClassMethods
93
+ end
94
+ end
95
+
96
+ # ResourceSpec collects a set of resources that can
97
+ # be used to specify requests and requirements.
98
+ #
99
+ # Note: Highly experimental as this can be runtime dependent.
100
+ # Can use the "extras" field to experiment first before trying
101
+ # to abstract it.
102
+ # @!attribute [rw] cpu
103
+ # @return [::String]
104
+ # CPU specification.
105
+ #
106
+ # Examples:
107
+ # "100m", "0.5", "1", "2", ... correspond to
108
+ # 0.1, half, 1, or 2 cpus.
109
+ #
110
+ # Leave empty to let the system decide.
111
+ #
112
+ # Note that this does *not* determine the cpu vender/make,
113
+ # or its underlying clock speed and specific SIMD features.
114
+ # It is only the amount time it requires in timeslicing.
115
+ # @!attribute [rw] cpu_limits
116
+ # @return [::String]
117
+ # CPU limit.
118
+ #
119
+ # Examples:
120
+ # "100m", "0.5", "1", "2", ... correspond to
121
+ # 0.1, half, 1, or 2 cpus.
122
+ #
123
+ # Leave empty to indicate no limit.
124
+ # @!attribute [rw] memory
125
+ # @return [::String]
126
+ # Memory specification (in bytes).
127
+ #
128
+ # Examples:
129
+ # "128974848", "129e6", "129M", "123Mi", ... correspond to
130
+ # 128974848 bytes, 129000000 bytes, 129 mebibytes, 123 megabytes.
131
+ #
132
+ # Leave empty to let the system decide.
133
+ # @!attribute [rw] memory_limits
134
+ # @return [::String]
135
+ # Memory usage limits.
136
+ #
137
+ # Examples:
138
+ # "128974848", "129e6", "129M", "123Mi", ... correspond to
139
+ # 128974848 bytes, 129000000 bytes, 129 mebibytes, 123 megabytes.
140
+ #
141
+ # Leave empty to indicate no limit.
142
+ # @!attribute [rw] gpus
143
+ # @return [::Integer]
144
+ # Number of gpus.
145
+ # @!attribute [rw] latency_budget_ms
146
+ # @return [::Integer]
147
+ # The maximum latency that this operator may use to process an element.
148
+ #
149
+ # If non positive, then a system default will be used.
150
+ # Operator developers should arrange for the system compute resources to be
151
+ # aligned with this latency budget; e.g. if you want a ML model to produce
152
+ # results within 500ms, then you should make sure you request enough
153
+ # cpu/gpu/memory to achieve that.
154
+ class ResourceSpecification
155
+ include ::Google::Protobuf::MessageExts
156
+ extend ::Google::Protobuf::MessageExts::ClassMethods
157
+ end
158
+
159
+ # Represents an actual value of an operator attribute.
160
+ # @!attribute [rw] i
161
+ # @return [::Integer]
162
+ # int.
163
+ # @!attribute [rw] f
164
+ # @return [::Float]
165
+ # float.
166
+ # @!attribute [rw] b
167
+ # @return [::Boolean]
168
+ # bool.
169
+ # @!attribute [rw] s
170
+ # @return [::String]
171
+ # string.
172
+ class AttributeValue
173
+ include ::Google::Protobuf::MessageExts
174
+ extend ::Google::Protobuf::MessageExts::ClassMethods
175
+ end
176
+
177
+ # Defines an Analyzer.
178
+ #
179
+ # An analyzer processes data from its input streams using the logic defined in
180
+ # the Operator that it represents. Of course, it produces data for the output
181
+ # streams declared in the Operator.
182
+ # @!attribute [rw] analyzer
183
+ # @return [::String]
184
+ # The name of this analyzer.
185
+ #
186
+ # Tentatively [a-z][a-z0-9]*(_[a-z0-9]+)*.
187
+ # @!attribute [rw] operator
188
+ # @return [::String]
189
+ # The name of the operator that this analyzer runs.
190
+ #
191
+ # Must match the name of a supported operator.
192
+ # @!attribute [rw] inputs
193
+ # @return [::Array<::Google::Cloud::VisionAI::V1::AnalyzerDefinition::StreamInput>]
194
+ # Input streams.
195
+ # @!attribute [rw] attrs
196
+ # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::VisionAI::V1::AttributeValue}]
197
+ # The attribute values that this analyzer applies to the operator.
198
+ #
199
+ # Supply a mapping between the attribute names and the actual value you wish
200
+ # to apply. If an attribute name is omitted, then it will take a
201
+ # preconfigured default value.
202
+ # @!attribute [rw] debug_options
203
+ # @return [::Google::Cloud::VisionAI::V1::AnalyzerDefinition::DebugOptions]
204
+ # Debug options.
205
+ # @!attribute [rw] operator_option
206
+ # @return [::Google::Cloud::VisionAI::V1::AnalyzerDefinition::OperatorOption]
207
+ # Operator option.
208
+ class AnalyzerDefinition
209
+ include ::Google::Protobuf::MessageExts
210
+ extend ::Google::Protobuf::MessageExts::ClassMethods
211
+
212
+ # The inputs to this analyzer.
213
+ #
214
+ # We accept input name references of the following form:
215
+ # <analyzer-name>:<output-argument-name>
216
+ #
217
+ # Example:
218
+ #
219
+ # Suppose you had an operator named "SomeOp" that has 2 output
220
+ # arguments, the first of which is named "foo" and the second of which is
221
+ # named "bar", and an operator named "MyOp" that accepts 2 inputs.
222
+ #
223
+ # Also suppose that there is an analyzer named "some-analyzer" that is
224
+ # running "SomeOp" and another analyzer named "my-analyzer" running "MyOp".
225
+ #
226
+ # To indicate that "my-analyzer" is to consume "some-analyzer"'s "foo"
227
+ # output as its first input and "some-analyzer"'s "bar" output as its
228
+ # second input, you can set this field to the following:
229
+ # input = ["some-analyzer:foo", "some-analyzer:bar"]
230
+ # @!attribute [rw] input
231
+ # @return [::String]
232
+ # The name of the stream input (as discussed above).
233
+ class StreamInput
234
+ include ::Google::Protobuf::MessageExts
235
+ extend ::Google::Protobuf::MessageExts::ClassMethods
236
+ end
237
+
238
+ # Options available for debugging purposes only.
239
+ # @!attribute [rw] environment_variables
240
+ # @return [::Google::Protobuf::Map{::String => ::String}]
241
+ # Environment variables.
242
+ class DebugOptions
243
+ include ::Google::Protobuf::MessageExts
244
+ extend ::Google::Protobuf::MessageExts::ClassMethods
245
+
246
+ # @!attribute [rw] key
247
+ # @return [::String]
248
+ # @!attribute [rw] value
249
+ # @return [::String]
250
+ class EnvironmentVariablesEntry
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+ end
255
+
256
+ # Option related to the operator.
257
+ # @!attribute [rw] tag
258
+ # @return [::String]
259
+ # Tag of the operator.
260
+ # @!attribute [rw] registry
261
+ # @return [::String]
262
+ # Registry of the operator. e.g. public, dev.
263
+ class OperatorOption
264
+ include ::Google::Protobuf::MessageExts
265
+ extend ::Google::Protobuf::MessageExts::ClassMethods
266
+ end
267
+
268
+ # @!attribute [rw] key
269
+ # @return [::String]
270
+ # @!attribute [rw] value
271
+ # @return [::Google::Cloud::VisionAI::V1::AttributeValue]
272
+ class AttrsEntry
273
+ include ::Google::Protobuf::MessageExts
274
+ extend ::Google::Protobuf::MessageExts::ClassMethods
275
+ end
276
+ end
277
+
278
+ # Defines a full analysis.
279
+ #
280
+ # This is a description of the overall live analytics pipeline.
281
+ # You may think of this as an edge list representation of a multigraph.
282
+ #
283
+ # This may be directly authored by a human in protobuf textformat, or it may be
284
+ # generated by a programming API (perhaps Python or JavaScript depending on
285
+ # context).
286
+ # @!attribute [rw] analyzers
287
+ # @return [::Array<::Google::Cloud::VisionAI::V1::AnalyzerDefinition>]
288
+ # Analyzer definitions.
289
+ class AnalysisDefinition
290
+ include ::Google::Protobuf::MessageExts
291
+ extend ::Google::Protobuf::MessageExts::ClassMethods
292
+ end
293
+
294
+ # Message describing the status of the Process.
295
+ # @!attribute [rw] state
296
+ # @return [::Google::Cloud::VisionAI::V1::RunStatus::State]
297
+ # The state of the Process.
298
+ # @!attribute [rw] reason
299
+ # @return [::String]
300
+ # The reason of becoming the state.
301
+ class RunStatus
302
+ include ::Google::Protobuf::MessageExts
303
+ extend ::Google::Protobuf::MessageExts::ClassMethods
304
+
305
+ # State represents the running status of the Process.
306
+ module State
307
+ # State is unspecified.
308
+ STATE_UNSPECIFIED = 0
309
+
310
+ # INITIALIZING means the Process is scheduled but yet ready to handle
311
+ # real traffic.
312
+ INITIALIZING = 1
313
+
314
+ # RUNNING means the Process is up running and handling traffic.
315
+ RUNNING = 2
316
+
317
+ # COMPLETED means the Process has completed the processing, especially
318
+ # for non-streaming use case.
319
+ COMPLETED = 3
320
+
321
+ # FAILED means the Process failed to complete the processing.
322
+ FAILED = 4
323
+
324
+ # PENDING means the Process is created but yet to be scheduled.
325
+ PENDING = 5
326
+ end
327
+ end
328
+
329
+ # RunMode represents the mode to launch the Process on.
330
+ module RunMode
331
+ # Mode is unspecified.
332
+ RUN_MODE_UNSPECIFIED = 0
333
+
334
+ # Live mode. Meaning the Process is launched to handle live video
335
+ # source, and possible packet drops are expected.
336
+ LIVE = 1
337
+
338
+ # Submission mode. Meaning the Process is launched to handle bounded video
339
+ # files, with no packet drop. Completion status is tracked.
340
+ SUBMISSION = 2
341
+ end
342
+ end
343
+ end
344
+ end
345
+ end