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,178 @@
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
+ # The descriptor for a gstreamer buffer payload.
25
+ # @!attribute [rw] caps_string
26
+ # @return [::String]
27
+ # The caps string of the payload.
28
+ # @!attribute [rw] is_key_frame
29
+ # @return [::Boolean]
30
+ # Whether the buffer is a key frame.
31
+ # @!attribute [rw] pts_time
32
+ # @return [::Google::Protobuf::Timestamp]
33
+ # PTS of the frame.
34
+ # @!attribute [rw] dts_time
35
+ # @return [::Google::Protobuf::Timestamp]
36
+ # DTS of the frame.
37
+ # @!attribute [rw] duration
38
+ # @return [::Google::Protobuf::Duration]
39
+ # Duration of the frame.
40
+ class GstreamerBufferDescriptor
41
+ include ::Google::Protobuf::MessageExts
42
+ extend ::Google::Protobuf::MessageExts::ClassMethods
43
+ end
44
+
45
+ # The descriptor for a raw image.
46
+ # @!attribute [rw] format
47
+ # @return [::String]
48
+ # Raw image format. Its possible values are: "srgb".
49
+ # @!attribute [rw] height
50
+ # @return [::Integer]
51
+ # The height of the image.
52
+ # @!attribute [rw] width
53
+ # @return [::Integer]
54
+ # The width of the image.
55
+ class RawImageDescriptor
56
+ include ::Google::Protobuf::MessageExts
57
+ extend ::Google::Protobuf::MessageExts::ClassMethods
58
+ end
59
+
60
+ # The message that represents the data type of a packet.
61
+ # @!attribute [rw] type_class
62
+ # @return [::String]
63
+ # The type class of the packet. Its possible values are:
64
+ # "gst", "protobuf", and "string".
65
+ # @!attribute [rw] type_descriptor
66
+ # @return [::Google::Cloud::VisionAI::V1::PacketType::TypeDescriptor]
67
+ # The type descriptor.
68
+ class PacketType
69
+ include ::Google::Protobuf::MessageExts
70
+ extend ::Google::Protobuf::MessageExts::ClassMethods
71
+
72
+ # The message that fully specifies the type of the packet.
73
+ # @!attribute [rw] gstreamer_buffer_descriptor
74
+ # @return [::Google::Cloud::VisionAI::V1::GstreamerBufferDescriptor]
75
+ # GstreamerBufferDescriptor is the descriptor for gstreamer buffer type.
76
+ # @!attribute [rw] raw_image_descriptor
77
+ # @return [::Google::Cloud::VisionAI::V1::RawImageDescriptor]
78
+ # RawImageDescriptor is the descriptor for the raw image type.
79
+ # @!attribute [rw] type
80
+ # @return [::String]
81
+ # The type of the packet. Its possible values is codec dependent.
82
+ #
83
+ # The fully qualified type name is always the concatenation of the
84
+ # value in `type_class` together with the value in `type`, separated by a
85
+ # '/'.
86
+ #
87
+ # Note that specific codecs can define their own type hierarchy, and so the
88
+ # type string here can in fact be separated by multiple '/'s of its own.
89
+ #
90
+ # Please see the open source SDK for specific codec documentation.
91
+ class TypeDescriptor
92
+ include ::Google::Protobuf::MessageExts
93
+ extend ::Google::Protobuf::MessageExts::ClassMethods
94
+ end
95
+ end
96
+
97
+ # The message that represents server metadata.
98
+ # @!attribute [rw] offset
99
+ # @return [::Integer]
100
+ # The offset position for the packet in its stream.
101
+ # @!attribute [rw] ingest_time
102
+ # @return [::Google::Protobuf::Timestamp]
103
+ # The timestamp at which the stream server receives this packet. This is
104
+ # based on the local clock of on the server side. It is guaranteed to be
105
+ # monotonically increasing for the packets within each session; however
106
+ # this timestamp is not comparable across packets sent to the same stream
107
+ # different sessions. Session here refers to one individual gRPC streaming
108
+ # request to the stream server.
109
+ class ServerMetadata
110
+ include ::Google::Protobuf::MessageExts
111
+ extend ::Google::Protobuf::MessageExts::ClassMethods
112
+ end
113
+
114
+ # The message that represents series metadata.
115
+ # @!attribute [rw] series
116
+ # @return [::String]
117
+ # Series name. It's in the format of
118
+ # "projects/\\{project}/locations/\\{location}/clusters/\\{cluster}/series/\\{stream}".
119
+ class SeriesMetadata
120
+ include ::Google::Protobuf::MessageExts
121
+ extend ::Google::Protobuf::MessageExts::ClassMethods
122
+ end
123
+
124
+ # The message that represents packet header.
125
+ # @!attribute [rw] capture_time
126
+ # @return [::Google::Protobuf::Timestamp]
127
+ # Input only. The capture time of the packet.
128
+ # @!attribute [rw] type
129
+ # @return [::Google::Cloud::VisionAI::V1::PacketType]
130
+ # Input only. Immutable. The type of the payload.
131
+ # @!attribute [rw] metadata
132
+ # @return [::Google::Protobuf::Struct]
133
+ # Input only. This field is for users to attach user managed metadata.
134
+ # @!attribute [r] server_metadata
135
+ # @return [::Google::Cloud::VisionAI::V1::ServerMetadata]
136
+ # Output only. Metadata that the server appends to each packet before sending
137
+ # it to receivers. You don't need to set a value for this field when sending
138
+ # packets.
139
+ # @!attribute [rw] series_metadata
140
+ # @return [::Google::Cloud::VisionAI::V1::SeriesMetadata]
141
+ # Input only. Immutable. Metadata that the server needs to know where to
142
+ # write the packets to. It's only required for the first packet.
143
+ # @!attribute [rw] flags
144
+ # @return [::Integer]
145
+ # Immutable. Packet flag set. SDK will set the flag automatically.
146
+ # @!attribute [rw] trace_context
147
+ # @return [::String]
148
+ # Immutable. Header string for tracing across services. It should be set when
149
+ # the packet is first arrived in the stream server.
150
+ #
151
+ # The input format is a lowercase hex string:
152
+ # - version_id: 1 byte, currently must be zero - hex encoded (2 characters)
153
+ # - trace_id: 16 bytes (opaque blob) - hex encoded (32 characters)
154
+ # - span_id: 8 bytes (opaque blob) - hex encoded (16 characters)
155
+ # - trace_options: 1 byte (LSB means tracing enabled) - hex encoded (2
156
+ # characters)
157
+ # Example: "00-404142434445464748494a4b4c4d4e4f-6162636465666768-01"
158
+ # v trace_id span_id options
159
+ class PacketHeader
160
+ include ::Google::Protobuf::MessageExts
161
+ extend ::Google::Protobuf::MessageExts::ClassMethods
162
+ end
163
+
164
+ # The quanta of datum that the series accepts.
165
+ # @!attribute [rw] header
166
+ # @return [::Google::Cloud::VisionAI::V1::PacketHeader]
167
+ # The packet header.
168
+ # @!attribute [rw] payload
169
+ # @return [::String]
170
+ # The payload of the packet.
171
+ class Packet
172
+ include ::Google::Protobuf::MessageExts
173
+ extend ::Google::Protobuf::MessageExts::ClassMethods
174
+ end
175
+ end
176
+ end
177
+ end
178
+ end
@@ -0,0 +1,393 @@
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
+ # Request message for ReceiveEvents.
25
+ # @!attribute [rw] setup_request
26
+ # @return [::Google::Cloud::VisionAI::V1::ReceiveEventsRequest::SetupRequest]
27
+ # The setup request to setup the RPC connection.
28
+ # @!attribute [rw] commit_request
29
+ # @return [::Google::Cloud::VisionAI::V1::CommitRequest]
30
+ # This request checkpoints the consumer's read progress.
31
+ class ReceiveEventsRequest
32
+ include ::Google::Protobuf::MessageExts
33
+ extend ::Google::Protobuf::MessageExts::ClassMethods
34
+
35
+ # SetupRequest is the first message sent to the service to setup the RPC
36
+ # connection.
37
+ # @!attribute [rw] cluster
38
+ # @return [::String]
39
+ # The cluster name.
40
+ # @!attribute [rw] stream
41
+ # @return [::String]
42
+ # The stream name. The service will return the events for the given stream.
43
+ # @!attribute [rw] receiver
44
+ # @return [::String]
45
+ # A name for the receiver to self-identify.
46
+ #
47
+ # This is used to keep track of a receiver's read progress.
48
+ # @!attribute [rw] controlled_mode
49
+ # @return [::Google::Cloud::VisionAI::V1::ControlledMode]
50
+ # Controller mode configuration for receiving events from the server.
51
+ # @!attribute [rw] heartbeat_interval
52
+ # @return [::Google::Protobuf::Duration]
53
+ # The maximum duration of server silence before the client determines the
54
+ # server unreachable.
55
+ #
56
+ # The client must either receive an `Event` update or a heart beat message
57
+ # before this duration expires; otherwise, the client will automatically
58
+ # cancel the current connection and retry.
59
+ # @!attribute [rw] writes_done_grace_period
60
+ # @return [::Google::Protobuf::Duration]
61
+ # The grace period after which a `writes_done_request` is issued, that a
62
+ # `WritesDone` is expected from the client.
63
+ #
64
+ # The server is free to cancel the RPC should this expire.
65
+ #
66
+ # A system default will be chosen if unset.
67
+ class SetupRequest
68
+ include ::Google::Protobuf::MessageExts
69
+ extend ::Google::Protobuf::MessageExts::ClassMethods
70
+ end
71
+ end
72
+
73
+ # The event update message.
74
+ # @!attribute [rw] stream
75
+ # @return [::String]
76
+ # The name of the stream that the event is attached to.
77
+ # @!attribute [rw] event
78
+ # @return [::String]
79
+ # The name of the event.
80
+ # @!attribute [rw] series
81
+ # @return [::String]
82
+ # The name of the series.
83
+ # @!attribute [rw] update_time
84
+ # @return [::Google::Protobuf::Timestamp]
85
+ # The timestamp when the Event update happens.
86
+ # @!attribute [rw] offset
87
+ # @return [::Integer]
88
+ # The offset of the message that will be used to acknowledge of the message
89
+ # receiving.
90
+ class EventUpdate
91
+ include ::Google::Protobuf::MessageExts
92
+ extend ::Google::Protobuf::MessageExts::ClassMethods
93
+ end
94
+
95
+ # Control message for a ReceiveEventsResponse.
96
+ # @!attribute [rw] heartbeat
97
+ # @return [::Boolean]
98
+ # A server heartbeat.
99
+ # @!attribute [rw] writes_done_request
100
+ # @return [::Boolean]
101
+ # A request to the receiver to complete any final writes followed by a
102
+ # `WritesDone`; e.g. issue any final `CommitRequest`s.
103
+ #
104
+ # May be ignored if `WritesDone` has already been issued at any point
105
+ # prior to receiving this message.
106
+ #
107
+ # If `WritesDone` does not get issued, then the server will forcefully
108
+ # cancel the connection, and the receiver will likely receive an
109
+ # uninformative after `Read` returns `false` and `Finish` is called.
110
+ class ReceiveEventsControlResponse
111
+ include ::Google::Protobuf::MessageExts
112
+ extend ::Google::Protobuf::MessageExts::ClassMethods
113
+ end
114
+
115
+ # Response message for the ReceiveEvents.
116
+ # @!attribute [rw] event_update
117
+ # @return [::Google::Cloud::VisionAI::V1::EventUpdate]
118
+ # The event update message.
119
+ # @!attribute [rw] control
120
+ # @return [::Google::Cloud::VisionAI::V1::ReceiveEventsControlResponse]
121
+ # A control message from the server.
122
+ class ReceiveEventsResponse
123
+ include ::Google::Protobuf::MessageExts
124
+ extend ::Google::Protobuf::MessageExts::ClassMethods
125
+ end
126
+
127
+ # The lease message.
128
+ # @!attribute [rw] id
129
+ # @return [::String]
130
+ # The lease id.
131
+ # @!attribute [rw] series
132
+ # @return [::String]
133
+ # The series name.
134
+ # @!attribute [rw] owner
135
+ # @return [::String]
136
+ # The owner name.
137
+ # @!attribute [rw] expire_time
138
+ # @return [::Google::Protobuf::Timestamp]
139
+ # The lease expire time.
140
+ # @!attribute [rw] lease_type
141
+ # @return [::Google::Cloud::VisionAI::V1::LeaseType]
142
+ # The lease type.
143
+ class Lease
144
+ include ::Google::Protobuf::MessageExts
145
+ extend ::Google::Protobuf::MessageExts::ClassMethods
146
+ end
147
+
148
+ # Request message for acquiring a lease.
149
+ # @!attribute [rw] series
150
+ # @return [::String]
151
+ # The series name.
152
+ # @!attribute [rw] owner
153
+ # @return [::String]
154
+ # The owner name.
155
+ # @!attribute [rw] term
156
+ # @return [::Google::Protobuf::Duration]
157
+ # The lease term.
158
+ # @!attribute [rw] lease_type
159
+ # @return [::Google::Cloud::VisionAI::V1::LeaseType]
160
+ # The lease type.
161
+ class AcquireLeaseRequest
162
+ include ::Google::Protobuf::MessageExts
163
+ extend ::Google::Protobuf::MessageExts::ClassMethods
164
+ end
165
+
166
+ # Request message for renewing a lease.
167
+ # @!attribute [rw] id
168
+ # @return [::String]
169
+ # Lease id.
170
+ # @!attribute [rw] series
171
+ # @return [::String]
172
+ # Series name.
173
+ # @!attribute [rw] owner
174
+ # @return [::String]
175
+ # Lease owner.
176
+ # @!attribute [rw] term
177
+ # @return [::Google::Protobuf::Duration]
178
+ # Lease term.
179
+ class RenewLeaseRequest
180
+ include ::Google::Protobuf::MessageExts
181
+ extend ::Google::Protobuf::MessageExts::ClassMethods
182
+ end
183
+
184
+ # Request message for releasing lease.
185
+ # @!attribute [rw] id
186
+ # @return [::String]
187
+ # Lease id.
188
+ # @!attribute [rw] series
189
+ # @return [::String]
190
+ # Series name.
191
+ # @!attribute [rw] owner
192
+ # @return [::String]
193
+ # Lease owner.
194
+ class ReleaseLeaseRequest
195
+ include ::Google::Protobuf::MessageExts
196
+ extend ::Google::Protobuf::MessageExts::ClassMethods
197
+ end
198
+
199
+ # Response message for release lease.
200
+ class ReleaseLeaseResponse
201
+ include ::Google::Protobuf::MessageExts
202
+ extend ::Google::Protobuf::MessageExts::ClassMethods
203
+ end
204
+
205
+ # RequestMetadata is the metadata message for the request.
206
+ # @!attribute [rw] stream
207
+ # @return [::String]
208
+ # Stream name.
209
+ # @!attribute [rw] event
210
+ # @return [::String]
211
+ # Evevt name.
212
+ # @!attribute [rw] series
213
+ # @return [::String]
214
+ # Series name.
215
+ # @!attribute [rw] lease_id
216
+ # @return [::String]
217
+ # Lease id.
218
+ # @!attribute [rw] owner
219
+ # @return [::String]
220
+ # Owner name.
221
+ # @!attribute [rw] lease_term
222
+ # @return [::Google::Protobuf::Duration]
223
+ # Lease term specifies how long the client wants the session to be maintained
224
+ # by the server after the client leaves. If the lease term is not set, the
225
+ # server will release the session immediately and the client cannot reconnect
226
+ # to the same session later.
227
+ class RequestMetadata
228
+ include ::Google::Protobuf::MessageExts
229
+ extend ::Google::Protobuf::MessageExts::ClassMethods
230
+ end
231
+
232
+ # Request message for sending packets.
233
+ # @!attribute [rw] packet
234
+ # @return [::Google::Cloud::VisionAI::V1::Packet]
235
+ # Packets sent over the streaming rpc.
236
+ # @!attribute [rw] metadata
237
+ # @return [::Google::Cloud::VisionAI::V1::RequestMetadata]
238
+ # The first message of the streaming rpc including the request metadata.
239
+ class SendPacketsRequest
240
+ include ::Google::Protobuf::MessageExts
241
+ extend ::Google::Protobuf::MessageExts::ClassMethods
242
+ end
243
+
244
+ # Response message for sending packets.
245
+ class SendPacketsResponse
246
+ include ::Google::Protobuf::MessageExts
247
+ extend ::Google::Protobuf::MessageExts::ClassMethods
248
+ end
249
+
250
+ # Request message for receiving packets.
251
+ # @!attribute [rw] setup_request
252
+ # @return [::Google::Cloud::VisionAI::V1::ReceivePacketsRequest::SetupRequest]
253
+ # The request to setup the initial state of session.
254
+ #
255
+ # The client must send and only send this as the first message.
256
+ # @!attribute [rw] commit_request
257
+ # @return [::Google::Cloud::VisionAI::V1::CommitRequest]
258
+ # This request checkpoints the consumer's read progress.
259
+ class ReceivePacketsRequest
260
+ include ::Google::Protobuf::MessageExts
261
+ extend ::Google::Protobuf::MessageExts::ClassMethods
262
+
263
+ # The message specifying the initial settings for the ReceivePackets session.
264
+ # @!attribute [rw] eager_receive_mode
265
+ # @return [::Google::Cloud::VisionAI::V1::EagerMode]
266
+ # Options for configuring eager mode.
267
+ # @!attribute [rw] controlled_receive_mode
268
+ # @return [::Google::Cloud::VisionAI::V1::ControlledMode]
269
+ # Options for configuring controlled mode.
270
+ # @!attribute [rw] metadata
271
+ # @return [::Google::Cloud::VisionAI::V1::RequestMetadata]
272
+ # The configurations that specify where packets are retrieved.
273
+ # @!attribute [rw] receiver
274
+ # @return [::String]
275
+ # A name for the receiver to self-identify.
276
+ #
277
+ # This is used to keep track of a receiver's read progress.
278
+ # @!attribute [rw] heartbeat_interval
279
+ # @return [::Google::Protobuf::Duration]
280
+ # The maximum duration of server silence before the client determines the
281
+ # server unreachable.
282
+ #
283
+ # The client must either receive a `Packet` or a heart beat message before
284
+ # this duration expires; otherwise, the client will automatically cancel
285
+ # the current connection and retry.
286
+ # @!attribute [rw] writes_done_grace_period
287
+ # @return [::Google::Protobuf::Duration]
288
+ # The grace period after which a `writes_done_request` is issued, that a
289
+ # `WritesDone` is expected from the client.
290
+ #
291
+ # The server is free to cancel the RPC should this expire.
292
+ #
293
+ # A system default will be chosen if unset.
294
+ class SetupRequest
295
+ include ::Google::Protobuf::MessageExts
296
+ extend ::Google::Protobuf::MessageExts::ClassMethods
297
+ end
298
+ end
299
+
300
+ # Control message for a ReceivePacketsResponse.
301
+ # @!attribute [rw] heartbeat
302
+ # @return [::Boolean]
303
+ # A server heartbeat.
304
+ # @!attribute [rw] writes_done_request
305
+ # @return [::Boolean]
306
+ # A request to the receiver to complete any final writes followed by a
307
+ # `WritesDone`; e.g. issue any final `CommitRequest`s.
308
+ #
309
+ # May be ignored if `WritesDone` has already been issued at any point
310
+ # prior to receiving this message.
311
+ #
312
+ # If `WritesDone` does not get issued, then the server will forcefully
313
+ # cancel the connection, and the receiver will likely receive an
314
+ # uninformative after `Read` returns `false` and `Finish` is called.
315
+ class ReceivePacketsControlResponse
316
+ include ::Google::Protobuf::MessageExts
317
+ extend ::Google::Protobuf::MessageExts::ClassMethods
318
+ end
319
+
320
+ # Response message from ReceivePackets.
321
+ # @!attribute [rw] packet
322
+ # @return [::Google::Cloud::VisionAI::V1::Packet]
323
+ # A genuine data payload originating from the sender.
324
+ # @!attribute [rw] control
325
+ # @return [::Google::Cloud::VisionAI::V1::ReceivePacketsControlResponse]
326
+ # A control message from the server.
327
+ class ReceivePacketsResponse
328
+ include ::Google::Protobuf::MessageExts
329
+ extend ::Google::Protobuf::MessageExts::ClassMethods
330
+ end
331
+
332
+ # The options for receiver under the eager mode.
333
+ class EagerMode
334
+ include ::Google::Protobuf::MessageExts
335
+ extend ::Google::Protobuf::MessageExts::ClassMethods
336
+ end
337
+
338
+ # The options for receiver under the controlled mode.
339
+ # @!attribute [rw] starting_logical_offset
340
+ # @return [::String]
341
+ # This can be set to the following logical starting points:
342
+ #
343
+ # "begin": This will read from the earliest available message.
344
+ #
345
+ # "most-recent": This will read from the latest available message.
346
+ #
347
+ # "end": This will read only future messages.
348
+ #
349
+ # "stored": This will resume reads one past the last committed offset.
350
+ # It is the only option that resumes progress; all others
351
+ # jump unilaterally.
352
+ # @!attribute [rw] fallback_starting_offset
353
+ # @return [::String]
354
+ # This is the logical starting point to fallback upon should the
355
+ # specified starting offset be unavailable.
356
+ #
357
+ # This can be one of the following values:
358
+ #
359
+ # "begin": This will read from the earliest available message.
360
+ #
361
+ # "end": This will read only future messages.
362
+ class ControlledMode
363
+ include ::Google::Protobuf::MessageExts
364
+ extend ::Google::Protobuf::MessageExts::ClassMethods
365
+ end
366
+
367
+ # The message for explicitly committing the read progress.
368
+ #
369
+ # This may only be used when `ReceivePacketsControlledMode` is set in the
370
+ # initial setup request.
371
+ # @!attribute [rw] offset
372
+ # @return [::Integer]
373
+ # The offset to commit.
374
+ class CommitRequest
375
+ include ::Google::Protobuf::MessageExts
376
+ extend ::Google::Protobuf::MessageExts::ClassMethods
377
+ end
378
+
379
+ # The lease type.
380
+ module LeaseType
381
+ # Lease type unspecified.
382
+ LEASE_TYPE_UNSPECIFIED = 0
383
+
384
+ # Lease for stream reader.
385
+ LEASE_TYPE_READER = 1
386
+
387
+ # Lease for stream writer.
388
+ LEASE_TYPE_WRITER = 2
389
+ end
390
+ end
391
+ end
392
+ end
393
+ end