/
common.pb.go
1425 lines (1272 loc) · 57.4 KB
/
common.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.12.2
// source: google/cloud/pubsublite/v1/common.proto
package pubsublite
import (
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// When this subscription should send messages to subscribers relative to
// messages persistence in storage. For details, see [Creating Lite
// subscriptions](https://cloud.google.com/pubsub/lite/docs/subscriptions#creating_lite_subscriptions).
type Subscription_DeliveryConfig_DeliveryRequirement int32
const (
// Default value. This value is unused.
Subscription_DeliveryConfig_DELIVERY_REQUIREMENT_UNSPECIFIED Subscription_DeliveryConfig_DeliveryRequirement = 0
// The server does not wait for a published message to be successfully
// written to storage before delivering it to subscribers.
Subscription_DeliveryConfig_DELIVER_IMMEDIATELY Subscription_DeliveryConfig_DeliveryRequirement = 1
// The server will not deliver a published message to subscribers until
// the message has been successfully written to storage. This will result
// in higher end-to-end latency, but consistent delivery.
Subscription_DeliveryConfig_DELIVER_AFTER_STORED Subscription_DeliveryConfig_DeliveryRequirement = 2
)
// Enum value maps for Subscription_DeliveryConfig_DeliveryRequirement.
var (
Subscription_DeliveryConfig_DeliveryRequirement_name = map[int32]string{
0: "DELIVERY_REQUIREMENT_UNSPECIFIED",
1: "DELIVER_IMMEDIATELY",
2: "DELIVER_AFTER_STORED",
}
Subscription_DeliveryConfig_DeliveryRequirement_value = map[string]int32{
"DELIVERY_REQUIREMENT_UNSPECIFIED": 0,
"DELIVER_IMMEDIATELY": 1,
"DELIVER_AFTER_STORED": 2,
}
)
func (x Subscription_DeliveryConfig_DeliveryRequirement) Enum() *Subscription_DeliveryConfig_DeliveryRequirement {
p := new(Subscription_DeliveryConfig_DeliveryRequirement)
*p = x
return p
}
func (x Subscription_DeliveryConfig_DeliveryRequirement) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Subscription_DeliveryConfig_DeliveryRequirement) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_pubsublite_v1_common_proto_enumTypes[0].Descriptor()
}
func (Subscription_DeliveryConfig_DeliveryRequirement) Type() protoreflect.EnumType {
return &file_google_cloud_pubsublite_v1_common_proto_enumTypes[0]
}
func (x Subscription_DeliveryConfig_DeliveryRequirement) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Subscription_DeliveryConfig_DeliveryRequirement.Descriptor instead.
func (Subscription_DeliveryConfig_DeliveryRequirement) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_pubsublite_v1_common_proto_rawDescGZIP(), []int{6, 0, 0}
}
// The values associated with a key of an attribute.
type AttributeValues struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The list of values associated with a key.
Values [][]byte `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
}
func (x *AttributeValues) Reset() {
*x = AttributeValues{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AttributeValues) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AttributeValues) ProtoMessage() {}
func (x *AttributeValues) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AttributeValues.ProtoReflect.Descriptor instead.
func (*AttributeValues) Descriptor() ([]byte, []int) {
return file_google_cloud_pubsublite_v1_common_proto_rawDescGZIP(), []int{0}
}
func (x *AttributeValues) GetValues() [][]byte {
if x != nil {
return x.Values
}
return nil
}
// A message that is published by publishers and delivered to subscribers.
type PubSubMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The key used for routing messages to partitions or for compaction (e.g.,
// keep the last N messages per key). If the key is empty, the message is
// routed to an arbitrary partition.
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// The payload of the message.
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// Optional attributes that can be used for message metadata/headers.
Attributes map[string]*AttributeValues `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// An optional, user-specified event time.
EventTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"`
}
func (x *PubSubMessage) Reset() {
*x = PubSubMessage{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PubSubMessage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PubSubMessage) ProtoMessage() {}
func (x *PubSubMessage) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PubSubMessage.ProtoReflect.Descriptor instead.
func (*PubSubMessage) Descriptor() ([]byte, []int) {
return file_google_cloud_pubsublite_v1_common_proto_rawDescGZIP(), []int{1}
}
func (x *PubSubMessage) GetKey() []byte {
if x != nil {
return x.Key
}
return nil
}
func (x *PubSubMessage) GetData() []byte {
if x != nil {
return x.Data
}
return nil
}
func (x *PubSubMessage) GetAttributes() map[string]*AttributeValues {
if x != nil {
return x.Attributes
}
return nil
}
func (x *PubSubMessage) GetEventTime() *timestamppb.Timestamp {
if x != nil {
return x.EventTime
}
return nil
}
// A cursor that describes the position of a message within a topic partition.
type Cursor struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The offset of a message within a topic partition. Must be greater than or
// equal 0.
Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
}
func (x *Cursor) Reset() {
*x = Cursor{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Cursor) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Cursor) ProtoMessage() {}
func (x *Cursor) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Cursor.ProtoReflect.Descriptor instead.
func (*Cursor) Descriptor() ([]byte, []int) {
return file_google_cloud_pubsublite_v1_common_proto_rawDescGZIP(), []int{2}
}
func (x *Cursor) GetOffset() int64 {
if x != nil {
return x.Offset
}
return 0
}
// A message that has been stored and sequenced by the Pub/Sub Lite system.
type SequencedMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The position of a message within the partition where it is stored.
Cursor *Cursor `protobuf:"bytes,1,opt,name=cursor,proto3" json:"cursor,omitempty"`
// The time when the message was received by the server when it was first
// published.
PublishTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=publish_time,json=publishTime,proto3" json:"publish_time,omitempty"`
// The user message.
Message *PubSubMessage `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
// The size in bytes of this message for flow control and quota purposes.
SizeBytes int64 `protobuf:"varint,4,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
}
func (x *SequencedMessage) Reset() {
*x = SequencedMessage{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SequencedMessage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SequencedMessage) ProtoMessage() {}
func (x *SequencedMessage) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SequencedMessage.ProtoReflect.Descriptor instead.
func (*SequencedMessage) Descriptor() ([]byte, []int) {
return file_google_cloud_pubsublite_v1_common_proto_rawDescGZIP(), []int{3}
}
func (x *SequencedMessage) GetCursor() *Cursor {
if x != nil {
return x.Cursor
}
return nil
}
func (x *SequencedMessage) GetPublishTime() *timestamppb.Timestamp {
if x != nil {
return x.PublishTime
}
return nil
}
func (x *SequencedMessage) GetMessage() *PubSubMessage {
if x != nil {
return x.Message
}
return nil
}
func (x *SequencedMessage) GetSizeBytes() int64 {
if x != nil {
return x.SizeBytes
}
return 0
}
// Metadata about a reservation resource.
type Reservation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the reservation.
// Structured like:
// projects/{project_number}/locations/{location}/reservations/{reservation_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The reserved throughput capacity. Every unit of throughput capacity is
// equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed
// messages.
//
// Any topics which are declared as using capacity from a Reservation will
// consume resources from this reservation instead of being charged
// individually.
ThroughputCapacity int64 `protobuf:"varint,2,opt,name=throughput_capacity,json=throughputCapacity,proto3" json:"throughput_capacity,omitempty"`
}
func (x *Reservation) Reset() {
*x = Reservation{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Reservation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Reservation) ProtoMessage() {}
func (x *Reservation) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Reservation.ProtoReflect.Descriptor instead.
func (*Reservation) Descriptor() ([]byte, []int) {
return file_google_cloud_pubsublite_v1_common_proto_rawDescGZIP(), []int{4}
}
func (x *Reservation) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Reservation) GetThroughputCapacity() int64 {
if x != nil {
return x.ThroughputCapacity
}
return 0
}
// Metadata about a topic resource.
type Topic struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the topic.
// Structured like:
// projects/{project_number}/locations/{location}/topics/{topic_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The settings for this topic's partitions.
PartitionConfig *Topic_PartitionConfig `protobuf:"bytes,2,opt,name=partition_config,json=partitionConfig,proto3" json:"partition_config,omitempty"`
// The settings for this topic's message retention.
RetentionConfig *Topic_RetentionConfig `protobuf:"bytes,3,opt,name=retention_config,json=retentionConfig,proto3" json:"retention_config,omitempty"`
// The settings for this topic's Reservation usage.
ReservationConfig *Topic_ReservationConfig `protobuf:"bytes,4,opt,name=reservation_config,json=reservationConfig,proto3" json:"reservation_config,omitempty"`
}
func (x *Topic) Reset() {
*x = Topic{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Topic) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Topic) ProtoMessage() {}
func (x *Topic) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Topic.ProtoReflect.Descriptor instead.
func (*Topic) Descriptor() ([]byte, []int) {
return file_google_cloud_pubsublite_v1_common_proto_rawDescGZIP(), []int{5}
}
func (x *Topic) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Topic) GetPartitionConfig() *Topic_PartitionConfig {
if x != nil {
return x.PartitionConfig
}
return nil
}
func (x *Topic) GetRetentionConfig() *Topic_RetentionConfig {
if x != nil {
return x.RetentionConfig
}
return nil
}
func (x *Topic) GetReservationConfig() *Topic_ReservationConfig {
if x != nil {
return x.ReservationConfig
}
return nil
}
// Metadata about a subscription resource.
type Subscription struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the subscription.
// Structured like:
// projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The name of the topic this subscription is attached to.
// Structured like:
// projects/{project_number}/locations/{location}/topics/{topic_id}
Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
// The settings for this subscription's message delivery.
DeliveryConfig *Subscription_DeliveryConfig `protobuf:"bytes,3,opt,name=delivery_config,json=deliveryConfig,proto3" json:"delivery_config,omitempty"`
}
func (x *Subscription) Reset() {
*x = Subscription{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Subscription) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Subscription) ProtoMessage() {}
func (x *Subscription) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Subscription.ProtoReflect.Descriptor instead.
func (*Subscription) Descriptor() ([]byte, []int) {
return file_google_cloud_pubsublite_v1_common_proto_rawDescGZIP(), []int{6}
}
func (x *Subscription) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Subscription) GetTopic() string {
if x != nil {
return x.Topic
}
return ""
}
func (x *Subscription) GetDeliveryConfig() *Subscription_DeliveryConfig {
if x != nil {
return x.DeliveryConfig
}
return nil
}
// A target publish or event time. Can be used for seeking to or retrieving the
// corresponding cursor.
type TimeTarget struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The type of message time to query.
//
// Types that are assignable to Time:
// *TimeTarget_PublishTime
// *TimeTarget_EventTime
Time isTimeTarget_Time `protobuf_oneof:"time"`
}
func (x *TimeTarget) Reset() {
*x = TimeTarget{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TimeTarget) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TimeTarget) ProtoMessage() {}
func (x *TimeTarget) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TimeTarget.ProtoReflect.Descriptor instead.
func (*TimeTarget) Descriptor() ([]byte, []int) {
return file_google_cloud_pubsublite_v1_common_proto_rawDescGZIP(), []int{7}
}
func (m *TimeTarget) GetTime() isTimeTarget_Time {
if m != nil {
return m.Time
}
return nil
}
func (x *TimeTarget) GetPublishTime() *timestamppb.Timestamp {
if x, ok := x.GetTime().(*TimeTarget_PublishTime); ok {
return x.PublishTime
}
return nil
}
func (x *TimeTarget) GetEventTime() *timestamppb.Timestamp {
if x, ok := x.GetTime().(*TimeTarget_EventTime); ok {
return x.EventTime
}
return nil
}
type isTimeTarget_Time interface {
isTimeTarget_Time()
}
type TimeTarget_PublishTime struct {
// Request the cursor of the first message with publish time greater than or
// equal to `publish_time`. All messages thereafter are guaranteed to have
// publish times >= `publish_time`.
PublishTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=publish_time,json=publishTime,proto3,oneof"`
}
type TimeTarget_EventTime struct {
// Request the cursor of the first message with event time greater than or
// equal to `event_time`. If messages are missing an event time, the publish
// time is used as a fallback. As event times are user supplied, subsequent
// messages may have event times less than `event_time` and should be
// filtered by the client, if necessary.
EventTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=event_time,json=eventTime,proto3,oneof"`
}
func (*TimeTarget_PublishTime) isTimeTarget_Time() {}
func (*TimeTarget_EventTime) isTimeTarget_Time() {}
// The settings for a topic's partitions.
type Topic_PartitionConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The number of partitions in the topic. Must be at least 1.
//
// Once a topic has been created the number of partitions can be increased
// but not decreased. Message ordering is not guaranteed across a topic
// resize. For more information see
// https://cloud.google.com/pubsub/lite/docs/topics#scaling_capacity
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
// The throughput dimension of this topic.
//
// Types that are assignable to Dimension:
// *Topic_PartitionConfig_Scale
// *Topic_PartitionConfig_Capacity_
Dimension isTopic_PartitionConfig_Dimension `protobuf_oneof:"dimension"`
}
func (x *Topic_PartitionConfig) Reset() {
*x = Topic_PartitionConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Topic_PartitionConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Topic_PartitionConfig) ProtoMessage() {}
func (x *Topic_PartitionConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Topic_PartitionConfig.ProtoReflect.Descriptor instead.
func (*Topic_PartitionConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_pubsublite_v1_common_proto_rawDescGZIP(), []int{5, 0}
}
func (x *Topic_PartitionConfig) GetCount() int64 {
if x != nil {
return x.Count
}
return 0
}
func (m *Topic_PartitionConfig) GetDimension() isTopic_PartitionConfig_Dimension {
if m != nil {
return m.Dimension
}
return nil
}
// Deprecated: Do not use.
func (x *Topic_PartitionConfig) GetScale() int32 {
if x, ok := x.GetDimension().(*Topic_PartitionConfig_Scale); ok {
return x.Scale
}
return 0
}
func (x *Topic_PartitionConfig) GetCapacity() *Topic_PartitionConfig_Capacity {
if x, ok := x.GetDimension().(*Topic_PartitionConfig_Capacity_); ok {
return x.Capacity
}
return nil
}
type isTopic_PartitionConfig_Dimension interface {
isTopic_PartitionConfig_Dimension()
}
type Topic_PartitionConfig_Scale struct {
// DEPRECATED: Use capacity instead which can express a superset of
// configurations.
//
// Every partition in the topic is allocated throughput equivalent to
// `scale` times the standard partition throughput (4 MiB/s). This is also
// reflected in the cost of this topic; a topic with `scale` of 2 and
// count of 10 is charged for 20 partitions. This value must be in the
// range [1,4].
//
// Deprecated: Do not use.
Scale int32 `protobuf:"varint,2,opt,name=scale,proto3,oneof"`
}
type Topic_PartitionConfig_Capacity_ struct {
// The capacity configuration.
Capacity *Topic_PartitionConfig_Capacity `protobuf:"bytes,3,opt,name=capacity,proto3,oneof"`
}
func (*Topic_PartitionConfig_Scale) isTopic_PartitionConfig_Dimension() {}
func (*Topic_PartitionConfig_Capacity_) isTopic_PartitionConfig_Dimension() {}
// The settings for a topic's message retention.
type Topic_RetentionConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The provisioned storage, in bytes, per partition. If the number of bytes
// stored in any of the topic's partitions grows beyond this value, older
// messages will be dropped to make room for newer ones, regardless of the
// value of `period`.
PerPartitionBytes int64 `protobuf:"varint,1,opt,name=per_partition_bytes,json=perPartitionBytes,proto3" json:"per_partition_bytes,omitempty"`
// How long a published message is retained. If unset, messages will be
// retained as long as the bytes retained for each partition is below
// `per_partition_bytes`.
Period *durationpb.Duration `protobuf:"bytes,2,opt,name=period,proto3" json:"period,omitempty"`
}
func (x *Topic_RetentionConfig) Reset() {
*x = Topic_RetentionConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Topic_RetentionConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Topic_RetentionConfig) ProtoMessage() {}
func (x *Topic_RetentionConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Topic_RetentionConfig.ProtoReflect.Descriptor instead.
func (*Topic_RetentionConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_pubsublite_v1_common_proto_rawDescGZIP(), []int{5, 1}
}
func (x *Topic_RetentionConfig) GetPerPartitionBytes() int64 {
if x != nil {
return x.PerPartitionBytes
}
return 0
}
func (x *Topic_RetentionConfig) GetPeriod() *durationpb.Duration {
if x != nil {
return x.Period
}
return nil
}
// The settings for this topic's Reservation usage.
type Topic_ReservationConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The Reservation to use for this topic's throughput capacity.
// Structured like:
// projects/{project_number}/locations/{location}/reservations/{reservation_id}
ThroughputReservation string `protobuf:"bytes,1,opt,name=throughput_reservation,json=throughputReservation,proto3" json:"throughput_reservation,omitempty"`
}
func (x *Topic_ReservationConfig) Reset() {
*x = Topic_ReservationConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Topic_ReservationConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Topic_ReservationConfig) ProtoMessage() {}
func (x *Topic_ReservationConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Topic_ReservationConfig.ProtoReflect.Descriptor instead.
func (*Topic_ReservationConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_pubsublite_v1_common_proto_rawDescGZIP(), []int{5, 2}
}
func (x *Topic_ReservationConfig) GetThroughputReservation() string {
if x != nil {
return x.ThroughputReservation
}
return ""
}
// The throughput capacity configuration for each partition.
type Topic_PartitionConfig_Capacity struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Publish throughput capacity per partition in MiB/s.
// Must be >= 4 and <= 16.
PublishMibPerSec int32 `protobuf:"varint,1,opt,name=publish_mib_per_sec,json=publishMibPerSec,proto3" json:"publish_mib_per_sec,omitempty"`
// Subscribe throughput capacity per partition in MiB/s.
// Must be >= 4 and <= 32.
SubscribeMibPerSec int32 `protobuf:"varint,2,opt,name=subscribe_mib_per_sec,json=subscribeMibPerSec,proto3" json:"subscribe_mib_per_sec,omitempty"`
}
func (x *Topic_PartitionConfig_Capacity) Reset() {
*x = Topic_PartitionConfig_Capacity{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Topic_PartitionConfig_Capacity) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Topic_PartitionConfig_Capacity) ProtoMessage() {}
func (x *Topic_PartitionConfig_Capacity) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[12]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Topic_PartitionConfig_Capacity.ProtoReflect.Descriptor instead.
func (*Topic_PartitionConfig_Capacity) Descriptor() ([]byte, []int) {
return file_google_cloud_pubsublite_v1_common_proto_rawDescGZIP(), []int{5, 0, 0}
}
func (x *Topic_PartitionConfig_Capacity) GetPublishMibPerSec() int32 {
if x != nil {
return x.PublishMibPerSec
}
return 0
}
func (x *Topic_PartitionConfig_Capacity) GetSubscribeMibPerSec() int32 {
if x != nil {
return x.SubscribeMibPerSec
}
return 0
}
// The settings for a subscription's message delivery.
type Subscription_DeliveryConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The DeliveryRequirement for this subscription.
DeliveryRequirement Subscription_DeliveryConfig_DeliveryRequirement `protobuf:"varint,3,opt,name=delivery_requirement,json=deliveryRequirement,proto3,enum=google.cloud.pubsublite.v1.Subscription_DeliveryConfig_DeliveryRequirement" json:"delivery_requirement,omitempty"`
}
func (x *Subscription_DeliveryConfig) Reset() {
*x = Subscription_DeliveryConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Subscription_DeliveryConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Subscription_DeliveryConfig) ProtoMessage() {}
func (x *Subscription_DeliveryConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_pubsublite_v1_common_proto_msgTypes[13]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Subscription_DeliveryConfig.ProtoReflect.Descriptor instead.
func (*Subscription_DeliveryConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_pubsublite_v1_common_proto_rawDescGZIP(), []int{6, 0}
}
func (x *Subscription_DeliveryConfig) GetDeliveryRequirement() Subscription_DeliveryConfig_DeliveryRequirement {
if x != nil {
return x.DeliveryRequirement
}
return Subscription_DeliveryConfig_DELIVERY_REQUIREMENT_UNSPECIFIED
}
var File_google_cloud_pubsublite_v1_common_proto protoreflect.FileDescriptor
var file_google_cloud_pubsublite_v1_common_proto_rawDesc = []byte{
0x0a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x70,
0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d,
0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69,
0x74, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,