Debian Codegraph @

visionai/apiv1/visionaipb/streaming_service.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/cloud/visionai/v1/streaming_service.proto
20
21 package visionaipb
22
23 import (
24 context "context"
25 _ "google.golang.org/genproto/googleapis/api/annotations"
26 grpc "google.golang.org/grpc"
27 codes "google.golang.org/grpc/codes"
28 status "google.golang.org/grpc/status"
29 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
30 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
31 durationpb "google.golang.org/protobuf/types/known/durationpb"
32 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
33 reflect "reflect"
34 sync "sync"
35 )
36
37 const (
38 // Verify that this generated code is sufficiently up-to-date.
39 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
40 // Verify that runtime/protoimpl is sufficiently up-to-date.
41 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
42 )
43
44 // The lease type.
45 type LeaseType int32
46
47 const (
48 // Lease type unspecified.
49 LeaseType_LEASE_TYPE_UNSPECIFIED LeaseType = 0
50 // Lease for stream reader.
51 LeaseType_LEASE_TYPE_READER LeaseType = 1
52 // Lease for stream writer.
53 LeaseType_LEASE_TYPE_WRITER LeaseType = 2
54 )
55
56 // Enum value maps for LeaseType.
57 var (
58 LeaseType_name = map[int32]string{
59 0: "LEASE_TYPE_UNSPECIFIED",
60 1: "LEASE_TYPE_READER",
61 2: "LEASE_TYPE_WRITER",
62 }
63 LeaseType_value = map[string]int32{
64 "LEASE_TYPE_UNSPECIFIED": 0,
65 "LEASE_TYPE_READER": 1,
66 "LEASE_TYPE_WRITER": 2,
67 }
68 )
69
70 func (x LeaseType) Enum() *LeaseType {
71 p := new(LeaseType)
72 *p = x
73 return p
74 }
75
76 func (x LeaseType) String() string {
77 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
78 }
79
80 func (LeaseType) Descriptor() protoreflect.EnumDescriptor {
81 return file_google_cloud_visionai_v1_streaming_service_proto_enumTypes[0].Descriptor()
82 }
83
84 func (LeaseType) Type() protoreflect.EnumType {
85 return &file_google_cloud_visionai_v1_streaming_service_proto_enumTypes[0]
86 }
87
88 func (x LeaseType) Number() protoreflect.EnumNumber {
89 return protoreflect.EnumNumber(x)
90 }
91
92 // Deprecated: Use LeaseType.Descriptor instead.
93 func (LeaseType) EnumDescriptor() ([]byte, []int) {
94 return file_google_cloud_visionai_v1_streaming_service_proto_rawDescGZIP(), []int{0}
95 }
96
97 // Request message for ReceiveEvents.
98 type ReceiveEventsRequest struct {
99 state protoimpl.MessageState
100 sizeCache protoimpl.SizeCache
101 unknownFields protoimpl.UnknownFields
102
103 // Types that are assignable to Request:
104 //
105 // *ReceiveEventsRequest_SetupRequest_
106 // *ReceiveEventsRequest_CommitRequest
107 Request isReceiveEventsRequest_Request `protobuf_oneof:"request"`
108 }
109
110 func (x *ReceiveEventsRequest) Reset() {
111 *x = ReceiveEventsRequest{}
112 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[0]
113 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
114 ms.StoreMessageInfo(mi)
115 }
116
117 func (x *ReceiveEventsRequest) String() string {
118 return protoimpl.X.MessageStringOf(x)
119 }
120
121 func (*ReceiveEventsRequest) ProtoMessage() {}
122
123 func (x *ReceiveEventsRequest) ProtoReflect() protoreflect.Message {
124 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[0]
125 if x != nil {
126 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
127 if ms.LoadMessageInfo() == nil {
128 ms.StoreMessageInfo(mi)
129 }
130 return ms
131 }
132 return mi.MessageOf(x)
133 }
134
135 // Deprecated: Use ReceiveEventsRequest.ProtoReflect.Descriptor instead.
136 func (*ReceiveEventsRequest) Descriptor() ([]byte, []int) {
137 return file_google_cloud_visionai_v1_streaming_service_proto_rawDescGZIP(), []int{0}
138 }
139
140 func (m *ReceiveEventsRequest) GetRequest() isReceiveEventsRequest_Request {
141 if m != nil {
142 return m.Request
143 }
144 return nil
145 }
146
147 func (x *ReceiveEventsRequest) GetSetupRequest() *ReceiveEventsRequest_SetupRequest {
148 if x, ok := x.GetRequest().(*ReceiveEventsRequest_SetupRequest_); ok {
149 return x.SetupRequest
150 }
151 return nil
152 }
153
154 func (x *ReceiveEventsRequest) GetCommitRequest() *CommitRequest {
155 if x, ok := x.GetRequest().(*ReceiveEventsRequest_CommitRequest); ok {
156 return x.CommitRequest
157 }
158 return nil
159 }
160
161 type isReceiveEventsRequest_Request interface {
162 isReceiveEventsRequest_Request()
163 }
164
165 type ReceiveEventsRequest_SetupRequest_ struct {
166 // The setup request to setup the RPC connection.
167 SetupRequest *ReceiveEventsRequest_SetupRequest `protobuf:"bytes,1,opt,name=setup_request,json=setupRequest,proto3,oneof"`
168 }
169
170 type ReceiveEventsRequest_CommitRequest struct {
171 // This request checkpoints the consumer's read progress.
172 CommitRequest *CommitRequest `protobuf:"bytes,2,opt,name=commit_request,json=commitRequest,proto3,oneof"`
173 }
174
175 func (*ReceiveEventsRequest_SetupRequest_) isReceiveEventsRequest_Request() {}
176
177 func (*ReceiveEventsRequest_CommitRequest) isReceiveEventsRequest_Request() {}
178
179 // The event update message.
180 type EventUpdate struct {
181 state protoimpl.MessageState
182 sizeCache protoimpl.SizeCache
183 unknownFields protoimpl.UnknownFields
184
185 // The name of the stream that the event is attached to.
186 Stream string `protobuf:"bytes,1,opt,name=stream,proto3" json:"stream,omitempty"`
187 // The name of the event.
188 Event string `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"`
189 // The name of the series.
190 Series string `protobuf:"bytes,3,opt,name=series,proto3" json:"series,omitempty"`
191 // The timestamp when the Event update happens.
192 UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
193 // The offset of the message that will be used to acknowledge of the message
194 // receiving.
195 Offset int64 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"`
196 }
197
198 func (x *EventUpdate) Reset() {
199 *x = EventUpdate{}
200 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[1]
201 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
202 ms.StoreMessageInfo(mi)
203 }
204
205 func (x *EventUpdate) String() string {
206 return protoimpl.X.MessageStringOf(x)
207 }
208
209 func (*EventUpdate) ProtoMessage() {}
210
211 func (x *EventUpdate) ProtoReflect() protoreflect.Message {
212 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[1]
213 if x != nil {
214 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
215 if ms.LoadMessageInfo() == nil {
216 ms.StoreMessageInfo(mi)
217 }
218 return ms
219 }
220 return mi.MessageOf(x)
221 }
222
223 // Deprecated: Use EventUpdate.ProtoReflect.Descriptor instead.
224 func (*EventUpdate) Descriptor() ([]byte, []int) {
225 return file_google_cloud_visionai_v1_streaming_service_proto_rawDescGZIP(), []int{1}
226 }
227
228 func (x *EventUpdate) GetStream() string {
229 if x != nil {
230 return x.Stream
231 }
232 return ""
233 }
234
235 func (x *EventUpdate) GetEvent() string {
236 if x != nil {
237 return x.Event
238 }
239 return ""
240 }
241
242 func (x *EventUpdate) GetSeries() string {
243 if x != nil {
244 return x.Series
245 }
246 return ""
247 }
248
249 func (x *EventUpdate) GetUpdateTime() *timestamppb.Timestamp {
250 if x != nil {
251 return x.UpdateTime
252 }
253 return nil
254 }
255
256 func (x *EventUpdate) GetOffset() int64 {
257 if x != nil {
258 return x.Offset
259 }
260 return 0
261 }
262
263 // Control message for a ReceiveEventsResponse.
264 type ReceiveEventsControlResponse struct {
265 state protoimpl.MessageState
266 sizeCache protoimpl.SizeCache
267 unknownFields protoimpl.UnknownFields
268
269 // Possible control messages.
270 //
271 // Types that are assignable to Control:
272 //
273 // *ReceiveEventsControlResponse_Heartbeat
274 // *ReceiveEventsControlResponse_WritesDoneRequest
275 Control isReceiveEventsControlResponse_Control `protobuf_oneof:"control"`
276 }
277
278 func (x *ReceiveEventsControlResponse) Reset() {
279 *x = ReceiveEventsControlResponse{}
280 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[2]
281 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
282 ms.StoreMessageInfo(mi)
283 }
284
285 func (x *ReceiveEventsControlResponse) String() string {
286 return protoimpl.X.MessageStringOf(x)
287 }
288
289 func (*ReceiveEventsControlResponse) ProtoMessage() {}
290
291 func (x *ReceiveEventsControlResponse) ProtoReflect() protoreflect.Message {
292 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[2]
293 if x != nil {
294 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
295 if ms.LoadMessageInfo() == nil {
296 ms.StoreMessageInfo(mi)
297 }
298 return ms
299 }
300 return mi.MessageOf(x)
301 }
302
303 // Deprecated: Use ReceiveEventsControlResponse.ProtoReflect.Descriptor instead.
304 func (*ReceiveEventsControlResponse) Descriptor() ([]byte, []int) {
305 return file_google_cloud_visionai_v1_streaming_service_proto_rawDescGZIP(), []int{2}
306 }
307
308 func (m *ReceiveEventsControlResponse) GetControl() isReceiveEventsControlResponse_Control {
309 if m != nil {
310 return m.Control
311 }
312 return nil
313 }
314
315 func (x *ReceiveEventsControlResponse) GetHeartbeat() bool {
316 if x, ok := x.GetControl().(*ReceiveEventsControlResponse_Heartbeat); ok {
317 return x.Heartbeat
318 }
319 return false
320 }
321
322 func (x *ReceiveEventsControlResponse) GetWritesDoneRequest() bool {
323 if x, ok := x.GetControl().(*ReceiveEventsControlResponse_WritesDoneRequest); ok {
324 return x.WritesDoneRequest
325 }
326 return false
327 }
328
329 type isReceiveEventsControlResponse_Control interface {
330 isReceiveEventsControlResponse_Control()
331 }
332
333 type ReceiveEventsControlResponse_Heartbeat struct {
334 // A server heartbeat.
335 Heartbeat bool `protobuf:"varint,1,opt,name=heartbeat,proto3,oneof"`
336 }
337
338 type ReceiveEventsControlResponse_WritesDoneRequest struct {
339 // A request to the receiver to complete any final writes followed by a
340 // `WritesDone`; e.g. issue any final `CommitRequest`s.
341 //
342 // May be ignored if `WritesDone` has already been issued at any point
343 // prior to receiving this message.
344 //
345 // If `WritesDone` does not get issued, then the server will forcefully
346 // cancel the connection, and the receiver will likely receive an
347 // uninformative after `Read` returns `false` and `Finish` is called.
348 WritesDoneRequest bool `protobuf:"varint,2,opt,name=writes_done_request,json=writesDoneRequest,proto3,oneof"`
349 }
350
351 func (*ReceiveEventsControlResponse_Heartbeat) isReceiveEventsControlResponse_Control() {}
352
353 func (*ReceiveEventsControlResponse_WritesDoneRequest) isReceiveEventsControlResponse_Control() {}
354
355 // Response message for the ReceiveEvents.
356 type ReceiveEventsResponse struct {
357 state protoimpl.MessageState
358 sizeCache protoimpl.SizeCache
359 unknownFields protoimpl.UnknownFields
360
361 // Possible response types.
362 //
363 // Types that are assignable to Response:
364 //
365 // *ReceiveEventsResponse_EventUpdate
366 // *ReceiveEventsResponse_Control
367 Response isReceiveEventsResponse_Response `protobuf_oneof:"response"`
368 }
369
370 func (x *ReceiveEventsResponse) Reset() {
371 *x = ReceiveEventsResponse{}
372 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[3]
373 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
374 ms.StoreMessageInfo(mi)
375 }
376
377 func (x *ReceiveEventsResponse) String() string {
378 return protoimpl.X.MessageStringOf(x)
379 }
380
381 func (*ReceiveEventsResponse) ProtoMessage() {}
382
383 func (x *ReceiveEventsResponse) ProtoReflect() protoreflect.Message {
384 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[3]
385 if x != nil {
386 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
387 if ms.LoadMessageInfo() == nil {
388 ms.StoreMessageInfo(mi)
389 }
390 return ms
391 }
392 return mi.MessageOf(x)
393 }
394
395 // Deprecated: Use ReceiveEventsResponse.ProtoReflect.Descriptor instead.
396 func (*ReceiveEventsResponse) Descriptor() ([]byte, []int) {
397 return file_google_cloud_visionai_v1_streaming_service_proto_rawDescGZIP(), []int{3}
398 }
399
400 func (m *ReceiveEventsResponse) GetResponse() isReceiveEventsResponse_Response {
401 if m != nil {
402 return m.Response
403 }
404 return nil
405 }
406
407 func (x *ReceiveEventsResponse) GetEventUpdate() *EventUpdate {
408 if x, ok := x.GetResponse().(*ReceiveEventsResponse_EventUpdate); ok {
409 return x.EventUpdate
410 }
411 return nil
412 }
413
414 func (x *ReceiveEventsResponse) GetControl() *ReceiveEventsControlResponse {
415 if x, ok := x.GetResponse().(*ReceiveEventsResponse_Control); ok {
416 return x.Control
417 }
418 return nil
419 }
420
421 type isReceiveEventsResponse_Response interface {
422 isReceiveEventsResponse_Response()
423 }
424
425 type ReceiveEventsResponse_EventUpdate struct {
426 // The event update message.
427 EventUpdate *EventUpdate `protobuf:"bytes,1,opt,name=event_update,json=eventUpdate,proto3,oneof"`
428 }
429
430 type ReceiveEventsResponse_Control struct {
431 // A control message from the server.
432 Control *ReceiveEventsControlResponse `protobuf:"bytes,2,opt,name=control,proto3,oneof"`
433 }
434
435 func (*ReceiveEventsResponse_EventUpdate) isReceiveEventsResponse_Response() {}
436
437 func (*ReceiveEventsResponse_Control) isReceiveEventsResponse_Response() {}
438
439 // The lease message.
440 type Lease struct {
441 state protoimpl.MessageState
442 sizeCache protoimpl.SizeCache
443 unknownFields protoimpl.UnknownFields
444
445 // The lease id.
446 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
447 // The series name.
448 Series string `protobuf:"bytes,2,opt,name=series,proto3" json:"series,omitempty"`
449 // The owner name.
450 Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
451 // The lease expire time.
452 ExpireTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
453 // The lease type.
454 LeaseType LeaseType `protobuf:"varint,5,opt,name=lease_type,json=leaseType,proto3,enum=google.cloud.visionai.v1.LeaseType" json:"lease_type,omitempty"`
455 }
456
457 func (x *Lease) Reset() {
458 *x = Lease{}
459 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[4]
460 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
461 ms.StoreMessageInfo(mi)
462 }
463
464 func (x *Lease) String() string {
465 return protoimpl.X.MessageStringOf(x)
466 }
467
468 func (*Lease) ProtoMessage() {}
469
470 func (x *Lease) ProtoReflect() protoreflect.Message {
471 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[4]
472 if x != nil {
473 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
474 if ms.LoadMessageInfo() == nil {
475 ms.StoreMessageInfo(mi)
476 }
477 return ms
478 }
479 return mi.MessageOf(x)
480 }
481
482 // Deprecated: Use Lease.ProtoReflect.Descriptor instead.
483 func (*Lease) Descriptor() ([]byte, []int) {
484 return file_google_cloud_visionai_v1_streaming_service_proto_rawDescGZIP(), []int{4}
485 }
486
487 func (x *Lease) GetId() string {
488 if x != nil {
489 return x.Id
490 }
491 return ""
492 }
493
494 func (x *Lease) GetSeries() string {
495 if x != nil {
496 return x.Series
497 }
498 return ""
499 }
500
501 func (x *Lease) GetOwner() string {
502 if x != nil {
503 return x.Owner
504 }
505 return ""
506 }
507
508 func (x *Lease) GetExpireTime() *timestamppb.Timestamp {
509 if x != nil {
510 return x.ExpireTime
511 }
512 return nil
513 }
514
515 func (x *Lease) GetLeaseType() LeaseType {
516 if x != nil {
517 return x.LeaseType
518 }
519 return LeaseType_LEASE_TYPE_UNSPECIFIED
520 }
521
522 // Request message for acquiring a lease.
523 type AcquireLeaseRequest struct {
524 state protoimpl.MessageState
525 sizeCache protoimpl.SizeCache
526 unknownFields protoimpl.UnknownFields
527
528 // The series name.
529 Series string `protobuf:"bytes,1,opt,name=series,proto3" json:"series,omitempty"`
530 // The owner name.
531 Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
532 // The lease term.
533 Term *durationpb.Duration `protobuf:"bytes,3,opt,name=term,proto3" json:"term,omitempty"`
534 // The lease type.
535 LeaseType LeaseType `protobuf:"varint,4,opt,name=lease_type,json=leaseType,proto3,enum=google.cloud.visionai.v1.LeaseType" json:"lease_type,omitempty"`
536 }
537
538 func (x *AcquireLeaseRequest) Reset() {
539 *x = AcquireLeaseRequest{}
540 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[5]
541 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
542 ms.StoreMessageInfo(mi)
543 }
544
545 func (x *AcquireLeaseRequest) String() string {
546 return protoimpl.X.MessageStringOf(x)
547 }
548
549 func (*AcquireLeaseRequest) ProtoMessage() {}
550
551 func (x *AcquireLeaseRequest) ProtoReflect() protoreflect.Message {
552 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[5]
553 if x != nil {
554 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
555 if ms.LoadMessageInfo() == nil {
556 ms.StoreMessageInfo(mi)
557 }
558 return ms
559 }
560 return mi.MessageOf(x)
561 }
562
563 // Deprecated: Use AcquireLeaseRequest.ProtoReflect.Descriptor instead.
564 func (*AcquireLeaseRequest) Descriptor() ([]byte, []int) {
565 return file_google_cloud_visionai_v1_streaming_service_proto_rawDescGZIP(), []int{5}
566 }
567
568 func (x *AcquireLeaseRequest) GetSeries() string {
569 if x != nil {
570 return x.Series
571 }
572 return ""
573 }
574
575 func (x *AcquireLeaseRequest) GetOwner() string {
576 if x != nil {
577 return x.Owner
578 }
579 return ""
580 }
581
582 func (x *AcquireLeaseRequest) GetTerm() *durationpb.Duration {
583 if x != nil {
584 return x.Term
585 }
586 return nil
587 }
588
589 func (x *AcquireLeaseRequest) GetLeaseType() LeaseType {
590 if x != nil {
591 return x.LeaseType
592 }
593 return LeaseType_LEASE_TYPE_UNSPECIFIED
594 }
595
596 // Request message for renewing a lease.
597 type RenewLeaseRequest struct {
598 state protoimpl.MessageState
599 sizeCache protoimpl.SizeCache
600 unknownFields protoimpl.UnknownFields
601
602 // Lease id.
603 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
604 // Series name.
605 Series string `protobuf:"bytes,2,opt,name=series,proto3" json:"series,omitempty"`
606 // Lease owner.
607 Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
608 // Lease term.
609 Term *durationpb.Duration `protobuf:"bytes,4,opt,name=term,proto3" json:"term,omitempty"`
610 }
611
612 func (x *RenewLeaseRequest) Reset() {
613 *x = RenewLeaseRequest{}
614 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[6]
615 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
616 ms.StoreMessageInfo(mi)
617 }
618
619 func (x *RenewLeaseRequest) String() string {
620 return protoimpl.X.MessageStringOf(x)
621 }
622
623 func (*RenewLeaseRequest) ProtoMessage() {}
624
625 func (x *RenewLeaseRequest) ProtoReflect() protoreflect.Message {
626 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[6]
627 if x != nil {
628 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
629 if ms.LoadMessageInfo() == nil {
630 ms.StoreMessageInfo(mi)
631 }
632 return ms
633 }
634 return mi.MessageOf(x)
635 }
636
637 // Deprecated: Use RenewLeaseRequest.ProtoReflect.Descriptor instead.
638 func (*RenewLeaseRequest) Descriptor() ([]byte, []int) {
639 return file_google_cloud_visionai_v1_streaming_service_proto_rawDescGZIP(), []int{6}
640 }
641
642 func (x *RenewLeaseRequest) GetId() string {
643 if x != nil {
644 return x.Id
645 }
646 return ""
647 }
648
649 func (x *RenewLeaseRequest) GetSeries() string {
650 if x != nil {
651 return x.Series
652 }
653 return ""
654 }
655
656 func (x *RenewLeaseRequest) GetOwner() string {
657 if x != nil {
658 return x.Owner
659 }
660 return ""
661 }
662
663 func (x *RenewLeaseRequest) GetTerm() *durationpb.Duration {
664 if x != nil {
665 return x.Term
666 }
667 return nil
668 }
669
670 // Request message for releasing lease.
671 type ReleaseLeaseRequest struct {
672 state protoimpl.MessageState
673 sizeCache protoimpl.SizeCache
674 unknownFields protoimpl.UnknownFields
675
676 // Lease id.
677 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
678 // Series name.
679 Series string `protobuf:"bytes,2,opt,name=series,proto3" json:"series,omitempty"`
680 // Lease owner.
681 Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
682 }
683
684 func (x *ReleaseLeaseRequest) Reset() {
685 *x = ReleaseLeaseRequest{}
686 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[7]
687 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
688 ms.StoreMessageInfo(mi)
689 }
690
691 func (x *ReleaseLeaseRequest) String() string {
692 return protoimpl.X.MessageStringOf(x)
693 }
694
695 func (*ReleaseLeaseRequest) ProtoMessage() {}
696
697 func (x *ReleaseLeaseRequest) ProtoReflect() protoreflect.Message {
698 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[7]
699 if x != nil {
700 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
701 if ms.LoadMessageInfo() == nil {
702 ms.StoreMessageInfo(mi)
703 }
704 return ms
705 }
706 return mi.MessageOf(x)
707 }
708
709 // Deprecated: Use ReleaseLeaseRequest.ProtoReflect.Descriptor instead.
710 func (*ReleaseLeaseRequest) Descriptor() ([]byte, []int) {
711 return file_google_cloud_visionai_v1_streaming_service_proto_rawDescGZIP(), []int{7}
712 }
713
714 func (x *ReleaseLeaseRequest) GetId() string {
715 if x != nil {
716 return x.Id
717 }
718 return ""
719 }
720
721 func (x *ReleaseLeaseRequest) GetSeries() string {
722 if x != nil {
723 return x.Series
724 }
725 return ""
726 }
727
728 func (x *ReleaseLeaseRequest) GetOwner() string {
729 if x != nil {
730 return x.Owner
731 }
732 return ""
733 }
734
735 // Response message for release lease.
736 type ReleaseLeaseResponse struct {
737 state protoimpl.MessageState
738 sizeCache protoimpl.SizeCache
739 unknownFields protoimpl.UnknownFields
740 }
741
742 func (x *ReleaseLeaseResponse) Reset() {
743 *x = ReleaseLeaseResponse{}
744 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[8]
745 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
746 ms.StoreMessageInfo(mi)
747 }
748
749 func (x *ReleaseLeaseResponse) String() string {
750 return protoimpl.X.MessageStringOf(x)
751 }
752
753 func (*ReleaseLeaseResponse) ProtoMessage() {}
754
755 func (x *ReleaseLeaseResponse) ProtoReflect() protoreflect.Message {
756 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[8]
757 if x != nil {
758 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
759 if ms.LoadMessageInfo() == nil {
760 ms.StoreMessageInfo(mi)
761 }
762 return ms
763 }
764 return mi.MessageOf(x)
765 }
766
767 // Deprecated: Use ReleaseLeaseResponse.ProtoReflect.Descriptor instead.
768 func (*ReleaseLeaseResponse) Descriptor() ([]byte, []int) {
769 return file_google_cloud_visionai_v1_streaming_service_proto_rawDescGZIP(), []int{8}
770 }
771
772 // RequestMetadata is the metadata message for the request.
773 type RequestMetadata struct {
774 state protoimpl.MessageState
775 sizeCache protoimpl.SizeCache
776 unknownFields protoimpl.UnknownFields
777
778 // Stream name.
779 Stream string `protobuf:"bytes,1,opt,name=stream,proto3" json:"stream,omitempty"`
780 // Evevt name.
781 Event string `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"`
782 // Series name.
783 Series string `protobuf:"bytes,3,opt,name=series,proto3" json:"series,omitempty"`
784 // Lease id.
785 LeaseId string `protobuf:"bytes,4,opt,name=lease_id,json=leaseId,proto3" json:"lease_id,omitempty"`
786 // Owner name.
787 Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"`
788 // Lease term specifies how long the client wants the session to be maintained
789 // by the server after the client leaves. If the lease term is not set, the
790 // server will release the session immediately and the client cannot reconnect
791 // to the same session later.
792 LeaseTerm *durationpb.Duration `protobuf:"bytes,6,opt,name=lease_term,json=leaseTerm,proto3" json:"lease_term,omitempty"`
793 }
794
795 func (x *RequestMetadata) Reset() {
796 *x = RequestMetadata{}
797 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[9]
798 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
799 ms.StoreMessageInfo(mi)
800 }
801
802 func (x *RequestMetadata) String() string {
803 return protoimpl.X.MessageStringOf(x)
804 }
805
806 func (*RequestMetadata) ProtoMessage() {}
807
808 func (x *RequestMetadata) ProtoReflect() protoreflect.Message {
809 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[9]
810 if x != nil {
811 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
812 if ms.LoadMessageInfo() == nil {
813 ms.StoreMessageInfo(mi)
814 }
815 return ms
816 }
817 return mi.MessageOf(x)
818 }
819
820 // Deprecated: Use RequestMetadata.ProtoReflect.Descriptor instead.
821 func (*RequestMetadata) Descriptor() ([]byte, []int) {
822 return file_google_cloud_visionai_v1_streaming_service_proto_rawDescGZIP(), []int{9}
823 }
824
825 func (x *RequestMetadata) GetStream() string {
826 if x != nil {
827 return x.Stream
828 }
829 return ""
830 }
831
832 func (x *RequestMetadata) GetEvent() string {
833 if x != nil {
834 return x.Event
835 }
836 return ""
837 }
838
839 func (x *RequestMetadata) GetSeries() string {
840 if x != nil {
841 return x.Series
842 }
843 return ""
844 }
845
846 func (x *RequestMetadata) GetLeaseId() string {
847 if x != nil {
848 return x.LeaseId
849 }
850 return ""
851 }
852
853 func (x *RequestMetadata) GetOwner() string {
854 if x != nil {
855 return x.Owner
856 }
857 return ""
858 }
859
860 func (x *RequestMetadata) GetLeaseTerm() *durationpb.Duration {
861 if x != nil {
862 return x.LeaseTerm
863 }
864 return nil
865 }
866
867 // Request message for sending packets.
868 type SendPacketsRequest struct {
869 state protoimpl.MessageState
870 sizeCache protoimpl.SizeCache
871 unknownFields protoimpl.UnknownFields
872
873 // Types that are assignable to Request:
874 //
875 // *SendPacketsRequest_Packet
876 // *SendPacketsRequest_Metadata
877 Request isSendPacketsRequest_Request `protobuf_oneof:"request"`
878 }
879
880 func (x *SendPacketsRequest) Reset() {
881 *x = SendPacketsRequest{}
882 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[10]
883 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
884 ms.StoreMessageInfo(mi)
885 }
886
887 func (x *SendPacketsRequest) String() string {
888 return protoimpl.X.MessageStringOf(x)
889 }
890
891 func (*SendPacketsRequest) ProtoMessage() {}
892
893 func (x *SendPacketsRequest) ProtoReflect() protoreflect.Message {
894 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[10]
895 if x != nil {
896 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
897 if ms.LoadMessageInfo() == nil {
898 ms.StoreMessageInfo(mi)
899 }
900 return ms
901 }
902 return mi.MessageOf(x)
903 }
904
905 // Deprecated: Use SendPacketsRequest.ProtoReflect.Descriptor instead.
906 func (*SendPacketsRequest) Descriptor() ([]byte, []int) {
907 return file_google_cloud_visionai_v1_streaming_service_proto_rawDescGZIP(), []int{10}
908 }
909
910 func (m *SendPacketsRequest) GetRequest() isSendPacketsRequest_Request {
911 if m != nil {
912 return m.Request
913 }
914 return nil
915 }
916
917 func (x *SendPacketsRequest) GetPacket() *Packet {
918 if x, ok := x.GetRequest().(*SendPacketsRequest_Packet); ok {
919 return x.Packet
920 }
921 return nil
922 }
923
924 func (x *SendPacketsRequest) GetMetadata() *RequestMetadata {
925 if x, ok := x.GetRequest().(*SendPacketsRequest_Metadata); ok {
926 return x.Metadata
927 }
928 return nil
929 }
930
931 type isSendPacketsRequest_Request interface {
932 isSendPacketsRequest_Request()
933 }
934
935 type SendPacketsRequest_Packet struct {
936 // Packets sent over the streaming rpc.
937 Packet *Packet `protobuf:"bytes,1,opt,name=packet,proto3,oneof"`
938 }
939
940 type SendPacketsRequest_Metadata struct {
941 // The first message of the streaming rpc including the request metadata.
942 Metadata *RequestMetadata `protobuf:"bytes,2,opt,name=metadata,proto3,oneof"`
943 }
944
945 func (*SendPacketsRequest_Packet) isSendPacketsRequest_Request() {}
946
947 func (*SendPacketsRequest_Metadata) isSendPacketsRequest_Request() {}
948
949 // Response message for sending packets.
950 type SendPacketsResponse struct {
951 state protoimpl.MessageState
952 sizeCache protoimpl.SizeCache
953 unknownFields protoimpl.UnknownFields
954 }
955
956 func (x *SendPacketsResponse) Reset() {
957 *x = SendPacketsResponse{}
958 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[11]
959 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
960 ms.StoreMessageInfo(mi)
961 }
962
963 func (x *SendPacketsResponse) String() string {
964 return protoimpl.X.MessageStringOf(x)
965 }
966
967 func (*SendPacketsResponse) ProtoMessage() {}
968
969 func (x *SendPacketsResponse) ProtoReflect() protoreflect.Message {
970 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[11]
971 if x != nil {
972 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
973 if ms.LoadMessageInfo() == nil {
974 ms.StoreMessageInfo(mi)
975 }
976 return ms
977 }
978 return mi.MessageOf(x)
979 }
980
981 // Deprecated: Use SendPacketsResponse.ProtoReflect.Descriptor instead.
982 func (*SendPacketsResponse) Descriptor() ([]byte, []int) {
983 return file_google_cloud_visionai_v1_streaming_service_proto_rawDescGZIP(), []int{11}
984 }
985
986 // Request message for receiving packets.
987 type ReceivePacketsRequest struct {
988 state protoimpl.MessageState
989 sizeCache protoimpl.SizeCache
990 unknownFields protoimpl.UnknownFields
991
992 // Possible request types from the client.
993 //
994 // Types that are assignable to Request:
995 //
996 // *ReceivePacketsRequest_SetupRequest_
997 // *ReceivePacketsRequest_CommitRequest
998 Request isReceivePacketsRequest_Request `protobuf_oneof:"request"`
999 }
1000
1001 func (x *ReceivePacketsRequest) Reset() {
1002 *x = ReceivePacketsRequest{}
1003 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[12]
1004 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1005 ms.StoreMessageInfo(mi)
1006 }
1007
1008 func (x *ReceivePacketsRequest) String() string {
1009 return protoimpl.X.MessageStringOf(x)
1010 }
1011
1012 func (*ReceivePacketsRequest) ProtoMessage() {}
1013
1014 func (x *ReceivePacketsRequest) ProtoReflect() protoreflect.Message {
1015 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[12]
1016 if x != nil {
1017 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1018 if ms.LoadMessageInfo() == nil {
1019 ms.StoreMessageInfo(mi)
1020 }
1021 return ms
1022 }
1023 return mi.MessageOf(x)
1024 }
1025
1026 // Deprecated: Use ReceivePacketsRequest.ProtoReflect.Descriptor instead.
1027 func (*ReceivePacketsRequest) Descriptor() ([]byte, []int) {
1028 return file_google_cloud_visionai_v1_streaming_service_proto_rawDescGZIP(), []int{12}
1029 }
1030
1031 func (m *ReceivePacketsRequest) GetRequest() isReceivePacketsRequest_Request {
1032 if m != nil {
1033 return m.Request
1034 }
1035 return nil
1036 }
1037
1038 func (x *ReceivePacketsRequest) GetSetupRequest() *ReceivePacketsRequest_SetupRequest {
1039 if x, ok := x.GetRequest().(*ReceivePacketsRequest_SetupRequest_); ok {
1040 return x.SetupRequest
1041 }
1042 return nil
1043 }
1044
1045 func (x *ReceivePacketsRequest) GetCommitRequest() *CommitRequest {
1046 if x, ok := x.GetRequest().(*ReceivePacketsRequest_CommitRequest); ok {
1047 return x.CommitRequest
1048 }
1049 return nil
1050 }
1051
1052 type isReceivePacketsRequest_Request interface {
1053 isReceivePacketsRequest_Request()
1054 }
1055
1056 type ReceivePacketsRequest_SetupRequest_ struct {
1057 // The request to setup the initial state of session.
1058 //
1059 // The client must send and only send this as the first message.
1060 SetupRequest *ReceivePacketsRequest_SetupRequest `protobuf:"bytes,6,opt,name=setup_request,json=setupRequest,proto3,oneof"`
1061 }
1062
1063 type ReceivePacketsRequest_CommitRequest struct {
1064 // This request checkpoints the consumer's read progress.
1065 CommitRequest *CommitRequest `protobuf:"bytes,7,opt,name=commit_request,json=commitRequest,proto3,oneof"`
1066 }
1067
1068 func (*ReceivePacketsRequest_SetupRequest_) isReceivePacketsRequest_Request() {}
1069
1070 func (*ReceivePacketsRequest_CommitRequest) isReceivePacketsRequest_Request() {}
1071
1072 // Control message for a ReceivePacketsResponse.
1073 type ReceivePacketsControlResponse struct {
1074 state protoimpl.MessageState
1075 sizeCache protoimpl.SizeCache
1076 unknownFields protoimpl.UnknownFields
1077
1078 // Possible control messages.
1079 //
1080 // Types that are assignable to Control:
1081 //
1082 // *ReceivePacketsControlResponse_Heartbeat
1083 // *ReceivePacketsControlResponse_WritesDoneRequest
1084 Control isReceivePacketsControlResponse_Control `protobuf_oneof:"control"`
1085 }
1086
1087 func (x *ReceivePacketsControlResponse) Reset() {
1088 *x = ReceivePacketsControlResponse{}
1089 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[13]
1090 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1091 ms.StoreMessageInfo(mi)
1092 }
1093
1094 func (x *ReceivePacketsControlResponse) String() string {
1095 return protoimpl.X.MessageStringOf(x)
1096 }
1097
1098 func (*ReceivePacketsControlResponse) ProtoMessage() {}
1099
1100 func (x *ReceivePacketsControlResponse) ProtoReflect() protoreflect.Message {
1101 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[13]
1102 if x != nil {
1103 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1104 if ms.LoadMessageInfo() == nil {
1105 ms.StoreMessageInfo(mi)
1106 }
1107 return ms
1108 }
1109 return mi.MessageOf(x)
1110 }
1111
1112 // Deprecated: Use ReceivePacketsControlResponse.ProtoReflect.Descriptor instead.
1113 func (*ReceivePacketsControlResponse) Descriptor() ([]byte, []int) {
1114 return file_google_cloud_visionai_v1_streaming_service_proto_rawDescGZIP(), []int{13}
1115 }
1116
1117 func (m *ReceivePacketsControlResponse) GetControl() isReceivePacketsControlResponse_Control {
1118 if m != nil {
1119 return m.Control
1120 }
1121 return nil
1122 }
1123
1124 func (x *ReceivePacketsControlResponse) GetHeartbeat() bool {
1125 if x, ok := x.GetControl().(*ReceivePacketsControlResponse_Heartbeat); ok {
1126 return x.Heartbeat
1127 }
1128 return false
1129 }
1130
1131 func (x *ReceivePacketsControlResponse) GetWritesDoneRequest() bool {
1132 if x, ok := x.GetControl().(*ReceivePacketsControlResponse_WritesDoneRequest); ok {
1133 return x.WritesDoneRequest
1134 }
1135 return false
1136 }
1137
1138 type isReceivePacketsControlResponse_Control interface {
1139 isReceivePacketsControlResponse_Control()
1140 }
1141
1142 type ReceivePacketsControlResponse_Heartbeat struct {
1143 // A server heartbeat.
1144 Heartbeat bool `protobuf:"varint,1,opt,name=heartbeat,proto3,oneof"`
1145 }
1146
1147 type ReceivePacketsControlResponse_WritesDoneRequest struct {
1148 // A request to the receiver to complete any final writes followed by a
1149 // `WritesDone`; e.g. issue any final `CommitRequest`s.
1150 //
1151 // May be ignored if `WritesDone` has already been issued at any point
1152 // prior to receiving this message.
1153 //
1154 // If `WritesDone` does not get issued, then the server will forcefully
1155 // cancel the connection, and the receiver will likely receive an
1156 // uninformative after `Read` returns `false` and `Finish` is called.
1157 WritesDoneRequest bool `protobuf:"varint,2,opt,name=writes_done_request,json=writesDoneRequest,proto3,oneof"`
1158 }
1159
1160 func (*ReceivePacketsControlResponse_Heartbeat) isReceivePacketsControlResponse_Control() {}
1161
1162 func (*ReceivePacketsControlResponse_WritesDoneRequest) isReceivePacketsControlResponse_Control() {}
1163
1164 // Response message from ReceivePackets.
1165 type ReceivePacketsResponse struct {
1166 state protoimpl.MessageState
1167 sizeCache protoimpl.SizeCache
1168 unknownFields protoimpl.UnknownFields
1169
1170 // Possible response types.
1171 //
1172 // Types that are assignable to Response:
1173 //
1174 // *ReceivePacketsResponse_Packet
1175 // *ReceivePacketsResponse_Control
1176 Response isReceivePacketsResponse_Response `protobuf_oneof:"response"`
1177 }
1178
1179 func (x *ReceivePacketsResponse) Reset() {
1180 *x = ReceivePacketsResponse{}
1181 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[14]
1182 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1183 ms.StoreMessageInfo(mi)
1184 }
1185
1186 func (x *ReceivePacketsResponse) String() string {
1187 return protoimpl.X.MessageStringOf(x)
1188 }
1189
1190 func (*ReceivePacketsResponse) ProtoMessage() {}
1191
1192 func (x *ReceivePacketsResponse) ProtoReflect() protoreflect.Message {
1193 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[14]
1194 if x != nil {
1195 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1196 if ms.LoadMessageInfo() == nil {
1197 ms.StoreMessageInfo(mi)
1198 }
1199 return ms
1200 }
1201 return mi.MessageOf(x)
1202 }
1203
1204 // Deprecated: Use ReceivePacketsResponse.ProtoReflect.Descriptor instead.
1205 func (*ReceivePacketsResponse) Descriptor() ([]byte, []int) {
1206 return file_google_cloud_visionai_v1_streaming_service_proto_rawDescGZIP(), []int{14}
1207 }
1208
1209 func (m *ReceivePacketsResponse) GetResponse() isReceivePacketsResponse_Response {
1210 if m != nil {
1211 return m.Response
1212 }
1213 return nil
1214 }
1215
1216 func (x *ReceivePacketsResponse) GetPacket() *Packet {
1217 if x, ok := x.GetResponse().(*ReceivePacketsResponse_Packet); ok {
1218 return x.Packet
1219 }
1220 return nil
1221 }
1222
1223 func (x *ReceivePacketsResponse) GetControl() *ReceivePacketsControlResponse {
1224 if x, ok := x.GetResponse().(*ReceivePacketsResponse_Control); ok {
1225 return x.Control
1226 }
1227 return nil
1228 }
1229
1230 type isReceivePacketsResponse_Response interface {
1231 isReceivePacketsResponse_Response()
1232 }
1233
1234 type ReceivePacketsResponse_Packet struct {
1235 // A genuine data payload originating from the sender.
1236 Packet *Packet `protobuf:"bytes,1,opt,name=packet,proto3,oneof"`
1237 }
1238
1239 type ReceivePacketsResponse_Control struct {
1240 // A control message from the server.
1241 Control *ReceivePacketsControlResponse `protobuf:"bytes,3,opt,name=control,proto3,oneof"`
1242 }
1243
1244 func (*ReceivePacketsResponse_Packet) isReceivePacketsResponse_Response() {}
1245
1246 func (*ReceivePacketsResponse_Control) isReceivePacketsResponse_Response() {}
1247
1248 // The options for receiver under the eager mode.
1249 type EagerMode struct {
1250 state protoimpl.MessageState
1251 sizeCache protoimpl.SizeCache
1252 unknownFields protoimpl.UnknownFields
1253 }
1254
1255 func (x *EagerMode) Reset() {
1256 *x = EagerMode{}
1257 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[15]
1258 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1259 ms.StoreMessageInfo(mi)
1260 }
1261
1262 func (x *EagerMode) String() string {
1263 return protoimpl.X.MessageStringOf(x)
1264 }
1265
1266 func (*EagerMode) ProtoMessage() {}
1267
1268 func (x *EagerMode) ProtoReflect() protoreflect.Message {
1269 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[15]
1270 if x != nil {
1271 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1272 if ms.LoadMessageInfo() == nil {
1273 ms.StoreMessageInfo(mi)
1274 }
1275 return ms
1276 }
1277 return mi.MessageOf(x)
1278 }
1279
1280 // Deprecated: Use EagerMode.ProtoReflect.Descriptor instead.
1281 func (*EagerMode) Descriptor() ([]byte, []int) {
1282 return file_google_cloud_visionai_v1_streaming_service_proto_rawDescGZIP(), []int{15}
1283 }
1284
1285 // The options for receiver under the controlled mode.
1286 type ControlledMode struct {
1287 state protoimpl.MessageState
1288 sizeCache protoimpl.SizeCache
1289 unknownFields protoimpl.UnknownFields
1290
1291 // This is the offset from which to start receiveing.
1292 //
1293 // Types that are assignable to StartingOffset:
1294 //
1295 // *ControlledMode_StartingLogicalOffset
1296 StartingOffset isControlledMode_StartingOffset `protobuf_oneof:"starting_offset"`
1297 // This is the logical starting point to fallback upon should the
1298 // specified starting offset be unavailable.
1299 //
1300 // This can be one of the following values:
1301 //
1302 // "begin": This will read from the earliest available message.
1303 //
1304 // "end": This will read only future messages.
1305 FallbackStartingOffset string `protobuf:"bytes,2,opt,name=fallback_starting_offset,json=fallbackStartingOffset,proto3" json:"fallback_starting_offset,omitempty"`
1306 }
1307
1308 func (x *ControlledMode) Reset() {
1309 *x = ControlledMode{}
1310 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[16]
1311 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1312 ms.StoreMessageInfo(mi)
1313 }
1314
1315 func (x *ControlledMode) String() string {
1316 return protoimpl.X.MessageStringOf(x)
1317 }
1318
1319 func (*ControlledMode) ProtoMessage() {}
1320
1321 func (x *ControlledMode) ProtoReflect() protoreflect.Message {
1322 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[16]
1323 if x != nil {
1324 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1325 if ms.LoadMessageInfo() == nil {
1326 ms.StoreMessageInfo(mi)
1327 }
1328 return ms
1329 }
1330 return mi.MessageOf(x)
1331 }
1332
1333 // Deprecated: Use ControlledMode.ProtoReflect.Descriptor instead.
1334 func (*ControlledMode) Descriptor() ([]byte, []int) {
1335 return file_google_cloud_visionai_v1_streaming_service_proto_rawDescGZIP(), []int{16}
1336 }
1337
1338 func (m *ControlledMode) GetStartingOffset() isControlledMode_StartingOffset {
1339 if m != nil {
1340 return m.StartingOffset
1341 }
1342 return nil
1343 }
1344
1345 func (x *ControlledMode) GetStartingLogicalOffset() string {
1346 if x, ok := x.GetStartingOffset().(*ControlledMode_StartingLogicalOffset); ok {
1347 return x.StartingLogicalOffset
1348 }
1349 return ""
1350 }
1351
1352 func (x *ControlledMode) GetFallbackStartingOffset() string {
1353 if x != nil {
1354 return x.FallbackStartingOffset
1355 }
1356 return ""
1357 }
1358
1359 type isControlledMode_StartingOffset interface {
1360 isControlledMode_StartingOffset()
1361 }
1362
1363 type ControlledMode_StartingLogicalOffset struct {
1364 // This can be set to the following logical starting points:
1365 //
1366 // "begin": This will read from the earliest available message.
1367 //
1368 // "most-recent": This will read from the latest available message.
1369 //
1370 // "end": This will read only future messages.
1371 //
1372 // "stored": This will resume reads one past the last committed offset.
1373 //
1374 // It is the only option that resumes progress; all others
1375 // jump unilaterally.
1376 StartingLogicalOffset string `protobuf:"bytes,1,opt,name=starting_logical_offset,json=startingLogicalOffset,proto3,oneof"`
1377 }
1378
1379 func (*ControlledMode_StartingLogicalOffset) isControlledMode_StartingOffset() {}
1380
1381 // The message for explicitly committing the read progress.
1382 //
1383 // This may only be used when `ReceivePacketsControlledMode` is set in the
1384 // initial setup request.
1385 type CommitRequest struct {
1386 state protoimpl.MessageState
1387 sizeCache protoimpl.SizeCache
1388 unknownFields protoimpl.UnknownFields
1389
1390 // The offset to commit.
1391 Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
1392 }
1393
1394 func (x *CommitRequest) Reset() {
1395 *x = CommitRequest{}
1396 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[17]
1397 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1398 ms.StoreMessageInfo(mi)
1399 }
1400
1401 func (x *CommitRequest) String() string {
1402 return protoimpl.X.MessageStringOf(x)
1403 }
1404
1405 func (*CommitRequest) ProtoMessage() {}
1406
1407 func (x *CommitRequest) ProtoReflect() protoreflect.Message {
1408 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[17]
1409 if x != nil {
1410 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1411 if ms.LoadMessageInfo() == nil {
1412 ms.StoreMessageInfo(mi)
1413 }
1414 return ms
1415 }
1416 return mi.MessageOf(x)
1417 }
1418
1419 // Deprecated: Use CommitRequest.ProtoReflect.Descriptor instead.
1420 func (*CommitRequest) Descriptor() ([]byte, []int) {
1421 return file_google_cloud_visionai_v1_streaming_service_proto_rawDescGZIP(), []int{17}
1422 }
1423
1424 func (x *CommitRequest) GetOffset() int64 {
1425 if x != nil {
1426 return x.Offset
1427 }
1428 return 0
1429 }
1430
1431 // SetupRequest is the first message sent to the service to setup the RPC
1432 // connection.
1433 type ReceiveEventsRequest_SetupRequest struct {
1434 state protoimpl.MessageState
1435 sizeCache protoimpl.SizeCache
1436 unknownFields protoimpl.UnknownFields
1437
1438 // The cluster name.
1439 Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"`
1440 // The stream name. The service will return the events for the given stream.
1441 Stream string `protobuf:"bytes,2,opt,name=stream,proto3" json:"stream,omitempty"`
1442 // A name for the receiver to self-identify.
1443 //
1444 // This is used to keep track of a receiver's read progress.
1445 Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"`
1446 // Controller mode configuration for receiving events from the server.
1447 ControlledMode *ControlledMode `protobuf:"bytes,4,opt,name=controlled_mode,json=controlledMode,proto3" json:"controlled_mode,omitempty"`
1448 // The maximum duration of server silence before the client determines the
1449 // server unreachable.
1450 //
1451 // The client must either receive an `Event` update or a heart beat message
1452 // before this duration expires; otherwise, the client will automatically
1453 // cancel the current connection and retry.
1454 HeartbeatInterval *durationpb.Duration `protobuf:"bytes,5,opt,name=heartbeat_interval,json=heartbeatInterval,proto3" json:"heartbeat_interval,omitempty"`
1455 // The grace period after which a `writes_done_request` is issued, that a
1456 // `WritesDone` is expected from the client.
1457 //
1458 // The server is free to cancel the RPC should this expire.
1459 //
1460 // A system default will be chosen if unset.
1461 WritesDoneGracePeriod *durationpb.Duration `protobuf:"bytes,6,opt,name=writes_done_grace_period,json=writesDoneGracePeriod,proto3" json:"writes_done_grace_period,omitempty"`
1462 }
1463
1464 func (x *ReceiveEventsRequest_SetupRequest) Reset() {
1465 *x = ReceiveEventsRequest_SetupRequest{}
1466 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[18]
1467 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1468 ms.StoreMessageInfo(mi)
1469 }
1470
1471 func (x *ReceiveEventsRequest_SetupRequest) String() string {
1472 return protoimpl.X.MessageStringOf(x)
1473 }
1474
1475 func (*ReceiveEventsRequest_SetupRequest) ProtoMessage() {}
1476
1477 func (x *ReceiveEventsRequest_SetupRequest) ProtoReflect() protoreflect.Message {
1478 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[18]
1479 if x != nil {
1480 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1481 if ms.LoadMessageInfo() == nil {
1482 ms.StoreMessageInfo(mi)
1483 }
1484 return ms
1485 }
1486 return mi.MessageOf(x)
1487 }
1488
1489 // Deprecated: Use ReceiveEventsRequest_SetupRequest.ProtoReflect.Descriptor instead.
1490 func (*ReceiveEventsRequest_SetupRequest) Descriptor() ([]byte, []int) {
1491 return file_google_cloud_visionai_v1_streaming_service_proto_rawDescGZIP(), []int{0, 0}
1492 }
1493
1494 func (x *ReceiveEventsRequest_SetupRequest) GetCluster() string {
1495 if x != nil {
1496 return x.Cluster
1497 }
1498 return ""
1499 }
1500
1501 func (x *ReceiveEventsRequest_SetupRequest) GetStream() string {
1502 if x != nil {
1503 return x.Stream
1504 }
1505 return ""
1506 }
1507
1508 func (x *ReceiveEventsRequest_SetupRequest) GetReceiver() string {
1509 if x != nil {
1510 return x.Receiver
1511 }
1512 return ""
1513 }
1514
1515 func (x *ReceiveEventsRequest_SetupRequest) GetControlledMode() *ControlledMode {
1516 if x != nil {
1517 return x.ControlledMode
1518 }
1519 return nil
1520 }
1521
1522 func (x *ReceiveEventsRequest_SetupRequest) GetHeartbeatInterval() *durationpb.Duration {
1523 if x != nil {
1524 return x.HeartbeatInterval
1525 }
1526 return nil
1527 }
1528
1529 func (x *ReceiveEventsRequest_SetupRequest) GetWritesDoneGracePeriod() *durationpb.Duration {
1530 if x != nil {
1531 return x.WritesDoneGracePeriod
1532 }
1533 return nil
1534 }
1535
1536 // The message specifying the initial settings for the ReceivePackets session.
1537 type ReceivePacketsRequest_SetupRequest struct {
1538 state protoimpl.MessageState
1539 sizeCache protoimpl.SizeCache
1540 unknownFields protoimpl.UnknownFields
1541
1542 // The mode in which the consumer reads messages.
1543 //
1544 // Types that are assignable to ConsumerMode:
1545 //
1546 // *ReceivePacketsRequest_SetupRequest_EagerReceiveMode
1547 // *ReceivePacketsRequest_SetupRequest_ControlledReceiveMode
1548 ConsumerMode isReceivePacketsRequest_SetupRequest_ConsumerMode `protobuf_oneof:"consumer_mode"`
1549 // The configurations that specify where packets are retrieved.
1550 Metadata *RequestMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
1551 // A name for the receiver to self-identify.
1552 //
1553 // This is used to keep track of a receiver's read progress.
1554 Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"`
1555 // The maximum duration of server silence before the client determines the
1556 // server unreachable.
1557 //
1558 // The client must either receive a `Packet` or a heart beat message before
1559 // this duration expires; otherwise, the client will automatically cancel
1560 // the current connection and retry.
1561 HeartbeatInterval *durationpb.Duration `protobuf:"bytes,5,opt,name=heartbeat_interval,json=heartbeatInterval,proto3" json:"heartbeat_interval,omitempty"`
1562 // The grace period after which a `writes_done_request` is issued, that a
1563 // `WritesDone` is expected from the client.
1564 //
1565 // The server is free to cancel the RPC should this expire.
1566 //
1567 // A system default will be chosen if unset.
1568 WritesDoneGracePeriod *durationpb.Duration `protobuf:"bytes,6,opt,name=writes_done_grace_period,json=writesDoneGracePeriod,proto3" json:"writes_done_grace_period,omitempty"`
1569 }
1570
1571 func (x *ReceivePacketsRequest_SetupRequest) Reset() {
1572 *x = ReceivePacketsRequest_SetupRequest{}
1573 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[19]
1574 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1575 ms.StoreMessageInfo(mi)
1576 }
1577
1578 func (x *ReceivePacketsRequest_SetupRequest) String() string {
1579 return protoimpl.X.MessageStringOf(x)
1580 }
1581
1582 func (*ReceivePacketsRequest_SetupRequest) ProtoMessage() {}
1583
1584 func (x *ReceivePacketsRequest_SetupRequest) ProtoReflect() protoreflect.Message {
1585 mi := &file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[19]
1586 if x != nil {
1587 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1588 if ms.LoadMessageInfo() == nil {
1589 ms.StoreMessageInfo(mi)
1590 }
1591 return ms
1592 }
1593 return mi.MessageOf(x)
1594 }
1595
1596 // Deprecated: Use ReceivePacketsRequest_SetupRequest.ProtoReflect.Descriptor instead.
1597 func (*ReceivePacketsRequest_SetupRequest) Descriptor() ([]byte, []int) {
1598 return file_google_cloud_visionai_v1_streaming_service_proto_rawDescGZIP(), []int{12, 0}
1599 }
1600
1601 func (m *ReceivePacketsRequest_SetupRequest) GetConsumerMode() isReceivePacketsRequest_SetupRequest_ConsumerMode {
1602 if m != nil {
1603 return m.ConsumerMode
1604 }
1605 return nil
1606 }
1607
1608 func (x *ReceivePacketsRequest_SetupRequest) GetEagerReceiveMode() *EagerMode {
1609 if x, ok := x.GetConsumerMode().(*ReceivePacketsRequest_SetupRequest_EagerReceiveMode); ok {
1610 return x.EagerReceiveMode
1611 }
1612 return nil
1613 }
1614
1615 func (x *ReceivePacketsRequest_SetupRequest) GetControlledReceiveMode() *ControlledMode {
1616 if x, ok := x.GetConsumerMode().(*ReceivePacketsRequest_SetupRequest_ControlledReceiveMode); ok {
1617 return x.ControlledReceiveMode
1618 }
1619 return nil
1620 }
1621
1622 func (x *ReceivePacketsRequest_SetupRequest) GetMetadata() *RequestMetadata {
1623 if x != nil {
1624 return x.Metadata
1625 }
1626 return nil
1627 }
1628
1629 func (x *ReceivePacketsRequest_SetupRequest) GetReceiver() string {
1630 if x != nil {
1631 return x.Receiver
1632 }
1633 return ""
1634 }
1635
1636 func (x *ReceivePacketsRequest_SetupRequest) GetHeartbeatInterval() *durationpb.Duration {
1637 if x != nil {
1638 return x.HeartbeatInterval
1639 }
1640 return nil
1641 }
1642
1643 func (x *ReceivePacketsRequest_SetupRequest) GetWritesDoneGracePeriod() *durationpb.Duration {
1644 if x != nil {
1645 return x.WritesDoneGracePeriod
1646 }
1647 return nil
1648 }
1649
1650 type isReceivePacketsRequest_SetupRequest_ConsumerMode interface {
1651 isReceivePacketsRequest_SetupRequest_ConsumerMode()
1652 }
1653
1654 type ReceivePacketsRequest_SetupRequest_EagerReceiveMode struct {
1655 // Options for configuring eager mode.
1656 EagerReceiveMode *EagerMode `protobuf:"bytes,3,opt,name=eager_receive_mode,json=eagerReceiveMode,proto3,oneof"`
1657 }
1658
1659 type ReceivePacketsRequest_SetupRequest_ControlledReceiveMode struct {
1660 // Options for configuring controlled mode.
1661 ControlledReceiveMode *ControlledMode `protobuf:"bytes,4,opt,name=controlled_receive_mode,json=controlledReceiveMode,proto3,oneof"`
1662 }
1663
1664 func (*ReceivePacketsRequest_SetupRequest_EagerReceiveMode) isReceivePacketsRequest_SetupRequest_ConsumerMode() {
1665 }
1666
1667 func (*ReceivePacketsRequest_SetupRequest_ControlledReceiveMode) isReceivePacketsRequest_SetupRequest_ConsumerMode() {
1668 }
1669
1670 var File_google_cloud_visionai_v1_streaming_service_proto protoreflect.FileDescriptor
1671
1672 var file_google_cloud_visionai_v1_streaming_service_proto_rawDesc = []byte{
1673 0x0a, 0x30, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76,
1674 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x61,
1675 0x6d, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f,
1676 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
1677 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f,
1678 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74,
1679 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67,
1680 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72,
1681 0x6f, 0x74, 0x6f, 0x1a, 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75,
1682 0x64, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x74,
1683 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
1684 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
1685 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
1686 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
1687 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
1688 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa7, 0x04, 0x0a, 0x14, 0x52, 0x65, 0x63,
1689 0x65, 0x69, 0x76, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
1690 0x74, 0x12, 0x62, 0x0a, 0x0d, 0x73, 0x65, 0x74, 0x75, 0x70, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65,
1691 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
1692 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69,
1693 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74,
1694 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x75, 0x70, 0x52, 0x65,
1695 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x65, 0x74, 0x75, 0x70, 0x52, 0x65,
1696 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x50, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f,
1697 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e,
1698 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73,
1699 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52,
1700 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74,
1701 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0xcd, 0x02, 0x0a, 0x0c, 0x53, 0x65, 0x74, 0x75,
1702 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73,
1703 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74,
1704 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x02, 0x20, 0x01,
1705 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65,
1706 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65,
1707 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x12, 0x51, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f,
1708 0x6c, 0x6c, 0x65, 0x64, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
1709 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76,
1710 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72,
1711 0x6f, 0x6c, 0x6c, 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x72,
1712 0x6f, 0x6c, 0x6c, 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x48, 0x0a, 0x12, 0x68, 0x65, 0x61,
1713 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18,
1714 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
1715 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
1716 0x52, 0x11, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72,
1717 0x76, 0x61, 0x6c, 0x12, 0x52, 0x0a, 0x18, 0x77, 0x72, 0x69, 0x74, 0x65, 0x73, 0x5f, 0x64, 0x6f,
1718 0x6e, 0x65, 0x5f, 0x67, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18,
1719 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
1720 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
1721 0x52, 0x15, 0x77, 0x72, 0x69, 0x74, 0x65, 0x73, 0x44, 0x6f, 0x6e, 0x65, 0x47, 0x72, 0x61, 0x63,
1722 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65,
1723 0x73, 0x74, 0x22, 0xa8, 0x01, 0x0a, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61,
1724 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x01, 0x20, 0x01,
1725 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x76,
1726 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74,
1727 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
1728 0x52, 0x06, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61,
1729 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
1730 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
1731 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74,
1732 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18,
1733 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x22, 0x7b, 0x0a,
1734 0x1c, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x43, 0x6f,
1735 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a,
1736 0x09, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08,
1737 0x48, 0x00, 0x52, 0x09, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x30, 0x0a,
1738 0x13, 0x77, 0x72, 0x69, 0x74, 0x65, 0x73, 0x5f, 0x64, 0x6f, 0x6e, 0x65, 0x5f, 0x72, 0x65, 0x71,
1739 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x11, 0x77, 0x72,
1740 0x69, 0x74, 0x65, 0x73, 0x44, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42,
1741 0x09, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x22, 0xc3, 0x01, 0x0a, 0x15, 0x52,
1742 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70,
1743 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0c, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x75, 0x70,
1744 0x64, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f,
1745 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e,
1746 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74,
1747 0x65, 0x48, 0x00, 0x52, 0x0b, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
1748 0x12, 0x52, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28,
1749 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
1750 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63,
1751 0x65, 0x69, 0x76, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f,
1752 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x07, 0x63, 0x6f, 0x6e,
1753 0x74, 0x72, 0x6f, 0x6c, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
1754 0x22, 0xc6, 0x01, 0x0a, 0x05, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
1755 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65,
1756 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x72, 0x69,
1757 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28,
1758 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69,
1759 0x72, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
1760 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
1761 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72,
1762 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x0a, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x74,
1763 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
1764 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61,
1765 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09,
1766 0x6c, 0x65, 0x61, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0xb6, 0x01, 0x0a, 0x13, 0x41, 0x63,
1767 0x71, 0x75, 0x69, 0x72, 0x65, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
1768 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28,
1769 0x09, 0x52, 0x06, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e,
1770 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12,
1771 0x2d, 0x0a, 0x04, 0x74, 0x65, 0x72, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,
1772 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
1773 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x74, 0x65, 0x72, 0x6d, 0x12, 0x42,
1774 0x0a, 0x0a, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01,
1775 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
1776 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x65,
1777 0x61, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x54, 0x79,
1778 0x70, 0x65, 0x22, 0x80, 0x01, 0x0a, 0x11, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x4c, 0x65, 0x61, 0x73,
1779 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
1780 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x69,
1781 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73,
1782 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
1783 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x2d, 0x0a, 0x04, 0x74, 0x65, 0x72, 0x6d, 0x18, 0x04,
1784 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
1785 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
1786 0x04, 0x74, 0x65, 0x72, 0x6d, 0x22, 0x53, 0x0a, 0x13, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65,
1787 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02,
1788 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06,
1789 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65,
1790 0x72, 0x69, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20,
1791 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x22, 0x16, 0x0a, 0x14, 0x52, 0x65,
1792 0x6c, 0x65, 0x61, 0x73, 0x65, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
1793 0x73, 0x65, 0x22, 0xc2, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65,
1794 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d,
1795 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x14,
1796 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65,
1797 0x76, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03,
1798 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08,
1799 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
1800 0x6c, 0x65, 0x61, 0x73, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72,
1801 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x38, 0x0a,
1802 0x0a, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x74, 0x65, 0x72, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28,
1803 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
1804 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x6c, 0x65,
1805 0x61, 0x73, 0x65, 0x54, 0x65, 0x72, 0x6d, 0x22, 0xa4, 0x01, 0x0a, 0x12, 0x53, 0x65, 0x6e, 0x64,
1806 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a,
1807 0x0a, 0x06, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20,
1808 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69,
1809 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74,
1810 0x48, 0x00, 0x52, 0x06, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x47, 0x0a, 0x08, 0x6d, 0x65,
1811 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67,
1812 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69,
1813 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d,
1814 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64,
1815 0x61, 0x74, 0x61, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x15,
1816 0x0a, 0x13, 0x53, 0x65, 0x6e, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73,
1817 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb5, 0x05, 0x0a, 0x15, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76,
1818 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
1819 0x63, 0x0a, 0x0d, 0x73, 0x65, 0x74, 0x75, 0x70, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
1820 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
1821 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76,
1822 0x31, 0x2e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73,
1823 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x75, 0x70, 0x52, 0x65, 0x71,
1824 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x65, 0x74, 0x75, 0x70, 0x52, 0x65, 0x71,
1825 0x75, 0x65, 0x73, 0x74, 0x12, 0x50, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x72,
1826 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67,
1827 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69,
1828 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65,
1829 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52,
1830 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0xd9, 0x03, 0x0a, 0x0c, 0x53, 0x65, 0x74, 0x75, 0x70,
1831 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x53, 0x0a, 0x12, 0x65, 0x61, 0x67, 0x65, 0x72,
1832 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20,
1833 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
1834 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x45,
1835 0x61, 0x67, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x10, 0x65, 0x61, 0x67, 0x65,
1836 0x72, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x62, 0x0a, 0x17,
1837 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69,
1838 0x76, 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e,
1839 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73,
1840 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,
1841 0x6c, 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x15, 0x63, 0x6f, 0x6e, 0x74, 0x72,
1842 0x6f, 0x6c, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4d, 0x6f, 0x64, 0x65,
1843 0x12, 0x45, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01,
1844 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
1845 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65,
1846 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d,
1847 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69,
1848 0x76, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69,
1849 0x76, 0x65, 0x72, 0x12, 0x48, 0x0a, 0x12, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74,
1850 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32,
1851 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
1852 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x68, 0x65, 0x61, 0x72,
1853 0x74, 0x62, 0x65, 0x61, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x52, 0x0a,
1854 0x18, 0x77, 0x72, 0x69, 0x74, 0x65, 0x73, 0x5f, 0x64, 0x6f, 0x6e, 0x65, 0x5f, 0x67, 0x72, 0x61,
1855 0x63, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32,
1856 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
1857 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x15, 0x77, 0x72, 0x69, 0x74,
1858 0x65, 0x73, 0x44, 0x6f, 0x6e, 0x65, 0x47, 0x72, 0x61, 0x63, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f,
1859 0x64, 0x42, 0x0f, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x5f, 0x6d, 0x6f,
1860 0x64, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x7c, 0x0a,
1861 0x1d, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x43,
1862 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e,
1863 0x0a, 0x09, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
1864 0x08, 0x48, 0x00, 0x52, 0x09, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x30,
1865 0x0a, 0x13, 0x77, 0x72, 0x69, 0x74, 0x65, 0x73, 0x5f, 0x64, 0x6f, 0x6e, 0x65, 0x5f, 0x72, 0x65,
1866 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x11, 0x77,
1867 0x72, 0x69, 0x74, 0x65, 0x73, 0x44, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
1868 0x42, 0x09, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x22, 0xb5, 0x01, 0x0a, 0x16,
1869 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65,
1870 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74,
1871 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
1872 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76,
1873 0x31, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x48, 0x00, 0x52, 0x06, 0x70, 0x61, 0x63, 0x6b,
1874 0x65, 0x74, 0x12, 0x53, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x18, 0x03, 0x20,
1875 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
1876 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52,
1877 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x43, 0x6f, 0x6e,
1878 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x07,
1879 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f,
1880 0x6e, 0x73, 0x65, 0x22, 0x0b, 0x0a, 0x09, 0x45, 0x61, 0x67, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65,
1881 0x22, 0x97, 0x01, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x64, 0x4d,
1882 0x6f, 0x64, 0x65, 0x12, 0x38, 0x0a, 0x17, 0x73, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5f,
1883 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01,
1884 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x15, 0x73, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e, 0x67,
1885 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x38, 0x0a,
1886 0x18, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x69,
1887 0x6e, 0x67, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
1888 0x16, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e,
1889 0x67, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x42, 0x11, 0x0a, 0x0f, 0x73, 0x74, 0x61, 0x72, 0x74,
1890 0x69, 0x6e, 0x67, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x22, 0x27, 0x0a, 0x0d, 0x43, 0x6f,
1891 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f,
1892 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66,
1893 0x73, 0x65, 0x74, 0x2a, 0x55, 0x0a, 0x09, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65,
1894 0x12, 0x1a, 0x0a, 0x16, 0x4c, 0x45, 0x41, 0x53, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55,
1895 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11,
1896 0x4c, 0x45, 0x41, 0x53, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x45,
1897 0x52, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x4c, 0x45, 0x41, 0x53, 0x45, 0x5f, 0x54, 0x59, 0x50,
1898 0x45, 0x5f, 0x57, 0x52, 0x49, 0x54, 0x45, 0x52, 0x10, 0x02, 0x32, 0xe3, 0x07, 0x0a, 0x10, 0x53,
1899 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
1900 0x70, 0x0a, 0x0b, 0x53, 0x65, 0x6e, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x2c,
1901 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69,
1902 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x50, 0x61,
1903 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x67,
1904 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69,
1905 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x50, 0x61, 0x63, 0x6b,
1906 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30,
1907 0x01, 0x12, 0x79, 0x0a, 0x0e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x50, 0x61, 0x63, 0x6b,
1908 0x65, 0x74, 0x73, 0x12, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
1909 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52,
1910 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71,
1911 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
1912 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e,
1913 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65,
1914 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x12, 0x76, 0x0a, 0x0d,
1915 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2e, 0x2e,
1916 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73,
1917 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65,
1918 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e,
1919 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73,
1920 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65,
1921 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
1922 0x28, 0x01, 0x30, 0x01, 0x12, 0xaf, 0x01, 0x0a, 0x0c, 0x41, 0x63, 0x71, 0x75, 0x69, 0x72, 0x65,
1923 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
1924 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31,
1925 0x2e, 0x41, 0x63, 0x71, 0x75, 0x69, 0x72, 0x65, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71,
1926 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
1927 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e,
1928 0x4c, 0x65, 0x61, 0x73, 0x65, 0x22, 0x4f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x3a, 0x01, 0x2a,
1929 0x22, 0x44, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x3d, 0x70, 0x72,
1930 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
1931 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x2f,
1932 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x61, 0x63, 0x71, 0x75, 0x69, 0x72,
1933 0x65, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0xa9, 0x01, 0x0a, 0x0a, 0x52, 0x65, 0x6e, 0x65, 0x77,
1934 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
1935 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31,
1936 0x2e, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
1937 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
1938 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x65,
1939 0x61, 0x73, 0x65, 0x22, 0x4d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x47, 0x3a, 0x01, 0x2a, 0x22, 0x42,
1940 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x3d, 0x70, 0x72, 0x6f, 0x6a,
1941 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
1942 0x2f, 0x2a, 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65,
1943 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x4c, 0x65, 0x61,
1944 0x73, 0x65, 0x12, 0xbe, 0x01, 0x0a, 0x0c, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x4c, 0x65,
1945 0x61, 0x73, 0x65, 0x12, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
1946 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52,
1947 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
1948 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
1949 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65,
1950 0x6c, 0x65, 0x61, 0x73, 0x65, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
1951 0x73, 0x65, 0x22, 0x4f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x3a, 0x01, 0x2a, 0x22, 0x44, 0x2f,
1952 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,
1953 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f,
1954 0x2a, 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65, 0x72,
1955 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x4c, 0x65,
1956 0x61, 0x73, 0x65, 0x1a, 0x4b, 0xca, 0x41, 0x17, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69,
1957 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2,
1958 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f,
1959 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74,
1960 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
1961 0x42, 0xc5, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
1962 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76,
1963 0x31, 0x42, 0x15, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76,
1964 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x38, 0x63, 0x6c, 0x6f, 0x75,
1965 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f,
1966 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x76,
1967 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x70, 0x62, 0x3b, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e,
1968 0x61, 0x69, 0x70, 0x62, 0xaa, 0x02, 0x18, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c,
1969 0x6f, 0x75, 0x64, 0x2e, 0x56, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x49, 0x2e, 0x56, 0x31, 0xca,
1970 0x02, 0x18, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x56,
1971 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x49, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1b, 0x47, 0x6f, 0x6f,
1972 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x56, 0x69, 0x73, 0x69,
1973 0x6f, 0x6e, 0x41, 0x49, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
1974 }
1975
1976 var (
1977 file_google_cloud_visionai_v1_streaming_service_proto_rawDescOnce sync.Once
1978 file_google_cloud_visionai_v1_streaming_service_proto_rawDescData = file_google_cloud_visionai_v1_streaming_service_proto_rawDesc
1979 )
1980
1981 func file_google_cloud_visionai_v1_streaming_service_proto_rawDescGZIP() []byte {
1982 file_google_cloud_visionai_v1_streaming_service_proto_rawDescOnce.Do(func() {
1983 file_google_cloud_visionai_v1_streaming_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_visionai_v1_streaming_service_proto_rawDescData)
1984 })
1985 return file_google_cloud_visionai_v1_streaming_service_proto_rawDescData
1986 }
1987
1988 var file_google_cloud_visionai_v1_streaming_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
1989 var file_google_cloud_visionai_v1_streaming_service_proto_msgTypes = make([]protoimpl.MessageInfo, 20)
1990 var file_google_cloud_visionai_v1_streaming_service_proto_goTypes = []any{
1991 (LeaseType)(0), // 0: google.cloud.visionai.v1.LeaseType
1992 (*ReceiveEventsRequest)(nil), // 1: google.cloud.visionai.v1.ReceiveEventsRequest
1993 (*EventUpdate)(nil), // 2: google.cloud.visionai.v1.EventUpdate
1994 (*ReceiveEventsControlResponse)(nil), // 3: google.cloud.visionai.v1.ReceiveEventsControlResponse
1995 (*ReceiveEventsResponse)(nil), // 4: google.cloud.visionai.v1.ReceiveEventsResponse
1996 (*Lease)(nil), // 5: google.cloud.visionai.v1.Lease
1997 (*AcquireLeaseRequest)(nil), // 6: google.cloud.visionai.v1.AcquireLeaseRequest
1998 (*RenewLeaseRequest)(nil), // 7: google.cloud.visionai.v1.RenewLeaseRequest
1999 (*ReleaseLeaseRequest)(nil), // 8: google.cloud.visionai.v1.ReleaseLeaseRequest
2000 (*ReleaseLeaseResponse)(nil), // 9: google.cloud.visionai.v1.ReleaseLeaseResponse
2001 (*RequestMetadata)(nil), // 10: google.cloud.visionai.v1.RequestMetadata
2002 (*SendPacketsRequest)(nil), // 11: google.cloud.visionai.v1.SendPacketsRequest
2003 (*SendPacketsResponse)(nil), // 12: google.cloud.visionai.v1.SendPacketsResponse
2004 (*ReceivePacketsRequest)(nil), // 13: google.cloud.visionai.v1.ReceivePacketsRequest
2005 (*ReceivePacketsControlResponse)(nil), // 14: google.cloud.visionai.v1.ReceivePacketsControlResponse
2006 (*ReceivePacketsResponse)(nil), // 15: google.cloud.visionai.v1.ReceivePacketsResponse
2007 (*EagerMode)(nil), // 16: google.cloud.visionai.v1.EagerMode
2008 (*ControlledMode)(nil), // 17: google.cloud.visionai.v1.ControlledMode
2009 (*CommitRequest)(nil), // 18: google.cloud.visionai.v1.CommitRequest
2010 (*ReceiveEventsRequest_SetupRequest)(nil), // 19: google.cloud.visionai.v1.ReceiveEventsRequest.SetupRequest
2011 (*ReceivePacketsRequest_SetupRequest)(nil), // 20: google.cloud.visionai.v1.ReceivePacketsRequest.SetupRequest
2012 (*timestamppb.Timestamp)(nil), // 21: google.protobuf.Timestamp
2013 (*durationpb.Duration)(nil), // 22: google.protobuf.Duration
2014 (*Packet)(nil), // 23: google.cloud.visionai.v1.Packet
2015 }
2016 var file_google_cloud_visionai_v1_streaming_service_proto_depIdxs = []int32{
2017 19, // 0: google.cloud.visionai.v1.ReceiveEventsRequest.setup_request:type_name -> google.cloud.visionai.v1.ReceiveEventsRequest.SetupRequest
2018 18, // 1: google.cloud.visionai.v1.ReceiveEventsRequest.commit_request:type_name -> google.cloud.visionai.v1.CommitRequest
2019 21, // 2: google.cloud.visionai.v1.EventUpdate.update_time:type_name -> google.protobuf.Timestamp
2020 2, // 3: google.cloud.visionai.v1.ReceiveEventsResponse.event_update:type_name -> google.cloud.visionai.v1.EventUpdate
2021 3, // 4: google.cloud.visionai.v1.ReceiveEventsResponse.control:type_name -> google.cloud.visionai.v1.ReceiveEventsControlResponse
2022 21, // 5: google.cloud.visionai.v1.Lease.expire_time:type_name -> google.protobuf.Timestamp
2023 0, // 6: google.cloud.visionai.v1.Lease.lease_type:type_name -> google.cloud.visionai.v1.LeaseType
2024 22, // 7: google.cloud.visionai.v1.AcquireLeaseRequest.term:type_name -> google.protobuf.Duration
2025 0, // 8: google.cloud.visionai.v1.AcquireLeaseRequest.lease_type:type_name -> google.cloud.visionai.v1.LeaseType
2026 22, // 9: google.cloud.visionai.v1.RenewLeaseRequest.term:type_name -> google.protobuf.Duration
2027 22, // 10: google.cloud.visionai.v1.RequestMetadata.lease_term:type_name -> google.protobuf.Duration
2028 23, // 11: google.cloud.visionai.v1.SendPacketsRequest.packet:type_name -> google.cloud.visionai.v1.Packet
2029 10, // 12: google.cloud.visionai.v1.SendPacketsRequest.metadata:type_name -> google.cloud.visionai.v1.RequestMetadata
2030 20, // 13: google.cloud.visionai.v1.ReceivePacketsRequest.setup_request:type_name -> google.cloud.visionai.v1.ReceivePacketsRequest.SetupRequest
2031 18, // 14: google.cloud.visionai.v1.ReceivePacketsRequest.commit_request:type_name -> google.cloud.visionai.v1.CommitRequest
2032 23, // 15: google.cloud.visionai.v1.ReceivePacketsResponse.packet:type_name -> google.cloud.visionai.v1.Packet
2033 14, // 16: google.cloud.visionai.v1.ReceivePacketsResponse.control:type_name -> google.cloud.visionai.v1.ReceivePacketsControlResponse
2034 17, // 17: google.cloud.visionai.v1.ReceiveEventsRequest.SetupRequest.controlled_mode:type_name -> google.cloud.visionai.v1.ControlledMode
2035 22, // 18: google.cloud.visionai.v1.ReceiveEventsRequest.SetupRequest.heartbeat_interval:type_name -> google.protobuf.Duration
2036 22, // 19: google.cloud.visionai.v1.ReceiveEventsRequest.SetupRequest.writes_done_grace_period:type_name -> google.protobuf.Duration
2037 16, // 20: google.cloud.visionai.v1.ReceivePacketsRequest.SetupRequest.eager_receive_mode:type_name -> google.cloud.visionai.v1.EagerMode
2038 17, // 21: google.cloud.visionai.v1.ReceivePacketsRequest.SetupRequest.controlled_receive_mode:type_name -> google.cloud.visionai.v1.ControlledMode
2039 10, // 22: google.cloud.visionai.v1.ReceivePacketsRequest.SetupRequest.metadata:type_name -> google.cloud.visionai.v1.RequestMetadata
2040 22, // 23: google.cloud.visionai.v1.ReceivePacketsRequest.SetupRequest.heartbeat_interval:type_name -> google.protobuf.Duration
2041 22, // 24: google.cloud.visionai.v1.ReceivePacketsRequest.SetupRequest.writes_done_grace_period:type_name -> google.protobuf.Duration
2042 11, // 25: google.cloud.visionai.v1.StreamingService.SendPackets:input_type -> google.cloud.visionai.v1.SendPacketsRequest
2043 13, // 26: google.cloud.visionai.v1.StreamingService.ReceivePackets:input_type -> google.cloud.visionai.v1.ReceivePacketsRequest
2044 1, // 27: google.cloud.visionai.v1.StreamingService.ReceiveEvents:input_type -> google.cloud.visionai.v1.ReceiveEventsRequest
2045 6, // 28: google.cloud.visionai.v1.StreamingService.AcquireLease:input_type -> google.cloud.visionai.v1.AcquireLeaseRequest
2046 7, // 29: google.cloud.visionai.v1.StreamingService.RenewLease:input_type -> google.cloud.visionai.v1.RenewLeaseRequest
2047 8, // 30: google.cloud.visionai.v1.StreamingService.ReleaseLease:input_type -> google.cloud.visionai.v1.ReleaseLeaseRequest
2048 12, // 31: google.cloud.visionai.v1.StreamingService.SendPackets:output_type -> google.cloud.visionai.v1.SendPacketsResponse
2049 15, // 32: google.cloud.visionai.v1.StreamingService.ReceivePackets:output_type -> google.cloud.visionai.v1.ReceivePacketsResponse
2050 4, // 33: google.cloud.visionai.v1.StreamingService.ReceiveEvents:output_type -> google.cloud.visionai.v1.ReceiveEventsResponse
2051 5, // 34: google.cloud.visionai.v1.StreamingService.AcquireLease:output_type -> google.cloud.visionai.v1.Lease
2052 5, // 35: google.cloud.visionai.v1.StreamingService.RenewLease:output_type -> google.cloud.visionai.v1.Lease
2053 9, // 36: google.cloud.visionai.v1.StreamingService.ReleaseLease:output_type -> google.cloud.visionai.v1.ReleaseLeaseResponse
2054 31, // [31:37] is the sub-list for method output_type
2055 25, // [25:31] is the sub-list for method input_type
2056 25, // [25:25] is the sub-list for extension type_name
2057 25, // [25:25] is the sub-list for extension extendee
2058 0, // [0:25] is the sub-list for field type_name
2059 }
2060
2061 func init() { file_google_cloud_visionai_v1_streaming_service_proto_init() }
2062 func file_google_cloud_visionai_v1_streaming_service_proto_init() {
2063 if File_google_cloud_visionai_v1_streaming_service_proto != nil {
2064 return
2065 }
2066 file_google_cloud_visionai_v1_streaming_resources_proto_init()
2067 file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[0].OneofWrappers = []any{
2068 (*ReceiveEventsRequest_SetupRequest_)(nil),
2069 (*ReceiveEventsRequest_CommitRequest)(nil),
2070 }
2071 file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[2].OneofWrappers = []any{
2072 (*ReceiveEventsControlResponse_Heartbeat)(nil),
2073 (*ReceiveEventsControlResponse_WritesDoneRequest)(nil),
2074 }
2075 file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[3].OneofWrappers = []any{
2076 (*ReceiveEventsResponse_EventUpdate)(nil),
2077 (*ReceiveEventsResponse_Control)(nil),
2078 }
2079 file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[10].OneofWrappers = []any{
2080 (*SendPacketsRequest_Packet)(nil),
2081 (*SendPacketsRequest_Metadata)(nil),
2082 }
2083 file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[12].OneofWrappers = []any{
2084 (*ReceivePacketsRequest_SetupRequest_)(nil),
2085 (*ReceivePacketsRequest_CommitRequest)(nil),
2086 }
2087 file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[13].OneofWrappers = []any{
2088 (*ReceivePacketsControlResponse_Heartbeat)(nil),
2089 (*ReceivePacketsControlResponse_WritesDoneRequest)(nil),
2090 }
2091 file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[14].OneofWrappers = []any{
2092 (*ReceivePacketsResponse_Packet)(nil),
2093 (*ReceivePacketsResponse_Control)(nil),
2094 }
2095 file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[16].OneofWrappers = []any{
2096 (*ControlledMode_StartingLogicalOffset)(nil),
2097 }
2098 file_google_cloud_visionai_v1_streaming_service_proto_msgTypes[19].OneofWrappers = []any{
2099 (*ReceivePacketsRequest_SetupRequest_EagerReceiveMode)(nil),
2100 (*ReceivePacketsRequest_SetupRequest_ControlledReceiveMode)(nil),
2101 }
2102 type x struct{}
2103 out := protoimpl.TypeBuilder{
2104 File: protoimpl.DescBuilder{
2105 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
2106 RawDescriptor: file_google_cloud_visionai_v1_streaming_service_proto_rawDesc,
2107 NumEnums: 1,
2108 NumMessages: 20,
2109 NumExtensions: 0,
2110 NumServices: 1,
2111 },
2112 GoTypes: file_google_cloud_visionai_v1_streaming_service_proto_goTypes,
2113 DependencyIndexes: file_google_cloud_visionai_v1_streaming_service_proto_depIdxs,
2114 EnumInfos: file_google_cloud_visionai_v1_streaming_service_proto_enumTypes,
2115 MessageInfos: file_google_cloud_visionai_v1_streaming_service_proto_msgTypes,
2116 }.Build()
2117 File_google_cloud_visionai_v1_streaming_service_proto = out.File
2118 file_google_cloud_visionai_v1_streaming_service_proto_rawDesc = nil
2119 file_google_cloud_visionai_v1_streaming_service_proto_goTypes = nil
2120 file_google_cloud_visionai_v1_streaming_service_proto_depIdxs = nil
2121 }
2122
2123 // Reference imports to suppress errors if they are not otherwise used.
2124 var _ context.Context
2125 var _ grpc.ClientConnInterface
2126
2127 // This is a compile-time assertion to ensure that this generated file
2128 // is compatible with the grpc package it is being compiled against.
2129 const _ = grpc.SupportPackageIsVersion6
2130
2131 // StreamingServiceClient is the client API for StreamingService service.
2132 //
2133 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
2134 type StreamingServiceClient interface {
2135 // Send packets to the series.
2136 SendPackets(ctx context.Context, opts ...grpc.CallOption) (StreamingService_SendPacketsClient, error)
2137 // Receive packets from the series.
2138 ReceivePackets(ctx context.Context, opts ...grpc.CallOption) (StreamingService_ReceivePacketsClient, error)
2139 // Receive events given the stream name.
2140 ReceiveEvents(ctx context.Context, opts ...grpc.CallOption) (StreamingService_ReceiveEventsClient, error)
2141 // AcquireLease acquires a lease.
2142 AcquireLease(ctx context.Context, in *AcquireLeaseRequest, opts ...grpc.CallOption) (*Lease, error)
2143 // RenewLease renews a lease.
2144 RenewLease(ctx context.Context, in *RenewLeaseRequest, opts ...grpc.CallOption) (*Lease, error)
2145 // RleaseLease releases a lease.
2146 ReleaseLease(ctx context.Context, in *ReleaseLeaseRequest, opts ...grpc.CallOption) (*ReleaseLeaseResponse, error)
2147 }
2148
2149 type streamingServiceClient struct {
2150 cc grpc.ClientConnInterface
2151 }
2152
2153 func NewStreamingServiceClient(cc grpc.ClientConnInterface) StreamingServiceClient {
2154 return &streamingServiceClient{cc}
2155 }
2156
2157 func (c *streamingServiceClient) SendPackets(ctx context.Context, opts ...grpc.CallOption) (StreamingService_SendPacketsClient, error) {
2158 stream, err := c.cc.NewStream(ctx, &_StreamingService_serviceDesc.Streams[0], "/google.cloud.visionai.v1.StreamingService/SendPackets", opts...)
2159 if err != nil {
2160 return nil, err
2161 }
2162 x := &streamingServiceSendPacketsClient{stream}
2163 return x, nil
2164 }
2165
2166 type StreamingService_SendPacketsClient interface {
2167 Send(*SendPacketsRequest) error
2168 Recv() (*SendPacketsResponse, error)
2169 grpc.ClientStream
2170 }
2171
2172 type streamingServiceSendPacketsClient struct {
2173 grpc.ClientStream
2174 }
2175
2176 func (x *streamingServiceSendPacketsClient) Send(m *SendPacketsRequest) error {
2177 return x.ClientStream.SendMsg(m)
2178 }
2179
2180 func (x *streamingServiceSendPacketsClient) Recv() (*SendPacketsResponse, error) {
2181 m := new(SendPacketsResponse)
2182 if err := x.ClientStream.RecvMsg(m); err != nil {
2183 return nil, err
2184 }
2185 return m, nil
2186 }
2187
2188 func (c *streamingServiceClient) ReceivePackets(ctx context.Context, opts ...grpc.CallOption) (StreamingService_ReceivePacketsClient, error) {
2189 stream, err := c.cc.NewStream(ctx, &_StreamingService_serviceDesc.Streams[1], "/google.cloud.visionai.v1.StreamingService/ReceivePackets", opts...)
2190 if err != nil {
2191 return nil, err
2192 }
2193 x := &streamingServiceReceivePacketsClient{stream}
2194 return x, nil
2195 }
2196
2197 type StreamingService_ReceivePacketsClient interface {
2198 Send(*ReceivePacketsRequest) error
2199 Recv() (*ReceivePacketsResponse, error)
2200 grpc.ClientStream
2201 }
2202
2203 type streamingServiceReceivePacketsClient struct {
2204 grpc.ClientStream
2205 }
2206
2207 func (x *streamingServiceReceivePacketsClient) Send(m *ReceivePacketsRequest) error {
2208 return x.ClientStream.SendMsg(m)
2209 }
2210
2211 func (x *streamingServiceReceivePacketsClient) Recv() (*ReceivePacketsResponse, error) {
2212 m := new(ReceivePacketsResponse)
2213 if err := x.ClientStream.RecvMsg(m); err != nil {
2214 return nil, err
2215 }
2216 return m, nil
2217 }
2218
2219 func (c *streamingServiceClient) ReceiveEvents(ctx context.Context, opts ...grpc.CallOption) (StreamingService_ReceiveEventsClient, error) {
2220 stream, err := c.cc.NewStream(ctx, &_StreamingService_serviceDesc.Streams[2], "/google.cloud.visionai.v1.StreamingService/ReceiveEvents", opts...)
2221 if err != nil {
2222 return nil, err
2223 }
2224 x := &streamingServiceReceiveEventsClient{stream}
2225 return x, nil
2226 }
2227
2228 type StreamingService_ReceiveEventsClient interface {
2229 Send(*ReceiveEventsRequest) error
2230 Recv() (*ReceiveEventsResponse, error)
2231 grpc.ClientStream
2232 }
2233
2234 type streamingServiceReceiveEventsClient struct {
2235 grpc.ClientStream
2236 }
2237
2238 func (x *streamingServiceReceiveEventsClient) Send(m *ReceiveEventsRequest) error {
2239 return x.ClientStream.SendMsg(m)
2240 }
2241
2242 func (x *streamingServiceReceiveEventsClient) Recv() (*ReceiveEventsResponse, error) {
2243 m := new(ReceiveEventsResponse)
2244 if err := x.ClientStream.RecvMsg(m); err != nil {
2245 return nil, err
2246 }
2247 return m, nil
2248 }
2249
2250 func (c *streamingServiceClient) AcquireLease(ctx context.Context, in *AcquireLeaseRequest, opts ...grpc.CallOption) (*Lease, error) {
2251 out := new(Lease)
2252 err := c.cc.Invoke(ctx, "/google.cloud.visionai.v1.StreamingService/AcquireLease", in, out, opts...)
2253 if err != nil {
2254 return nil, err
2255 }
2256 return out, nil
2257 }
2258
2259 func (c *streamingServiceClient) RenewLease(ctx context.Context, in *RenewLeaseRequest, opts ...grpc.CallOption) (*Lease, error) {
2260 out := new(Lease)
2261 err := c.cc.Invoke(ctx, "/google.cloud.visionai.v1.StreamingService/RenewLease", in, out, opts...)
2262 if err != nil {
2263 return nil, err
2264 }
2265 return out, nil
2266 }
2267
2268 func (c *streamingServiceClient) ReleaseLease(ctx context.Context, in *ReleaseLeaseRequest, opts ...grpc.CallOption) (*ReleaseLeaseResponse, error) {
2269 out := new(ReleaseLeaseResponse)
2270 err := c.cc.Invoke(ctx, "/google.cloud.visionai.v1.StreamingService/ReleaseLease", in, out, opts...)
2271 if err != nil {
2272 return nil, err
2273 }
2274 return out, nil
2275 }
2276
2277 // StreamingServiceServer is the server API for StreamingService service.
2278 type StreamingServiceServer interface {
2279 // Send packets to the series.
2280 SendPackets(StreamingService_SendPacketsServer) error
2281 // Receive packets from the series.
2282 ReceivePackets(StreamingService_ReceivePacketsServer) error
2283 // Receive events given the stream name.
2284 ReceiveEvents(StreamingService_ReceiveEventsServer) error
2285 // AcquireLease acquires a lease.
2286 AcquireLease(context.Context, *AcquireLeaseRequest) (*Lease, error)
2287 // RenewLease renews a lease.
2288 RenewLease(context.Context, *RenewLeaseRequest) (*Lease, error)
2289 // RleaseLease releases a lease.
2290 ReleaseLease(context.Context, *ReleaseLeaseRequest) (*ReleaseLeaseResponse, error)
2291 }
2292
2293 // UnimplementedStreamingServiceServer can be embedded to have forward compatible implementations.
2294 type UnimplementedStreamingServiceServer struct {
2295 }
2296
2297 func (*UnimplementedStreamingServiceServer) SendPackets(StreamingService_SendPacketsServer) error {
2298 return status.Errorf(codes.Unimplemented, "method SendPackets not implemented")
2299 }
2300 func (*UnimplementedStreamingServiceServer) ReceivePackets(StreamingService_ReceivePacketsServer) error {
2301 return status.Errorf(codes.Unimplemented, "method ReceivePackets not implemented")
2302 }
2303 func (*UnimplementedStreamingServiceServer) ReceiveEvents(StreamingService_ReceiveEventsServer) error {
2304 return status.Errorf(codes.Unimplemented, "method ReceiveEvents not implemented")
2305 }
2306 func (*UnimplementedStreamingServiceServer) AcquireLease(context.Context, *AcquireLeaseRequest) (*Lease, error) {
2307 return nil, status.Errorf(codes.Unimplemented, "method AcquireLease not implemented")
2308 }
2309 func (*UnimplementedStreamingServiceServer) RenewLease(context.Context, *RenewLeaseRequest) (*Lease, error) {
2310 return nil, status.Errorf(codes.Unimplemented, "method RenewLease not implemented")
2311 }
2312 func (*UnimplementedStreamingServiceServer) ReleaseLease(context.Context, *ReleaseLeaseRequest) (*ReleaseLeaseResponse, error) {
2313 return nil, status.Errorf(codes.Unimplemented, "method ReleaseLease not implemented")
2314 }
2315
2316 func RegisterStreamingServiceServer(s *grpc.Server, srv StreamingServiceServer) {
2317 s.RegisterService(&_StreamingService_serviceDesc, srv)
2318 }
2319
2320 func _StreamingService_SendPackets_Handler(srv interface{}, stream grpc.ServerStream) error {
2321 return srv.(StreamingServiceServer).SendPackets(&streamingServiceSendPacketsServer{stream})
2322 }
2323
2324 type StreamingService_SendPacketsServer interface {
2325 Send(*SendPacketsResponse) error
2326 Recv() (*SendPacketsRequest, error)
2327 grpc.ServerStream
2328 }
2329
2330 type streamingServiceSendPacketsServer struct {
2331 grpc.ServerStream
2332 }
2333
2334 func (x *streamingServiceSendPacketsServer) Send(m *SendPacketsResponse) error {
2335 return x.ServerStream.SendMsg(m)
2336 }
2337
2338 func (x *streamingServiceSendPacketsServer) Recv() (*SendPacketsRequest, error) {
2339 m := new(SendPacketsRequest)
2340 if err := x.ServerStream.RecvMsg(m); err != nil {
2341 return nil, err
2342 }
2343 return m, nil
2344 }
2345
2346 func _StreamingService_ReceivePackets_Handler(srv interface{}, stream grpc.ServerStream) error {
2347 return srv.(StreamingServiceServer).ReceivePackets(&streamingServiceReceivePacketsServer{stream})
2348 }
2349
2350 type StreamingService_ReceivePacketsServer interface {
2351 Send(*ReceivePacketsResponse) error
2352 Recv() (*ReceivePacketsRequest, error)
2353 grpc.ServerStream
2354 }
2355
2356 type streamingServiceReceivePacketsServer struct {
2357 grpc.ServerStream
2358 }
2359
2360 func (x *streamingServiceReceivePacketsServer) Send(m *ReceivePacketsResponse) error {
2361 return x.ServerStream.SendMsg(m)
2362 }
2363
2364 func (x *streamingServiceReceivePacketsServer) Recv() (*ReceivePacketsRequest, error) {
2365 m := new(ReceivePacketsRequest)
2366 if err := x.ServerStream.RecvMsg(m); err != nil {
2367 return nil, err
2368 }
2369 return m, nil
2370 }
2371
2372 func _StreamingService_ReceiveEvents_Handler(srv interface{}, stream grpc.ServerStream) error {
2373 return srv.(StreamingServiceServer).ReceiveEvents(&streamingServiceReceiveEventsServer{stream})
2374 }
2375
2376 type StreamingService_ReceiveEventsServer interface {
2377 Send(*ReceiveEventsResponse) error
2378 Recv() (*ReceiveEventsRequest, error)
2379 grpc.ServerStream
2380 }
2381
2382 type streamingServiceReceiveEventsServer struct {
2383 grpc.ServerStream
2384 }
2385
2386 func (x *streamingServiceReceiveEventsServer) Send(m *ReceiveEventsResponse) error {
2387 return x.ServerStream.SendMsg(m)
2388 }
2389
2390 func (x *streamingServiceReceiveEventsServer) Recv() (*ReceiveEventsRequest, error) {
2391 m := new(ReceiveEventsRequest)
2392 if err := x.ServerStream.RecvMsg(m); err != nil {
2393 return nil, err
2394 }
2395 return m, nil
2396 }
2397
2398 func _StreamingService_AcquireLease_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2399 in := new(AcquireLeaseRequest)
2400 if err := dec(in); err != nil {
2401 return nil, err
2402 }
2403 if interceptor == nil {
2404 return srv.(StreamingServiceServer).AcquireLease(ctx, in)
2405 }
2406 info := &grpc.UnaryServerInfo{
2407 Server: srv,
2408 FullMethod: "/google.cloud.visionai.v1.StreamingService/AcquireLease",
2409 }
2410 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2411 return srv.(StreamingServiceServer).AcquireLease(ctx, req.(*AcquireLeaseRequest))
2412 }
2413 return interceptor(ctx, in, info, handler)
2414 }
2415
2416 func _StreamingService_RenewLease_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2417 in := new(RenewLeaseRequest)
2418 if err := dec(in); err != nil {
2419 return nil, err
2420 }
2421 if interceptor == nil {
2422 return srv.(StreamingServiceServer).RenewLease(ctx, in)
2423 }
2424 info := &grpc.UnaryServerInfo{
2425 Server: srv,
2426 FullMethod: "/google.cloud.visionai.v1.StreamingService/RenewLease",
2427 }
2428 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2429 return srv.(StreamingServiceServer).RenewLease(ctx, req.(*RenewLeaseRequest))
2430 }
2431 return interceptor(ctx, in, info, handler)
2432 }
2433
2434 func _StreamingService_ReleaseLease_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2435 in := new(ReleaseLeaseRequest)
2436 if err := dec(in); err != nil {
2437 return nil, err
2438 }
2439 if interceptor == nil {
2440 return srv.(StreamingServiceServer).ReleaseLease(ctx, in)
2441 }
2442 info := &grpc.UnaryServerInfo{
2443 Server: srv,
2444 FullMethod: "/google.cloud.visionai.v1.StreamingService/ReleaseLease",
2445 }
2446 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2447 return srv.(StreamingServiceServer).ReleaseLease(ctx, req.(*ReleaseLeaseRequest))
2448 }
2449 return interceptor(ctx, in, info, handler)
2450 }
2451
2452 var _StreamingService_serviceDesc = grpc.ServiceDesc{
2453 ServiceName: "google.cloud.visionai.v1.StreamingService",
2454 HandlerType: (*StreamingServiceServer)(nil),
2455 Methods: []grpc.MethodDesc{
2456 {
2457 MethodName: "AcquireLease",
2458 Handler: _StreamingService_AcquireLease_Handler,
2459 },
2460 {
2461 MethodName: "RenewLease",
2462 Handler: _StreamingService_RenewLease_Handler,
2463 },
2464 {
2465 MethodName: "ReleaseLease",
2466 Handler: _StreamingService_ReleaseLease_Handler,
2467 },
2468 },
2469 Streams: []grpc.StreamDesc{
2470 {
2471 StreamName: "SendPackets",
2472 Handler: _StreamingService_SendPackets_Handler,
2473 ServerStreams: true,
2474 ClientStreams: true,
2475 },
2476 {
2477 StreamName: "ReceivePackets",
2478 Handler: _StreamingService_ReceivePackets_Handler,
2479 ServerStreams: true,
2480 ClientStreams: true,
2481 },
2482 {
2483 StreamName: "ReceiveEvents",
2484 Handler: _StreamingService_ReceiveEvents_Handler,
2485 ServerStreams: true,
2486 ClientStreams: true,
2487 },
2488 },
2489 Metadata: "google/cloud/visionai/v1/streaming_service.proto",
2490 }