Debian Codegraph @

pubsublite/apiv1/pubsublitepb/subscriber.pb.go

raw symbols SCIP
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/pubsublite/v1/subscriber.proto
20
21 package pubsublitepb
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 reflect "reflect"
32 sync "sync"
33 )
34
35 const (
36 // Verify that this generated code is sufficiently up-to-date.
37 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
38 // Verify that runtime/protoimpl is sufficiently up-to-date.
39 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
40 )
41
42 // A special target in the partition that takes no other parameters.
43 type SeekRequest_NamedTarget int32
44
45 const (
46 // Default value. This value is unused.
47 SeekRequest_NAMED_TARGET_UNSPECIFIED SeekRequest_NamedTarget = 0
48 // A target corresponding to the most recently published message in the
49 // partition.
50 SeekRequest_HEAD SeekRequest_NamedTarget = 1
51 // A target corresponding to the committed cursor for the given subscription
52 // and topic partition.
53 SeekRequest_COMMITTED_CURSOR SeekRequest_NamedTarget = 2
54 )
55
56 // Enum value maps for SeekRequest_NamedTarget.
57 var (
58 SeekRequest_NamedTarget_name = map[int32]string{
59 0: "NAMED_TARGET_UNSPECIFIED",
60 1: "HEAD",
61 2: "COMMITTED_CURSOR",
62 }
63 SeekRequest_NamedTarget_value = map[string]int32{
64 "NAMED_TARGET_UNSPECIFIED": 0,
65 "HEAD": 1,
66 "COMMITTED_CURSOR": 2,
67 }
68 )
69
70 func (x SeekRequest_NamedTarget) Enum() *SeekRequest_NamedTarget {
71 p := new(SeekRequest_NamedTarget)
72 *p = x
73 return p
74 }
75
76 func (x SeekRequest_NamedTarget) String() string {
77 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
78 }
79
80 func (SeekRequest_NamedTarget) Descriptor() protoreflect.EnumDescriptor {
81 return file_google_cloud_pubsublite_v1_subscriber_proto_enumTypes[0].Descriptor()
82 }
83
84 func (SeekRequest_NamedTarget) Type() protoreflect.EnumType {
85 return &file_google_cloud_pubsublite_v1_subscriber_proto_enumTypes[0]
86 }
87
88 func (x SeekRequest_NamedTarget) Number() protoreflect.EnumNumber {
89 return protoreflect.EnumNumber(x)
90 }
91
92 // Deprecated: Use SeekRequest_NamedTarget.Descriptor instead.
93 func (SeekRequest_NamedTarget) EnumDescriptor() ([]byte, []int) {
94 return file_google_cloud_pubsublite_v1_subscriber_proto_rawDescGZIP(), []int{2, 0}
95 }
96
97 // The first request that must be sent on a newly-opened stream. The client must
98 // wait for the response before sending subsequent requests on the stream.
99 type InitialSubscribeRequest struct {
100 state protoimpl.MessageState
101 sizeCache protoimpl.SizeCache
102 unknownFields protoimpl.UnknownFields
103
104 // The subscription from which to receive messages.
105 Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
106 // The partition from which to receive messages. Partitions are zero indexed,
107 // so `partition` must be in the range [0, topic.num_partitions).
108 Partition int64 `protobuf:"varint,2,opt,name=partition,proto3" json:"partition,omitempty"`
109 // Optional. Initial target location within the message backlog. If not set,
110 // messages will be delivered from the commit cursor for the given
111 // subscription and partition.
112 InitialLocation *SeekRequest `protobuf:"bytes,4,opt,name=initial_location,json=initialLocation,proto3" json:"initial_location,omitempty"`
113 }
114
115 func (x *InitialSubscribeRequest) Reset() {
116 *x = InitialSubscribeRequest{}
117 mi := &file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[0]
118 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
119 ms.StoreMessageInfo(mi)
120 }
121
122 func (x *InitialSubscribeRequest) String() string {
123 return protoimpl.X.MessageStringOf(x)
124 }
125
126 func (*InitialSubscribeRequest) ProtoMessage() {}
127
128 func (x *InitialSubscribeRequest) ProtoReflect() protoreflect.Message {
129 mi := &file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[0]
130 if x != nil {
131 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
132 if ms.LoadMessageInfo() == nil {
133 ms.StoreMessageInfo(mi)
134 }
135 return ms
136 }
137 return mi.MessageOf(x)
138 }
139
140 // Deprecated: Use InitialSubscribeRequest.ProtoReflect.Descriptor instead.
141 func (*InitialSubscribeRequest) Descriptor() ([]byte, []int) {
142 return file_google_cloud_pubsublite_v1_subscriber_proto_rawDescGZIP(), []int{0}
143 }
144
145 func (x *InitialSubscribeRequest) GetSubscription() string {
146 if x != nil {
147 return x.Subscription
148 }
149 return ""
150 }
151
152 func (x *InitialSubscribeRequest) GetPartition() int64 {
153 if x != nil {
154 return x.Partition
155 }
156 return 0
157 }
158
159 func (x *InitialSubscribeRequest) GetInitialLocation() *SeekRequest {
160 if x != nil {
161 return x.InitialLocation
162 }
163 return nil
164 }
165
166 // Response to an InitialSubscribeRequest.
167 type InitialSubscribeResponse struct {
168 state protoimpl.MessageState
169 sizeCache protoimpl.SizeCache
170 unknownFields protoimpl.UnknownFields
171
172 // The cursor from which the subscriber will start receiving messages once
173 // flow control tokens become available.
174 Cursor *Cursor `protobuf:"bytes,1,opt,name=cursor,proto3" json:"cursor,omitempty"`
175 }
176
177 func (x *InitialSubscribeResponse) Reset() {
178 *x = InitialSubscribeResponse{}
179 mi := &file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[1]
180 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
181 ms.StoreMessageInfo(mi)
182 }
183
184 func (x *InitialSubscribeResponse) String() string {
185 return protoimpl.X.MessageStringOf(x)
186 }
187
188 func (*InitialSubscribeResponse) ProtoMessage() {}
189
190 func (x *InitialSubscribeResponse) ProtoReflect() protoreflect.Message {
191 mi := &file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[1]
192 if x != nil {
193 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
194 if ms.LoadMessageInfo() == nil {
195 ms.StoreMessageInfo(mi)
196 }
197 return ms
198 }
199 return mi.MessageOf(x)
200 }
201
202 // Deprecated: Use InitialSubscribeResponse.ProtoReflect.Descriptor instead.
203 func (*InitialSubscribeResponse) Descriptor() ([]byte, []int) {
204 return file_google_cloud_pubsublite_v1_subscriber_proto_rawDescGZIP(), []int{1}
205 }
206
207 func (x *InitialSubscribeResponse) GetCursor() *Cursor {
208 if x != nil {
209 return x.Cursor
210 }
211 return nil
212 }
213
214 // Request to update the stream's delivery cursor based on the given target.
215 // Resets the server available tokens to 0. SeekRequests past head result in
216 // stream breakage.
217 //
218 // SeekRequests may not be sent while another SeekRequest is outstanding (i.e.,
219 // has not received a SeekResponse) on the same stream.
220 type SeekRequest struct {
221 state protoimpl.MessageState
222 sizeCache protoimpl.SizeCache
223 unknownFields protoimpl.UnknownFields
224
225 // The target to seek to. Must be set.
226 //
227 // Types that are assignable to Target:
228 //
229 // *SeekRequest_NamedTarget_
230 // *SeekRequest_Cursor
231 Target isSeekRequest_Target `protobuf_oneof:"target"`
232 }
233
234 func (x *SeekRequest) Reset() {
235 *x = SeekRequest{}
236 mi := &file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[2]
237 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
238 ms.StoreMessageInfo(mi)
239 }
240
241 func (x *SeekRequest) String() string {
242 return protoimpl.X.MessageStringOf(x)
243 }
244
245 func (*SeekRequest) ProtoMessage() {}
246
247 func (x *SeekRequest) ProtoReflect() protoreflect.Message {
248 mi := &file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[2]
249 if x != nil {
250 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
251 if ms.LoadMessageInfo() == nil {
252 ms.StoreMessageInfo(mi)
253 }
254 return ms
255 }
256 return mi.MessageOf(x)
257 }
258
259 // Deprecated: Use SeekRequest.ProtoReflect.Descriptor instead.
260 func (*SeekRequest) Descriptor() ([]byte, []int) {
261 return file_google_cloud_pubsublite_v1_subscriber_proto_rawDescGZIP(), []int{2}
262 }
263
264 func (m *SeekRequest) GetTarget() isSeekRequest_Target {
265 if m != nil {
266 return m.Target
267 }
268 return nil
269 }
270
271 func (x *SeekRequest) GetNamedTarget() SeekRequest_NamedTarget {
272 if x, ok := x.GetTarget().(*SeekRequest_NamedTarget_); ok {
273 return x.NamedTarget
274 }
275 return SeekRequest_NAMED_TARGET_UNSPECIFIED
276 }
277
278 func (x *SeekRequest) GetCursor() *Cursor {
279 if x, ok := x.GetTarget().(*SeekRequest_Cursor); ok {
280 return x.Cursor
281 }
282 return nil
283 }
284
285 type isSeekRequest_Target interface {
286 isSeekRequest_Target()
287 }
288
289 type SeekRequest_NamedTarget_ struct {
290 // A named target.
291 NamedTarget SeekRequest_NamedTarget `protobuf:"varint,1,opt,name=named_target,json=namedTarget,proto3,enum=google.cloud.pubsublite.v1.SeekRequest_NamedTarget,oneof"`
292 }
293
294 type SeekRequest_Cursor struct {
295 // A target corresponding to the cursor, pointing to anywhere in the
296 // topic partition.
297 Cursor *Cursor `protobuf:"bytes,2,opt,name=cursor,proto3,oneof"`
298 }
299
300 func (*SeekRequest_NamedTarget_) isSeekRequest_Target() {}
301
302 func (*SeekRequest_Cursor) isSeekRequest_Target() {}
303
304 // Response to a SeekRequest.
305 type SeekResponse struct {
306 state protoimpl.MessageState
307 sizeCache protoimpl.SizeCache
308 unknownFields protoimpl.UnknownFields
309
310 // The new delivery cursor for the current stream.
311 Cursor *Cursor `protobuf:"bytes,1,opt,name=cursor,proto3" json:"cursor,omitempty"`
312 }
313
314 func (x *SeekResponse) Reset() {
315 *x = SeekResponse{}
316 mi := &file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[3]
317 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
318 ms.StoreMessageInfo(mi)
319 }
320
321 func (x *SeekResponse) String() string {
322 return protoimpl.X.MessageStringOf(x)
323 }
324
325 func (*SeekResponse) ProtoMessage() {}
326
327 func (x *SeekResponse) ProtoReflect() protoreflect.Message {
328 mi := &file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[3]
329 if x != nil {
330 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
331 if ms.LoadMessageInfo() == nil {
332 ms.StoreMessageInfo(mi)
333 }
334 return ms
335 }
336 return mi.MessageOf(x)
337 }
338
339 // Deprecated: Use SeekResponse.ProtoReflect.Descriptor instead.
340 func (*SeekResponse) Descriptor() ([]byte, []int) {
341 return file_google_cloud_pubsublite_v1_subscriber_proto_rawDescGZIP(), []int{3}
342 }
343
344 func (x *SeekResponse) GetCursor() *Cursor {
345 if x != nil {
346 return x.Cursor
347 }
348 return nil
349 }
350
351 // Request to grant tokens to the server, requesting delivery of messages when
352 // they become available.
353 type FlowControlRequest struct {
354 state protoimpl.MessageState
355 sizeCache protoimpl.SizeCache
356 unknownFields protoimpl.UnknownFields
357
358 // The number of message tokens to grant. Must be greater than or equal to 0.
359 AllowedMessages int64 `protobuf:"varint,1,opt,name=allowed_messages,json=allowedMessages,proto3" json:"allowed_messages,omitempty"`
360 // The number of byte tokens to grant. Must be greater than or equal to 0.
361 AllowedBytes int64 `protobuf:"varint,2,opt,name=allowed_bytes,json=allowedBytes,proto3" json:"allowed_bytes,omitempty"`
362 }
363
364 func (x *FlowControlRequest) Reset() {
365 *x = FlowControlRequest{}
366 mi := &file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[4]
367 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
368 ms.StoreMessageInfo(mi)
369 }
370
371 func (x *FlowControlRequest) String() string {
372 return protoimpl.X.MessageStringOf(x)
373 }
374
375 func (*FlowControlRequest) ProtoMessage() {}
376
377 func (x *FlowControlRequest) ProtoReflect() protoreflect.Message {
378 mi := &file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[4]
379 if x != nil {
380 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
381 if ms.LoadMessageInfo() == nil {
382 ms.StoreMessageInfo(mi)
383 }
384 return ms
385 }
386 return mi.MessageOf(x)
387 }
388
389 // Deprecated: Use FlowControlRequest.ProtoReflect.Descriptor instead.
390 func (*FlowControlRequest) Descriptor() ([]byte, []int) {
391 return file_google_cloud_pubsublite_v1_subscriber_proto_rawDescGZIP(), []int{4}
392 }
393
394 func (x *FlowControlRequest) GetAllowedMessages() int64 {
395 if x != nil {
396 return x.AllowedMessages
397 }
398 return 0
399 }
400
401 func (x *FlowControlRequest) GetAllowedBytes() int64 {
402 if x != nil {
403 return x.AllowedBytes
404 }
405 return 0
406 }
407
408 // A request sent from the client to the server on a stream.
409 type SubscribeRequest struct {
410 state protoimpl.MessageState
411 sizeCache protoimpl.SizeCache
412 unknownFields protoimpl.UnknownFields
413
414 // The type of request this is.
415 //
416 // Types that are assignable to Request:
417 //
418 // *SubscribeRequest_Initial
419 // *SubscribeRequest_Seek
420 // *SubscribeRequest_FlowControl
421 Request isSubscribeRequest_Request `protobuf_oneof:"request"`
422 }
423
424 func (x *SubscribeRequest) Reset() {
425 *x = SubscribeRequest{}
426 mi := &file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[5]
427 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
428 ms.StoreMessageInfo(mi)
429 }
430
431 func (x *SubscribeRequest) String() string {
432 return protoimpl.X.MessageStringOf(x)
433 }
434
435 func (*SubscribeRequest) ProtoMessage() {}
436
437 func (x *SubscribeRequest) ProtoReflect() protoreflect.Message {
438 mi := &file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[5]
439 if x != nil {
440 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
441 if ms.LoadMessageInfo() == nil {
442 ms.StoreMessageInfo(mi)
443 }
444 return ms
445 }
446 return mi.MessageOf(x)
447 }
448
449 // Deprecated: Use SubscribeRequest.ProtoReflect.Descriptor instead.
450 func (*SubscribeRequest) Descriptor() ([]byte, []int) {
451 return file_google_cloud_pubsublite_v1_subscriber_proto_rawDescGZIP(), []int{5}
452 }
453
454 func (m *SubscribeRequest) GetRequest() isSubscribeRequest_Request {
455 if m != nil {
456 return m.Request
457 }
458 return nil
459 }
460
461 func (x *SubscribeRequest) GetInitial() *InitialSubscribeRequest {
462 if x, ok := x.GetRequest().(*SubscribeRequest_Initial); ok {
463 return x.Initial
464 }
465 return nil
466 }
467
468 func (x *SubscribeRequest) GetSeek() *SeekRequest {
469 if x, ok := x.GetRequest().(*SubscribeRequest_Seek); ok {
470 return x.Seek
471 }
472 return nil
473 }
474
475 func (x *SubscribeRequest) GetFlowControl() *FlowControlRequest {
476 if x, ok := x.GetRequest().(*SubscribeRequest_FlowControl); ok {
477 return x.FlowControl
478 }
479 return nil
480 }
481
482 type isSubscribeRequest_Request interface {
483 isSubscribeRequest_Request()
484 }
485
486 type SubscribeRequest_Initial struct {
487 // Initial request on the stream.
488 Initial *InitialSubscribeRequest `protobuf:"bytes,1,opt,name=initial,proto3,oneof"`
489 }
490
491 type SubscribeRequest_Seek struct {
492 // Request to update the stream's delivery cursor.
493 Seek *SeekRequest `protobuf:"bytes,2,opt,name=seek,proto3,oneof"`
494 }
495
496 type SubscribeRequest_FlowControl struct {
497 // Request to grant tokens to the server,
498 FlowControl *FlowControlRequest `protobuf:"bytes,3,opt,name=flow_control,json=flowControl,proto3,oneof"`
499 }
500
501 func (*SubscribeRequest_Initial) isSubscribeRequest_Request() {}
502
503 func (*SubscribeRequest_Seek) isSubscribeRequest_Request() {}
504
505 func (*SubscribeRequest_FlowControl) isSubscribeRequest_Request() {}
506
507 // Response containing a list of messages. Upon delivering a MessageResponse to
508 // the client, the server:
509 // - Updates the stream's delivery cursor to one greater than the cursor of the
510 // last message in the list.
511 // - Subtracts the total number of bytes and messages from the tokens available
512 // to the server.
513 type MessageResponse struct {
514 state protoimpl.MessageState
515 sizeCache protoimpl.SizeCache
516 unknownFields protoimpl.UnknownFields
517
518 // Messages from the topic partition.
519 Messages []*SequencedMessage `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
520 }
521
522 func (x *MessageResponse) Reset() {
523 *x = MessageResponse{}
524 mi := &file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[6]
525 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
526 ms.StoreMessageInfo(mi)
527 }
528
529 func (x *MessageResponse) String() string {
530 return protoimpl.X.MessageStringOf(x)
531 }
532
533 func (*MessageResponse) ProtoMessage() {}
534
535 func (x *MessageResponse) ProtoReflect() protoreflect.Message {
536 mi := &file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[6]
537 if x != nil {
538 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
539 if ms.LoadMessageInfo() == nil {
540 ms.StoreMessageInfo(mi)
541 }
542 return ms
543 }
544 return mi.MessageOf(x)
545 }
546
547 // Deprecated: Use MessageResponse.ProtoReflect.Descriptor instead.
548 func (*MessageResponse) Descriptor() ([]byte, []int) {
549 return file_google_cloud_pubsublite_v1_subscriber_proto_rawDescGZIP(), []int{6}
550 }
551
552 func (x *MessageResponse) GetMessages() []*SequencedMessage {
553 if x != nil {
554 return x.Messages
555 }
556 return nil
557 }
558
559 // Response to SubscribeRequest.
560 type SubscribeResponse struct {
561 state protoimpl.MessageState
562 sizeCache protoimpl.SizeCache
563 unknownFields protoimpl.UnknownFields
564
565 // The type of response this is.
566 //
567 // Types that are assignable to Response:
568 //
569 // *SubscribeResponse_Initial
570 // *SubscribeResponse_Seek
571 // *SubscribeResponse_Messages
572 Response isSubscribeResponse_Response `protobuf_oneof:"response"`
573 }
574
575 func (x *SubscribeResponse) Reset() {
576 *x = SubscribeResponse{}
577 mi := &file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[7]
578 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
579 ms.StoreMessageInfo(mi)
580 }
581
582 func (x *SubscribeResponse) String() string {
583 return protoimpl.X.MessageStringOf(x)
584 }
585
586 func (*SubscribeResponse) ProtoMessage() {}
587
588 func (x *SubscribeResponse) ProtoReflect() protoreflect.Message {
589 mi := &file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[7]
590 if x != nil {
591 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
592 if ms.LoadMessageInfo() == nil {
593 ms.StoreMessageInfo(mi)
594 }
595 return ms
596 }
597 return mi.MessageOf(x)
598 }
599
600 // Deprecated: Use SubscribeResponse.ProtoReflect.Descriptor instead.
601 func (*SubscribeResponse) Descriptor() ([]byte, []int) {
602 return file_google_cloud_pubsublite_v1_subscriber_proto_rawDescGZIP(), []int{7}
603 }
604
605 func (m *SubscribeResponse) GetResponse() isSubscribeResponse_Response {
606 if m != nil {
607 return m.Response
608 }
609 return nil
610 }
611
612 func (x *SubscribeResponse) GetInitial() *InitialSubscribeResponse {
613 if x, ok := x.GetResponse().(*SubscribeResponse_Initial); ok {
614 return x.Initial
615 }
616 return nil
617 }
618
619 func (x *SubscribeResponse) GetSeek() *SeekResponse {
620 if x, ok := x.GetResponse().(*SubscribeResponse_Seek); ok {
621 return x.Seek
622 }
623 return nil
624 }
625
626 func (x *SubscribeResponse) GetMessages() *MessageResponse {
627 if x, ok := x.GetResponse().(*SubscribeResponse_Messages); ok {
628 return x.Messages
629 }
630 return nil
631 }
632
633 type isSubscribeResponse_Response interface {
634 isSubscribeResponse_Response()
635 }
636
637 type SubscribeResponse_Initial struct {
638 // Initial response on the stream.
639 Initial *InitialSubscribeResponse `protobuf:"bytes,1,opt,name=initial,proto3,oneof"`
640 }
641
642 type SubscribeResponse_Seek struct {
643 // Response to a Seek operation.
644 Seek *SeekResponse `protobuf:"bytes,2,opt,name=seek,proto3,oneof"`
645 }
646
647 type SubscribeResponse_Messages struct {
648 // Response containing messages from the topic partition.
649 Messages *MessageResponse `protobuf:"bytes,3,opt,name=messages,proto3,oneof"`
650 }
651
652 func (*SubscribeResponse_Initial) isSubscribeResponse_Response() {}
653
654 func (*SubscribeResponse_Seek) isSubscribeResponse_Response() {}
655
656 func (*SubscribeResponse_Messages) isSubscribeResponse_Response() {}
657
658 // The first request that must be sent on a newly-opened stream. The client must
659 // wait for the response before sending subsequent requests on the stream.
660 type InitialPartitionAssignmentRequest struct {
661 state protoimpl.MessageState
662 sizeCache protoimpl.SizeCache
663 unknownFields protoimpl.UnknownFields
664
665 // The subscription name. Structured like:
666 // projects/<project number>/locations/<zone name>/subscriptions/<subscription
667 // id>
668 Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
669 // An opaque, unique client identifier. This field must be exactly 16 bytes
670 // long and is interpreted as an unsigned 128 bit integer. Other size values
671 // will be rejected and the stream will be failed with a non-retryable error.
672 //
673 // This field is large enough to fit a uuid from standard uuid algorithms like
674 // uuid1 or uuid4, which should be used to generate this number. The same
675 // identifier should be reused following disconnections with retryable stream
676 // errors.
677 ClientId []byte `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
678 }
679
680 func (x *InitialPartitionAssignmentRequest) Reset() {
681 *x = InitialPartitionAssignmentRequest{}
682 mi := &file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[8]
683 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
684 ms.StoreMessageInfo(mi)
685 }
686
687 func (x *InitialPartitionAssignmentRequest) String() string {
688 return protoimpl.X.MessageStringOf(x)
689 }
690
691 func (*InitialPartitionAssignmentRequest) ProtoMessage() {}
692
693 func (x *InitialPartitionAssignmentRequest) ProtoReflect() protoreflect.Message {
694 mi := &file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[8]
695 if x != nil {
696 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
697 if ms.LoadMessageInfo() == nil {
698 ms.StoreMessageInfo(mi)
699 }
700 return ms
701 }
702 return mi.MessageOf(x)
703 }
704
705 // Deprecated: Use InitialPartitionAssignmentRequest.ProtoReflect.Descriptor instead.
706 func (*InitialPartitionAssignmentRequest) Descriptor() ([]byte, []int) {
707 return file_google_cloud_pubsublite_v1_subscriber_proto_rawDescGZIP(), []int{8}
708 }
709
710 func (x *InitialPartitionAssignmentRequest) GetSubscription() string {
711 if x != nil {
712 return x.Subscription
713 }
714 return ""
715 }
716
717 func (x *InitialPartitionAssignmentRequest) GetClientId() []byte {
718 if x != nil {
719 return x.ClientId
720 }
721 return nil
722 }
723
724 // PartitionAssignments should not race with acknowledgements. There
725 // should be exactly one unacknowledged PartitionAssignment at a time. If not,
726 // the client must break the stream.
727 type PartitionAssignment struct {
728 state protoimpl.MessageState
729 sizeCache protoimpl.SizeCache
730 unknownFields protoimpl.UnknownFields
731
732 // The list of partition numbers this subscriber is assigned to.
733 Partitions []int64 `protobuf:"varint,1,rep,packed,name=partitions,proto3" json:"partitions,omitempty"`
734 }
735
736 func (x *PartitionAssignment) Reset() {
737 *x = PartitionAssignment{}
738 mi := &file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[9]
739 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
740 ms.StoreMessageInfo(mi)
741 }
742
743 func (x *PartitionAssignment) String() string {
744 return protoimpl.X.MessageStringOf(x)
745 }
746
747 func (*PartitionAssignment) ProtoMessage() {}
748
749 func (x *PartitionAssignment) ProtoReflect() protoreflect.Message {
750 mi := &file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[9]
751 if x != nil {
752 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
753 if ms.LoadMessageInfo() == nil {
754 ms.StoreMessageInfo(mi)
755 }
756 return ms
757 }
758 return mi.MessageOf(x)
759 }
760
761 // Deprecated: Use PartitionAssignment.ProtoReflect.Descriptor instead.
762 func (*PartitionAssignment) Descriptor() ([]byte, []int) {
763 return file_google_cloud_pubsublite_v1_subscriber_proto_rawDescGZIP(), []int{9}
764 }
765
766 func (x *PartitionAssignment) GetPartitions() []int64 {
767 if x != nil {
768 return x.Partitions
769 }
770 return nil
771 }
772
773 // Acknowledge receipt and handling of the previous assignment.
774 // If not sent within a short period after receiving the assignment,
775 // partitions may remain unassigned for a period of time until the
776 // client is known to be inactive, after which time the server will break the
777 // stream.
778 type PartitionAssignmentAck struct {
779 state protoimpl.MessageState
780 sizeCache protoimpl.SizeCache
781 unknownFields protoimpl.UnknownFields
782 }
783
784 func (x *PartitionAssignmentAck) Reset() {
785 *x = PartitionAssignmentAck{}
786 mi := &file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[10]
787 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
788 ms.StoreMessageInfo(mi)
789 }
790
791 func (x *PartitionAssignmentAck) String() string {
792 return protoimpl.X.MessageStringOf(x)
793 }
794
795 func (*PartitionAssignmentAck) ProtoMessage() {}
796
797 func (x *PartitionAssignmentAck) ProtoReflect() protoreflect.Message {
798 mi := &file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[10]
799 if x != nil {
800 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
801 if ms.LoadMessageInfo() == nil {
802 ms.StoreMessageInfo(mi)
803 }
804 return ms
805 }
806 return mi.MessageOf(x)
807 }
808
809 // Deprecated: Use PartitionAssignmentAck.ProtoReflect.Descriptor instead.
810 func (*PartitionAssignmentAck) Descriptor() ([]byte, []int) {
811 return file_google_cloud_pubsublite_v1_subscriber_proto_rawDescGZIP(), []int{10}
812 }
813
814 // A request on the PartitionAssignment stream.
815 type PartitionAssignmentRequest struct {
816 state protoimpl.MessageState
817 sizeCache protoimpl.SizeCache
818 unknownFields protoimpl.UnknownFields
819
820 // The type of request this is.
821 //
822 // Types that are assignable to Request:
823 //
824 // *PartitionAssignmentRequest_Initial
825 // *PartitionAssignmentRequest_Ack
826 Request isPartitionAssignmentRequest_Request `protobuf_oneof:"request"`
827 }
828
829 func (x *PartitionAssignmentRequest) Reset() {
830 *x = PartitionAssignmentRequest{}
831 mi := &file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[11]
832 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
833 ms.StoreMessageInfo(mi)
834 }
835
836 func (x *PartitionAssignmentRequest) String() string {
837 return protoimpl.X.MessageStringOf(x)
838 }
839
840 func (*PartitionAssignmentRequest) ProtoMessage() {}
841
842 func (x *PartitionAssignmentRequest) ProtoReflect() protoreflect.Message {
843 mi := &file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[11]
844 if x != nil {
845 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
846 if ms.LoadMessageInfo() == nil {
847 ms.StoreMessageInfo(mi)
848 }
849 return ms
850 }
851 return mi.MessageOf(x)
852 }
853
854 // Deprecated: Use PartitionAssignmentRequest.ProtoReflect.Descriptor instead.
855 func (*PartitionAssignmentRequest) Descriptor() ([]byte, []int) {
856 return file_google_cloud_pubsublite_v1_subscriber_proto_rawDescGZIP(), []int{11}
857 }
858
859 func (m *PartitionAssignmentRequest) GetRequest() isPartitionAssignmentRequest_Request {
860 if m != nil {
861 return m.Request
862 }
863 return nil
864 }
865
866 func (x *PartitionAssignmentRequest) GetInitial() *InitialPartitionAssignmentRequest {
867 if x, ok := x.GetRequest().(*PartitionAssignmentRequest_Initial); ok {
868 return x.Initial
869 }
870 return nil
871 }
872
873 func (x *PartitionAssignmentRequest) GetAck() *PartitionAssignmentAck {
874 if x, ok := x.GetRequest().(*PartitionAssignmentRequest_Ack); ok {
875 return x.Ack
876 }
877 return nil
878 }
879
880 type isPartitionAssignmentRequest_Request interface {
881 isPartitionAssignmentRequest_Request()
882 }
883
884 type PartitionAssignmentRequest_Initial struct {
885 // Initial request on the stream.
886 Initial *InitialPartitionAssignmentRequest `protobuf:"bytes,1,opt,name=initial,proto3,oneof"`
887 }
888
889 type PartitionAssignmentRequest_Ack struct {
890 // Acknowledgement of a partition assignment.
891 Ack *PartitionAssignmentAck `protobuf:"bytes,2,opt,name=ack,proto3,oneof"`
892 }
893
894 func (*PartitionAssignmentRequest_Initial) isPartitionAssignmentRequest_Request() {}
895
896 func (*PartitionAssignmentRequest_Ack) isPartitionAssignmentRequest_Request() {}
897
898 var File_google_cloud_pubsublite_v1_subscriber_proto protoreflect.FileDescriptor
899
900 var file_google_cloud_pubsublite_v1_subscriber_proto_rawDesc = []byte{
901 0x0a, 0x2b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x70,
902 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x62,
903 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67,
904 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73,
905 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
906 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
907 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
908 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
909 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65,
910 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
911 0x6f, 0x1a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f,
912 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f,
913 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb4, 0x01, 0x0a, 0x17, 0x49,
914 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52,
915 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72,
916 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x75,
917 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61,
918 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x70,
919 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x57, 0x0a, 0x10, 0x69, 0x6e, 0x69, 0x74,
920 0x69, 0x61, 0x6c, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01,
921 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
922 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e,
923 0x53, 0x65, 0x65, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x01,
924 0x52, 0x0f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
925 0x6e, 0x22, 0x56, 0x0a, 0x18, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x75, 0x62, 0x73,
926 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a,
927 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e,
928 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62,
929 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x73, 0x6f,
930 0x72, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x22, 0xfc, 0x01, 0x0a, 0x0b, 0x53, 0x65,
931 0x65, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x58, 0x0a, 0x0c, 0x6e, 0x61, 0x6d,
932 0x65, 0x64, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32,
933 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70,
934 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x65,
935 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x54, 0x61,
936 0x72, 0x67, 0x65, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x64, 0x54, 0x61, 0x72,
937 0x67, 0x65, 0x74, 0x12, 0x3c, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20,
938 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
939 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31,
940 0x2e, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f,
941 0x72, 0x22, 0x4b, 0x0a, 0x0b, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74,
942 0x12, 0x1c, 0x0a, 0x18, 0x4e, 0x41, 0x4d, 0x45, 0x44, 0x5f, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54,
943 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08,
944 0x0a, 0x04, 0x48, 0x45, 0x41, 0x44, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x43, 0x4f, 0x4d, 0x4d,
945 0x49, 0x54, 0x54, 0x45, 0x44, 0x5f, 0x43, 0x55, 0x52, 0x53, 0x4f, 0x52, 0x10, 0x02, 0x42, 0x08,
946 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0x4a, 0x0a, 0x0c, 0x53, 0x65, 0x65, 0x6b,
947 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73,
948 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
949 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69,
950 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x06, 0x63, 0x75,
951 0x72, 0x73, 0x6f, 0x72, 0x22, 0x64, 0x0a, 0x12, 0x46, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x6e, 0x74,
952 0x72, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x6c,
953 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01,
954 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x4d, 0x65, 0x73,
955 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64,
956 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x61, 0x6c,
957 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0x82, 0x02, 0x0a, 0x10, 0x53,
958 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
959 0x4f, 0x0a, 0x07, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
960 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
961 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e,
962 0x69, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65,
963 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x07, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c,
964 0x12, 0x3d, 0x0a, 0x04, 0x73, 0x65, 0x65, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27,
965 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75,
966 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x65, 0x6b,
967 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x04, 0x73, 0x65, 0x65, 0x6b, 0x12,
968 0x53, 0x0a, 0x0c, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x18,
969 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
970 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e,
971 0x76, 0x31, 0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x65,
972 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x6e,
973 0x74, 0x72, 0x6f, 0x6c, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22,
974 0x5b, 0x0a, 0x0f, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
975 0x73, 0x65, 0x12, 0x48, 0x0a, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01,
976 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
977 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76,
978 0x31, 0x2e, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61,
979 0x67, 0x65, 0x52, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x22, 0xfc, 0x01, 0x0a,
980 0x11, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
981 0x73, 0x65, 0x12, 0x50, 0x0a, 0x07, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x18, 0x01, 0x20,
982 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
983 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31,
984 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62,
985 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x07, 0x69, 0x6e, 0x69,
986 0x74, 0x69, 0x61, 0x6c, 0x12, 0x3e, 0x0a, 0x04, 0x73, 0x65, 0x65, 0x6b, 0x18, 0x02, 0x20, 0x01,
987 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
988 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e,
989 0x53, 0x65, 0x65, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x04,
990 0x73, 0x65, 0x65, 0x6b, 0x12, 0x49, 0x0a, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73,
991 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
992 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65,
993 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
994 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x42,
995 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x64, 0x0a, 0x21, 0x49,
996 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x41,
997 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
998 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
999 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70,
1000 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69,
1001 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49,
1002 0x64, 0x22, 0x35, 0x0a, 0x13, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x73,
1003 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x74,
1004 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0a, 0x70, 0x61,
1005 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x18, 0x0a, 0x16, 0x50, 0x61, 0x72, 0x74,
1006 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x41,
1007 0x63, 0x6b, 0x22, 0xca, 0x01, 0x0a, 0x1a, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e,
1008 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
1009 0x74, 0x12, 0x59, 0x0a, 0x07, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01,
1010 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
1011 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e,
1012 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e,
1013 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
1014 0x74, 0x48, 0x00, 0x52, 0x07, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x12, 0x46, 0x0a, 0x03,
1015 0x61, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
1016 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c,
1017 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e,
1018 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x63, 0x6b, 0x48, 0x00, 0x52,
1019 0x03, 0x61, 0x63, 0x6b, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x32,
1020 0xd2, 0x01, 0x0a, 0x11, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x53, 0x65,
1021 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6e, 0x0a, 0x09, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69,
1022 0x62, 0x65, 0x12, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
1023 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e,
1024 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
1025 0x1a, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
1026 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75,
1027 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
1028 0x00, 0x28, 0x01, 0x30, 0x01, 0x1a, 0x4d, 0xca, 0x41, 0x19, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62,
1029 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e,
1030 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77,
1031 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d,
1032 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74,
1033 0x66, 0x6f, 0x72, 0x6d, 0x32, 0xef, 0x01, 0x0a, 0x1a, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69,
1034 0x6f, 0x6e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76,
1035 0x69, 0x63, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x10, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x50, 0x61,
1036 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
1037 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69,
1038 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x41,
1039 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
1040 0x1a, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
1041 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61,
1042 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e,
1043 0x74, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x1a, 0x4d, 0xca, 0x41, 0x19, 0x70, 0x75, 0x62, 0x73,
1044 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
1045 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f,
1046 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63,
1047 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c,
1048 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xd3, 0x01, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
1049 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73,
1050 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x42, 0x0f, 0x53, 0x75,
1051 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
1052 0x3e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f,
1053 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2f,
1054 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65,
1055 0x70, 0x62, 0x3b, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x70, 0x62, 0xf8,
1056 0x01, 0x01, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75,
1057 0x64, 0x2e, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x4c, 0x69, 0x74, 0x65, 0x2e, 0x56, 0x31, 0xca,
1058 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x50,
1059 0x75, 0x62, 0x53, 0x75, 0x62, 0x4c, 0x69, 0x74, 0x65, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1d, 0x47,
1060 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x50, 0x75,
1061 0x62, 0x53, 0x75, 0x62, 0x4c, 0x69, 0x74, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72,
1062 0x6f, 0x74, 0x6f, 0x33,
1063 }
1064
1065 var (
1066 file_google_cloud_pubsublite_v1_subscriber_proto_rawDescOnce sync.Once
1067 file_google_cloud_pubsublite_v1_subscriber_proto_rawDescData = file_google_cloud_pubsublite_v1_subscriber_proto_rawDesc
1068 )
1069
1070 func file_google_cloud_pubsublite_v1_subscriber_proto_rawDescGZIP() []byte {
1071 file_google_cloud_pubsublite_v1_subscriber_proto_rawDescOnce.Do(func() {
1072 file_google_cloud_pubsublite_v1_subscriber_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_pubsublite_v1_subscriber_proto_rawDescData)
1073 })
1074 return file_google_cloud_pubsublite_v1_subscriber_proto_rawDescData
1075 }
1076
1077 var file_google_cloud_pubsublite_v1_subscriber_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
1078 var file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
1079 var file_google_cloud_pubsublite_v1_subscriber_proto_goTypes = []any{
1080 (SeekRequest_NamedTarget)(0), // 0: google.cloud.pubsublite.v1.SeekRequest.NamedTarget
1081 (*InitialSubscribeRequest)(nil), // 1: google.cloud.pubsublite.v1.InitialSubscribeRequest
1082 (*InitialSubscribeResponse)(nil), // 2: google.cloud.pubsublite.v1.InitialSubscribeResponse
1083 (*SeekRequest)(nil), // 3: google.cloud.pubsublite.v1.SeekRequest
1084 (*SeekResponse)(nil), // 4: google.cloud.pubsublite.v1.SeekResponse
1085 (*FlowControlRequest)(nil), // 5: google.cloud.pubsublite.v1.FlowControlRequest
1086 (*SubscribeRequest)(nil), // 6: google.cloud.pubsublite.v1.SubscribeRequest
1087 (*MessageResponse)(nil), // 7: google.cloud.pubsublite.v1.MessageResponse
1088 (*SubscribeResponse)(nil), // 8: google.cloud.pubsublite.v1.SubscribeResponse
1089 (*InitialPartitionAssignmentRequest)(nil), // 9: google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest
1090 (*PartitionAssignment)(nil), // 10: google.cloud.pubsublite.v1.PartitionAssignment
1091 (*PartitionAssignmentAck)(nil), // 11: google.cloud.pubsublite.v1.PartitionAssignmentAck
1092 (*PartitionAssignmentRequest)(nil), // 12: google.cloud.pubsublite.v1.PartitionAssignmentRequest
1093 (*Cursor)(nil), // 13: google.cloud.pubsublite.v1.Cursor
1094 (*SequencedMessage)(nil), // 14: google.cloud.pubsublite.v1.SequencedMessage
1095 }
1096 var file_google_cloud_pubsublite_v1_subscriber_proto_depIdxs = []int32{
1097 3, // 0: google.cloud.pubsublite.v1.InitialSubscribeRequest.initial_location:type_name -> google.cloud.pubsublite.v1.SeekRequest
1098 13, // 1: google.cloud.pubsublite.v1.InitialSubscribeResponse.cursor:type_name -> google.cloud.pubsublite.v1.Cursor
1099 0, // 2: google.cloud.pubsublite.v1.SeekRequest.named_target:type_name -> google.cloud.pubsublite.v1.SeekRequest.NamedTarget
1100 13, // 3: google.cloud.pubsublite.v1.SeekRequest.cursor:type_name -> google.cloud.pubsublite.v1.Cursor
1101 13, // 4: google.cloud.pubsublite.v1.SeekResponse.cursor:type_name -> google.cloud.pubsublite.v1.Cursor
1102 1, // 5: google.cloud.pubsublite.v1.SubscribeRequest.initial:type_name -> google.cloud.pubsublite.v1.InitialSubscribeRequest
1103 3, // 6: google.cloud.pubsublite.v1.SubscribeRequest.seek:type_name -> google.cloud.pubsublite.v1.SeekRequest
1104 5, // 7: google.cloud.pubsublite.v1.SubscribeRequest.flow_control:type_name -> google.cloud.pubsublite.v1.FlowControlRequest
1105 14, // 8: google.cloud.pubsublite.v1.MessageResponse.messages:type_name -> google.cloud.pubsublite.v1.SequencedMessage
1106 2, // 9: google.cloud.pubsublite.v1.SubscribeResponse.initial:type_name -> google.cloud.pubsublite.v1.InitialSubscribeResponse
1107 4, // 10: google.cloud.pubsublite.v1.SubscribeResponse.seek:type_name -> google.cloud.pubsublite.v1.SeekResponse
1108 7, // 11: google.cloud.pubsublite.v1.SubscribeResponse.messages:type_name -> google.cloud.pubsublite.v1.MessageResponse
1109 9, // 12: google.cloud.pubsublite.v1.PartitionAssignmentRequest.initial:type_name -> google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest
1110 11, // 13: google.cloud.pubsublite.v1.PartitionAssignmentRequest.ack:type_name -> google.cloud.pubsublite.v1.PartitionAssignmentAck
1111 6, // 14: google.cloud.pubsublite.v1.SubscriberService.Subscribe:input_type -> google.cloud.pubsublite.v1.SubscribeRequest
1112 12, // 15: google.cloud.pubsublite.v1.PartitionAssignmentService.AssignPartitions:input_type -> google.cloud.pubsublite.v1.PartitionAssignmentRequest
1113 8, // 16: google.cloud.pubsublite.v1.SubscriberService.Subscribe:output_type -> google.cloud.pubsublite.v1.SubscribeResponse
1114 10, // 17: google.cloud.pubsublite.v1.PartitionAssignmentService.AssignPartitions:output_type -> google.cloud.pubsublite.v1.PartitionAssignment
1115 16, // [16:18] is the sub-list for method output_type
1116 14, // [14:16] is the sub-list for method input_type
1117 14, // [14:14] is the sub-list for extension type_name
1118 14, // [14:14] is the sub-list for extension extendee
1119 0, // [0:14] is the sub-list for field type_name
1120 }
1121
1122 func init() { file_google_cloud_pubsublite_v1_subscriber_proto_init() }
1123 func file_google_cloud_pubsublite_v1_subscriber_proto_init() {
1124 if File_google_cloud_pubsublite_v1_subscriber_proto != nil {
1125 return
1126 }
1127 file_google_cloud_pubsublite_v1_common_proto_init()
1128 file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[2].OneofWrappers = []any{
1129 (*SeekRequest_NamedTarget_)(nil),
1130 (*SeekRequest_Cursor)(nil),
1131 }
1132 file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[5].OneofWrappers = []any{
1133 (*SubscribeRequest_Initial)(nil),
1134 (*SubscribeRequest_Seek)(nil),
1135 (*SubscribeRequest_FlowControl)(nil),
1136 }
1137 file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[7].OneofWrappers = []any{
1138 (*SubscribeResponse_Initial)(nil),
1139 (*SubscribeResponse_Seek)(nil),
1140 (*SubscribeResponse_Messages)(nil),
1141 }
1142 file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes[11].OneofWrappers = []any{
1143 (*PartitionAssignmentRequest_Initial)(nil),
1144 (*PartitionAssignmentRequest_Ack)(nil),
1145 }
1146 type x struct{}
1147 out := protoimpl.TypeBuilder{
1148 File: protoimpl.DescBuilder{
1149 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1150 RawDescriptor: file_google_cloud_pubsublite_v1_subscriber_proto_rawDesc,
1151 NumEnums: 1,
1152 NumMessages: 12,
1153 NumExtensions: 0,
1154 NumServices: 2,
1155 },
1156 GoTypes: file_google_cloud_pubsublite_v1_subscriber_proto_goTypes,
1157 DependencyIndexes: file_google_cloud_pubsublite_v1_subscriber_proto_depIdxs,
1158 EnumInfos: file_google_cloud_pubsublite_v1_subscriber_proto_enumTypes,
1159 MessageInfos: file_google_cloud_pubsublite_v1_subscriber_proto_msgTypes,
1160 }.Build()
1161 File_google_cloud_pubsublite_v1_subscriber_proto = out.File
1162 file_google_cloud_pubsublite_v1_subscriber_proto_rawDesc = nil
1163 file_google_cloud_pubsublite_v1_subscriber_proto_goTypes = nil
1164 file_google_cloud_pubsublite_v1_subscriber_proto_depIdxs = nil
1165 }
1166
1167 // Reference imports to suppress errors if they are not otherwise used.
1168 var _ context.Context
1169 var _ grpc.ClientConnInterface
1170
1171 // This is a compile-time assertion to ensure that this generated file
1172 // is compatible with the grpc package it is being compiled against.
1173 const _ = grpc.SupportPackageIsVersion6
1174
1175 // SubscriberServiceClient is the client API for SubscriberService service.
1176 //
1177 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
1178 type SubscriberServiceClient interface {
1179 // Establishes a stream with the server for receiving messages.
1180 Subscribe(ctx context.Context, opts ...grpc.CallOption) (SubscriberService_SubscribeClient, error)
1181 }
1182
1183 type subscriberServiceClient struct {
1184 cc grpc.ClientConnInterface
1185 }
1186
1187 func NewSubscriberServiceClient(cc grpc.ClientConnInterface) SubscriberServiceClient {
1188 return &subscriberServiceClient{cc}
1189 }
1190
1191 func (c *subscriberServiceClient) Subscribe(ctx context.Context, opts ...grpc.CallOption) (SubscriberService_SubscribeClient, error) {
1192 stream, err := c.cc.NewStream(ctx, &_SubscriberService_serviceDesc.Streams[0], "/google.cloud.pubsublite.v1.SubscriberService/Subscribe", opts...)
1193 if err != nil {
1194 return nil, err
1195 }
1196 x := &subscriberServiceSubscribeClient{stream}
1197 return x, nil
1198 }
1199
1200 type SubscriberService_SubscribeClient interface {
1201 Send(*SubscribeRequest) error
1202 Recv() (*SubscribeResponse, error)
1203 grpc.ClientStream
1204 }
1205
1206 type subscriberServiceSubscribeClient struct {
1207 grpc.ClientStream
1208 }
1209
1210 func (x *subscriberServiceSubscribeClient) Send(m *SubscribeRequest) error {
1211 return x.ClientStream.SendMsg(m)
1212 }
1213
1214 func (x *subscriberServiceSubscribeClient) Recv() (*SubscribeResponse, error) {
1215 m := new(SubscribeResponse)
1216 if err := x.ClientStream.RecvMsg(m); err != nil {
1217 return nil, err
1218 }
1219 return m, nil
1220 }
1221
1222 // SubscriberServiceServer is the server API for SubscriberService service.
1223 type SubscriberServiceServer interface {
1224 // Establishes a stream with the server for receiving messages.
1225 Subscribe(SubscriberService_SubscribeServer) error
1226 }
1227
1228 // UnimplementedSubscriberServiceServer can be embedded to have forward compatible implementations.
1229 type UnimplementedSubscriberServiceServer struct {
1230 }
1231
1232 func (*UnimplementedSubscriberServiceServer) Subscribe(SubscriberService_SubscribeServer) error {
1233 return status.Errorf(codes.Unimplemented, "method Subscribe not implemented")
1234 }
1235
1236 func RegisterSubscriberServiceServer(s *grpc.Server, srv SubscriberServiceServer) {
1237 s.RegisterService(&_SubscriberService_serviceDesc, srv)
1238 }
1239
1240 func _SubscriberService_Subscribe_Handler(srv interface{}, stream grpc.ServerStream) error {
1241 return srv.(SubscriberServiceServer).Subscribe(&subscriberServiceSubscribeServer{stream})
1242 }
1243
1244 type SubscriberService_SubscribeServer interface {
1245 Send(*SubscribeResponse) error
1246 Recv() (*SubscribeRequest, error)
1247 grpc.ServerStream
1248 }
1249
1250 type subscriberServiceSubscribeServer struct {
1251 grpc.ServerStream
1252 }
1253
1254 func (x *subscriberServiceSubscribeServer) Send(m *SubscribeResponse) error {
1255 return x.ServerStream.SendMsg(m)
1256 }
1257
1258 func (x *subscriberServiceSubscribeServer) Recv() (*SubscribeRequest, error) {
1259 m := new(SubscribeRequest)
1260 if err := x.ServerStream.RecvMsg(m); err != nil {
1261 return nil, err
1262 }
1263 return m, nil
1264 }
1265
1266 var _SubscriberService_serviceDesc = grpc.ServiceDesc{
1267 ServiceName: "google.cloud.pubsublite.v1.SubscriberService",
1268 HandlerType: (*SubscriberServiceServer)(nil),
1269 Methods: []grpc.MethodDesc{},
1270 Streams: []grpc.StreamDesc{
1271 {
1272 StreamName: "Subscribe",
1273 Handler: _SubscriberService_Subscribe_Handler,
1274 ServerStreams: true,
1275 ClientStreams: true,
1276 },
1277 },
1278 Metadata: "google/cloud/pubsublite/v1/subscriber.proto",
1279 }
1280
1281 // PartitionAssignmentServiceClient is the client API for PartitionAssignmentService service.
1282 //
1283 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
1284 type PartitionAssignmentServiceClient interface {
1285 // Assign partitions for this client to handle for the specified subscription.
1286 //
1287 // The client must send an InitialPartitionAssignmentRequest first.
1288 // The server will then send at most one unacknowledged PartitionAssignment
1289 // outstanding on the stream at a time.
1290 // The client should send a PartitionAssignmentAck after updating the
1291 // partitions it is connected to to reflect the new assignment.
1292 AssignPartitions(ctx context.Context, opts ...grpc.CallOption) (PartitionAssignmentService_AssignPartitionsClient, error)
1293 }
1294
1295 type partitionAssignmentServiceClient struct {
1296 cc grpc.ClientConnInterface
1297 }
1298
1299 func NewPartitionAssignmentServiceClient(cc grpc.ClientConnInterface) PartitionAssignmentServiceClient {
1300 return &partitionAssignmentServiceClient{cc}
1301 }
1302
1303 func (c *partitionAssignmentServiceClient) AssignPartitions(ctx context.Context, opts ...grpc.CallOption) (PartitionAssignmentService_AssignPartitionsClient, error) {
1304 stream, err := c.cc.NewStream(ctx, &_PartitionAssignmentService_serviceDesc.Streams[0], "/google.cloud.pubsublite.v1.PartitionAssignmentService/AssignPartitions", opts...)
1305 if err != nil {
1306 return nil, err
1307 }
1308 x := &partitionAssignmentServiceAssignPartitionsClient{stream}
1309 return x, nil
1310 }
1311
1312 type PartitionAssignmentService_AssignPartitionsClient interface {
1313 Send(*PartitionAssignmentRequest) error
1314 Recv() (*PartitionAssignment, error)
1315 grpc.ClientStream
1316 }
1317
1318 type partitionAssignmentServiceAssignPartitionsClient struct {
1319 grpc.ClientStream
1320 }
1321
1322 func (x *partitionAssignmentServiceAssignPartitionsClient) Send(m *PartitionAssignmentRequest) error {
1323 return x.ClientStream.SendMsg(m)
1324 }
1325
1326 func (x *partitionAssignmentServiceAssignPartitionsClient) Recv() (*PartitionAssignment, error) {
1327 m := new(PartitionAssignment)
1328 if err := x.ClientStream.RecvMsg(m); err != nil {
1329 return nil, err
1330 }
1331 return m, nil
1332 }
1333
1334 // PartitionAssignmentServiceServer is the server API for PartitionAssignmentService service.
1335 type PartitionAssignmentServiceServer interface {
1336 // Assign partitions for this client to handle for the specified subscription.
1337 //
1338 // The client must send an InitialPartitionAssignmentRequest first.
1339 // The server will then send at most one unacknowledged PartitionAssignment
1340 // outstanding on the stream at a time.
1341 // The client should send a PartitionAssignmentAck after updating the
1342 // partitions it is connected to to reflect the new assignment.
1343 AssignPartitions(PartitionAssignmentService_AssignPartitionsServer) error
1344 }
1345
1346 // UnimplementedPartitionAssignmentServiceServer can be embedded to have forward compatible implementations.
1347 type UnimplementedPartitionAssignmentServiceServer struct {
1348 }
1349
1350 func (*UnimplementedPartitionAssignmentServiceServer) AssignPartitions(PartitionAssignmentService_AssignPartitionsServer) error {
1351 return status.Errorf(codes.Unimplemented, "method AssignPartitions not implemented")
1352 }
1353
1354 func RegisterPartitionAssignmentServiceServer(s *grpc.Server, srv PartitionAssignmentServiceServer) {
1355 s.RegisterService(&_PartitionAssignmentService_serviceDesc, srv)
1356 }
1357
1358 func _PartitionAssignmentService_AssignPartitions_Handler(srv interface{}, stream grpc.ServerStream) error {
1359 return srv.(PartitionAssignmentServiceServer).AssignPartitions(&partitionAssignmentServiceAssignPartitionsServer{stream})
1360 }
1361
1362 type PartitionAssignmentService_AssignPartitionsServer interface {
1363 Send(*PartitionAssignment) error
1364 Recv() (*PartitionAssignmentRequest, error)
1365 grpc.ServerStream
1366 }
1367
1368 type partitionAssignmentServiceAssignPartitionsServer struct {
1369 grpc.ServerStream
1370 }
1371
1372 func (x *partitionAssignmentServiceAssignPartitionsServer) Send(m *PartitionAssignment) error {
1373 return x.ServerStream.SendMsg(m)
1374 }
1375
1376 func (x *partitionAssignmentServiceAssignPartitionsServer) Recv() (*PartitionAssignmentRequest, error) {
1377 m := new(PartitionAssignmentRequest)
1378 if err := x.ServerStream.RecvMsg(m); err != nil {
1379 return nil, err
1380 }
1381 return m, nil
1382 }
1383
1384 var _PartitionAssignmentService_serviceDesc = grpc.ServiceDesc{
1385 ServiceName: "google.cloud.pubsublite.v1.PartitionAssignmentService",
1386 HandlerType: (*PartitionAssignmentServiceServer)(nil),
1387 Methods: []grpc.MethodDesc{},
1388 Streams: []grpc.StreamDesc{
1389 {
1390 StreamName: "AssignPartitions",
1391 Handler: _PartitionAssignmentService_AssignPartitions_Handler,
1392 ServerStreams: true,
1393 ClientStreams: true,
1394 },
1395 },
1396 Metadata: "google/cloud/pubsublite/v1/subscriber.proto",
1397 }