Debian Codegraph @

pubsublite/apiv1/pubsublitepb/topic_stats.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/topic_stats.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 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
32 reflect "reflect"
33 sync "sync"
34 )
35
36 const (
37 // Verify that this generated code is sufficiently up-to-date.
38 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
39 // Verify that runtime/protoimpl is sufficiently up-to-date.
40 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
41 )
42
43 // Compute statistics about a range of messages in a given topic and partition.
44 type ComputeMessageStatsRequest struct {
45 state protoimpl.MessageState
46 sizeCache protoimpl.SizeCache
47 unknownFields protoimpl.UnknownFields
48
49 // Required. The topic for which we should compute message stats.
50 Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
51 // Required. The partition for which we should compute message stats.
52 Partition int64 `protobuf:"varint,2,opt,name=partition,proto3" json:"partition,omitempty"`
53 // The inclusive start of the range.
54 StartCursor *Cursor `protobuf:"bytes,3,opt,name=start_cursor,json=startCursor,proto3" json:"start_cursor,omitempty"`
55 // The exclusive end of the range. The range is empty if end_cursor <=
56 // start_cursor. Specifying a start_cursor before the first message and an
57 // end_cursor after the last message will retrieve all messages.
58 EndCursor *Cursor `protobuf:"bytes,4,opt,name=end_cursor,json=endCursor,proto3" json:"end_cursor,omitempty"`
59 }
60
61 func (x *ComputeMessageStatsRequest) Reset() {
62 *x = ComputeMessageStatsRequest{}
63 mi := &file_google_cloud_pubsublite_v1_topic_stats_proto_msgTypes[0]
64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
65 ms.StoreMessageInfo(mi)
66 }
67
68 func (x *ComputeMessageStatsRequest) String() string {
69 return protoimpl.X.MessageStringOf(x)
70 }
71
72 func (*ComputeMessageStatsRequest) ProtoMessage() {}
73
74 func (x *ComputeMessageStatsRequest) ProtoReflect() protoreflect.Message {
75 mi := &file_google_cloud_pubsublite_v1_topic_stats_proto_msgTypes[0]
76 if x != nil {
77 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
78 if ms.LoadMessageInfo() == nil {
79 ms.StoreMessageInfo(mi)
80 }
81 return ms
82 }
83 return mi.MessageOf(x)
84 }
85
86 // Deprecated: Use ComputeMessageStatsRequest.ProtoReflect.Descriptor instead.
87 func (*ComputeMessageStatsRequest) Descriptor() ([]byte, []int) {
88 return file_google_cloud_pubsublite_v1_topic_stats_proto_rawDescGZIP(), []int{0}
89 }
90
91 func (x *ComputeMessageStatsRequest) GetTopic() string {
92 if x != nil {
93 return x.Topic
94 }
95 return ""
96 }
97
98 func (x *ComputeMessageStatsRequest) GetPartition() int64 {
99 if x != nil {
100 return x.Partition
101 }
102 return 0
103 }
104
105 func (x *ComputeMessageStatsRequest) GetStartCursor() *Cursor {
106 if x != nil {
107 return x.StartCursor
108 }
109 return nil
110 }
111
112 func (x *ComputeMessageStatsRequest) GetEndCursor() *Cursor {
113 if x != nil {
114 return x.EndCursor
115 }
116 return nil
117 }
118
119 // Response containing stats for messages in the requested topic and partition.
120 type ComputeMessageStatsResponse struct {
121 state protoimpl.MessageState
122 sizeCache protoimpl.SizeCache
123 unknownFields protoimpl.UnknownFields
124
125 // The count of messages.
126 MessageCount int64 `protobuf:"varint,1,opt,name=message_count,json=messageCount,proto3" json:"message_count,omitempty"`
127 // The number of quota bytes accounted to these messages.
128 MessageBytes int64 `protobuf:"varint,2,opt,name=message_bytes,json=messageBytes,proto3" json:"message_bytes,omitempty"`
129 // The minimum publish timestamp across these messages. Note that publish
130 // timestamps within a partition are not guaranteed to be non-decreasing. The
131 // timestamp will be unset if there are no messages.
132 MinimumPublishTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=minimum_publish_time,json=minimumPublishTime,proto3" json:"minimum_publish_time,omitempty"`
133 // The minimum event timestamp across these messages. For the purposes of this
134 // computation, if a message does not have an event time, we use the publish
135 // time. The timestamp will be unset if there are no messages.
136 MinimumEventTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=minimum_event_time,json=minimumEventTime,proto3" json:"minimum_event_time,omitempty"`
137 }
138
139 func (x *ComputeMessageStatsResponse) Reset() {
140 *x = ComputeMessageStatsResponse{}
141 mi := &file_google_cloud_pubsublite_v1_topic_stats_proto_msgTypes[1]
142 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
143 ms.StoreMessageInfo(mi)
144 }
145
146 func (x *ComputeMessageStatsResponse) String() string {
147 return protoimpl.X.MessageStringOf(x)
148 }
149
150 func (*ComputeMessageStatsResponse) ProtoMessage() {}
151
152 func (x *ComputeMessageStatsResponse) ProtoReflect() protoreflect.Message {
153 mi := &file_google_cloud_pubsublite_v1_topic_stats_proto_msgTypes[1]
154 if x != nil {
155 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
156 if ms.LoadMessageInfo() == nil {
157 ms.StoreMessageInfo(mi)
158 }
159 return ms
160 }
161 return mi.MessageOf(x)
162 }
163
164 // Deprecated: Use ComputeMessageStatsResponse.ProtoReflect.Descriptor instead.
165 func (*ComputeMessageStatsResponse) Descriptor() ([]byte, []int) {
166 return file_google_cloud_pubsublite_v1_topic_stats_proto_rawDescGZIP(), []int{1}
167 }
168
169 func (x *ComputeMessageStatsResponse) GetMessageCount() int64 {
170 if x != nil {
171 return x.MessageCount
172 }
173 return 0
174 }
175
176 func (x *ComputeMessageStatsResponse) GetMessageBytes() int64 {
177 if x != nil {
178 return x.MessageBytes
179 }
180 return 0
181 }
182
183 func (x *ComputeMessageStatsResponse) GetMinimumPublishTime() *timestamppb.Timestamp {
184 if x != nil {
185 return x.MinimumPublishTime
186 }
187 return nil
188 }
189
190 func (x *ComputeMessageStatsResponse) GetMinimumEventTime() *timestamppb.Timestamp {
191 if x != nil {
192 return x.MinimumEventTime
193 }
194 return nil
195 }
196
197 // Compute the current head cursor for a partition.
198 type ComputeHeadCursorRequest struct {
199 state protoimpl.MessageState
200 sizeCache protoimpl.SizeCache
201 unknownFields protoimpl.UnknownFields
202
203 // Required. The topic for which we should compute the head cursor.
204 Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
205 // Required. The partition for which we should compute the head cursor.
206 Partition int64 `protobuf:"varint,2,opt,name=partition,proto3" json:"partition,omitempty"`
207 }
208
209 func (x *ComputeHeadCursorRequest) Reset() {
210 *x = ComputeHeadCursorRequest{}
211 mi := &file_google_cloud_pubsublite_v1_topic_stats_proto_msgTypes[2]
212 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
213 ms.StoreMessageInfo(mi)
214 }
215
216 func (x *ComputeHeadCursorRequest) String() string {
217 return protoimpl.X.MessageStringOf(x)
218 }
219
220 func (*ComputeHeadCursorRequest) ProtoMessage() {}
221
222 func (x *ComputeHeadCursorRequest) ProtoReflect() protoreflect.Message {
223 mi := &file_google_cloud_pubsublite_v1_topic_stats_proto_msgTypes[2]
224 if x != nil {
225 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
226 if ms.LoadMessageInfo() == nil {
227 ms.StoreMessageInfo(mi)
228 }
229 return ms
230 }
231 return mi.MessageOf(x)
232 }
233
234 // Deprecated: Use ComputeHeadCursorRequest.ProtoReflect.Descriptor instead.
235 func (*ComputeHeadCursorRequest) Descriptor() ([]byte, []int) {
236 return file_google_cloud_pubsublite_v1_topic_stats_proto_rawDescGZIP(), []int{2}
237 }
238
239 func (x *ComputeHeadCursorRequest) GetTopic() string {
240 if x != nil {
241 return x.Topic
242 }
243 return ""
244 }
245
246 func (x *ComputeHeadCursorRequest) GetPartition() int64 {
247 if x != nil {
248 return x.Partition
249 }
250 return 0
251 }
252
253 // Response containing the head cursor for the requested topic and partition.
254 type ComputeHeadCursorResponse struct {
255 state protoimpl.MessageState
256 sizeCache protoimpl.SizeCache
257 unknownFields protoimpl.UnknownFields
258
259 // The head cursor.
260 HeadCursor *Cursor `protobuf:"bytes,1,opt,name=head_cursor,json=headCursor,proto3" json:"head_cursor,omitempty"`
261 }
262
263 func (x *ComputeHeadCursorResponse) Reset() {
264 *x = ComputeHeadCursorResponse{}
265 mi := &file_google_cloud_pubsublite_v1_topic_stats_proto_msgTypes[3]
266 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
267 ms.StoreMessageInfo(mi)
268 }
269
270 func (x *ComputeHeadCursorResponse) String() string {
271 return protoimpl.X.MessageStringOf(x)
272 }
273
274 func (*ComputeHeadCursorResponse) ProtoMessage() {}
275
276 func (x *ComputeHeadCursorResponse) ProtoReflect() protoreflect.Message {
277 mi := &file_google_cloud_pubsublite_v1_topic_stats_proto_msgTypes[3]
278 if x != nil {
279 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
280 if ms.LoadMessageInfo() == nil {
281 ms.StoreMessageInfo(mi)
282 }
283 return ms
284 }
285 return mi.MessageOf(x)
286 }
287
288 // Deprecated: Use ComputeHeadCursorResponse.ProtoReflect.Descriptor instead.
289 func (*ComputeHeadCursorResponse) Descriptor() ([]byte, []int) {
290 return file_google_cloud_pubsublite_v1_topic_stats_proto_rawDescGZIP(), []int{3}
291 }
292
293 func (x *ComputeHeadCursorResponse) GetHeadCursor() *Cursor {
294 if x != nil {
295 return x.HeadCursor
296 }
297 return nil
298 }
299
300 // Compute the corresponding cursor for a publish or event time in a topic
301 // partition.
302 type ComputeTimeCursorRequest struct {
303 state protoimpl.MessageState
304 sizeCache protoimpl.SizeCache
305 unknownFields protoimpl.UnknownFields
306
307 // Required. The topic for which we should compute the cursor.
308 Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
309 // Required. The partition for which we should compute the cursor.
310 Partition int64 `protobuf:"varint,2,opt,name=partition,proto3" json:"partition,omitempty"`
311 // Required. The target publish or event time. Specifying a future time will
312 // return an unset cursor.
313 Target *TimeTarget `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
314 }
315
316 func (x *ComputeTimeCursorRequest) Reset() {
317 *x = ComputeTimeCursorRequest{}
318 mi := &file_google_cloud_pubsublite_v1_topic_stats_proto_msgTypes[4]
319 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
320 ms.StoreMessageInfo(mi)
321 }
322
323 func (x *ComputeTimeCursorRequest) String() string {
324 return protoimpl.X.MessageStringOf(x)
325 }
326
327 func (*ComputeTimeCursorRequest) ProtoMessage() {}
328
329 func (x *ComputeTimeCursorRequest) ProtoReflect() protoreflect.Message {
330 mi := &file_google_cloud_pubsublite_v1_topic_stats_proto_msgTypes[4]
331 if x != nil {
332 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
333 if ms.LoadMessageInfo() == nil {
334 ms.StoreMessageInfo(mi)
335 }
336 return ms
337 }
338 return mi.MessageOf(x)
339 }
340
341 // Deprecated: Use ComputeTimeCursorRequest.ProtoReflect.Descriptor instead.
342 func (*ComputeTimeCursorRequest) Descriptor() ([]byte, []int) {
343 return file_google_cloud_pubsublite_v1_topic_stats_proto_rawDescGZIP(), []int{4}
344 }
345
346 func (x *ComputeTimeCursorRequest) GetTopic() string {
347 if x != nil {
348 return x.Topic
349 }
350 return ""
351 }
352
353 func (x *ComputeTimeCursorRequest) GetPartition() int64 {
354 if x != nil {
355 return x.Partition
356 }
357 return 0
358 }
359
360 func (x *ComputeTimeCursorRequest) GetTarget() *TimeTarget {
361 if x != nil {
362 return x.Target
363 }
364 return nil
365 }
366
367 // Response containing the cursor corresponding to a publish or event time in a
368 // topic partition.
369 type ComputeTimeCursorResponse struct {
370 state protoimpl.MessageState
371 sizeCache protoimpl.SizeCache
372 unknownFields protoimpl.UnknownFields
373
374 // If present, the cursor references the first message with time greater than
375 // or equal to the specified target time. If such a message cannot be found,
376 // the cursor will be unset (i.e. `cursor` is not present).
377 Cursor *Cursor `protobuf:"bytes,1,opt,name=cursor,proto3" json:"cursor,omitempty"`
378 }
379
380 func (x *ComputeTimeCursorResponse) Reset() {
381 *x = ComputeTimeCursorResponse{}
382 mi := &file_google_cloud_pubsublite_v1_topic_stats_proto_msgTypes[5]
383 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
384 ms.StoreMessageInfo(mi)
385 }
386
387 func (x *ComputeTimeCursorResponse) String() string {
388 return protoimpl.X.MessageStringOf(x)
389 }
390
391 func (*ComputeTimeCursorResponse) ProtoMessage() {}
392
393 func (x *ComputeTimeCursorResponse) ProtoReflect() protoreflect.Message {
394 mi := &file_google_cloud_pubsublite_v1_topic_stats_proto_msgTypes[5]
395 if x != nil {
396 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
397 if ms.LoadMessageInfo() == nil {
398 ms.StoreMessageInfo(mi)
399 }
400 return ms
401 }
402 return mi.MessageOf(x)
403 }
404
405 // Deprecated: Use ComputeTimeCursorResponse.ProtoReflect.Descriptor instead.
406 func (*ComputeTimeCursorResponse) Descriptor() ([]byte, []int) {
407 return file_google_cloud_pubsublite_v1_topic_stats_proto_rawDescGZIP(), []int{5}
408 }
409
410 func (x *ComputeTimeCursorResponse) GetCursor() *Cursor {
411 if x != nil {
412 return x.Cursor
413 }
414 return nil
415 }
416
417 var File_google_cloud_pubsublite_v1_topic_stats_proto protoreflect.FileDescriptor
418
419 var file_google_cloud_pubsublite_v1_topic_stats_proto_rawDesc = []byte{
420 0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x70,
421 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x70,
422 0x69, 0x63, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a,
423 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62,
424 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67,
425 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
426 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
427 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
428 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69,
429 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f,
430 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72,
431 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x67,
432 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x70, 0x75, 0x62, 0x73,
433 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
434 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
435 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
436 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x88, 0x02, 0x0a, 0x1a, 0x43, 0x6f, 0x6d, 0x70,
437 0x75, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52,
438 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18,
439 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x70,
440 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
441 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x05,
442 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x21, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69,
443 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x70,
444 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x45, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72,
445 0x74, 0x5f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22,
446 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75,
447 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x73,
448 0x6f, 0x72, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x12,
449 0x41, 0x0a, 0x0a, 0x65, 0x6e, 0x64, 0x5f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x04, 0x20,
450 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
451 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31,
452 0x2e, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x43, 0x75, 0x72, 0x73,
453 0x6f, 0x72, 0x22, 0xff, 0x01, 0x0a, 0x1b, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x4d, 0x65,
454 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
455 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f,
456 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61,
457 0x67, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61,
458 0x67, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c,
459 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x4c, 0x0a, 0x14,
460 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x5f,
461 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
462 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d,
463 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x12, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x50,
464 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x48, 0x0a, 0x12, 0x6d, 0x69,
465 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65,
466 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
467 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
468 0x6d, 0x70, 0x52, 0x10, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x45, 0x76, 0x65, 0x6e, 0x74,
469 0x54, 0x69, 0x6d, 0x65, 0x22, 0x7c, 0x0a, 0x18, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x48,
470 0x65, 0x61, 0x64, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
471 0x12, 0x3d, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
472 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c,
473 0x69, 0x74, 0x65, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63,
474 0x6f, 0x6d, 0x2f, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12,
475 0x21, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01,
476 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69,
477 0x6f, 0x6e, 0x22, 0x60, 0x0a, 0x19, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x48, 0x65, 0x61,
478 0x64, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
479 0x43, 0x0a, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x5f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x01,
480 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
481 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76,
482 0x31, 0x2e, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x0a, 0x68, 0x65, 0x61, 0x64, 0x43, 0x75,
483 0x72, 0x73, 0x6f, 0x72, 0x22, 0xc1, 0x01, 0x0a, 0x18, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65,
484 0x54, 0x69, 0x6d, 0x65, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
485 0x74, 0x12, 0x3d, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
486 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62,
487 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e,
488 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63,
489 0x12, 0x21, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20,
490 0x01, 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74,
491 0x69, 0x6f, 0x6e, 0x12, 0x43, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x03, 0x20,
492 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
493 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31,
494 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02,
495 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0x57, 0x0a, 0x19, 0x43, 0x6f, 0x6d, 0x70,
496 0x75, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73,
497 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18,
498 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
499 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e,
500 0x76, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f,
501 0x72, 0x32, 0xf2, 0x05, 0x0a, 0x11, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x74, 0x61, 0x74, 0x73,
502 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xdd, 0x01, 0x0a, 0x13, 0x43, 0x6f, 0x6d, 0x70,
503 0x75, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12,
504 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70,
505 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d,
506 0x70, 0x75, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x73,
507 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
508 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74,
509 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73,
510 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
511 0x22, 0x55, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4f, 0x3a, 0x01, 0x2a, 0x22, 0x4a, 0x2f, 0x76, 0x31,
512 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x74, 0x61, 0x74, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x70,
513 0x69, 0x63, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f,
514 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73,
515 0x2f, 0x2a, 0x7d, 0x3a, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61,
516 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0xd5, 0x01, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x70,
517 0x75, 0x74, 0x65, 0x48, 0x65, 0x61, 0x64, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x12, 0x34, 0x2e,
518 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62,
519 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75,
520 0x74, 0x65, 0x48, 0x65, 0x61, 0x64, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75,
521 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
522 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31,
523 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x48, 0x65, 0x61, 0x64, 0x43, 0x75, 0x72, 0x73,
524 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x53, 0x82, 0xd3, 0xe4, 0x93,
525 0x02, 0x4d, 0x3a, 0x01, 0x2a, 0x22, 0x48, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63,
526 0x53, 0x74, 0x61, 0x74, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x3d, 0x70, 0x72, 0x6f,
527 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
528 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x63, 0x6f,
529 0x6d, 0x70, 0x75, 0x74, 0x65, 0x48, 0x65, 0x61, 0x64, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x12,
530 0xd5, 0x01, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x43,
531 0x75, 0x72, 0x73, 0x6f, 0x72, 0x12, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
532 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e,
533 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x43, 0x75,
534 0x72, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x67, 0x6f,
535 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75,
536 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65,
537 0x54, 0x69, 0x6d, 0x65, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
538 0x73, 0x65, 0x22, 0x53, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4d, 0x3a, 0x01, 0x2a, 0x22, 0x48, 0x2f,
539 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x74, 0x61, 0x74, 0x73, 0x2f, 0x7b, 0x74,
540 0x6f, 0x70, 0x69, 0x63, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f,
541 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x6f, 0x70, 0x69,
542 0x63, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x54, 0x69, 0x6d,
543 0x65, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x1a, 0x4d, 0xca, 0x41, 0x19, 0x70, 0x75, 0x62, 0x73,
544 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
545 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f,
546 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63,
547 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c,
548 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xd0, 0x01, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
549 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73,
550 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x42, 0x0f, 0x54, 0x6f,
551 0x70, 0x69, 0x63, 0x53, 0x74, 0x61, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
552 0x3e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f,
553 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2f,
554 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65,
555 0x70, 0x62, 0x3b, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x70, 0x62, 0xaa,
556 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x50,
557 0x75, 0x62, 0x53, 0x75, 0x62, 0x4c, 0x69, 0x74, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1a, 0x47,
558 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x50, 0x75, 0x62, 0x53,
559 0x75, 0x62, 0x4c, 0x69, 0x74, 0x65, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67,
560 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x50, 0x75, 0x62, 0x53, 0x75,
561 0x62, 0x4c, 0x69, 0x74, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
562 0x33,
563 }
564
565 var (
566 file_google_cloud_pubsublite_v1_topic_stats_proto_rawDescOnce sync.Once
567 file_google_cloud_pubsublite_v1_topic_stats_proto_rawDescData = file_google_cloud_pubsublite_v1_topic_stats_proto_rawDesc
568 )
569
570 func file_google_cloud_pubsublite_v1_topic_stats_proto_rawDescGZIP() []byte {
571 file_google_cloud_pubsublite_v1_topic_stats_proto_rawDescOnce.Do(func() {
572 file_google_cloud_pubsublite_v1_topic_stats_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_pubsublite_v1_topic_stats_proto_rawDescData)
573 })
574 return file_google_cloud_pubsublite_v1_topic_stats_proto_rawDescData
575 }
576
577 var file_google_cloud_pubsublite_v1_topic_stats_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
578 var file_google_cloud_pubsublite_v1_topic_stats_proto_goTypes = []any{
579 (*ComputeMessageStatsRequest)(nil), // 0: google.cloud.pubsublite.v1.ComputeMessageStatsRequest
580 (*ComputeMessageStatsResponse)(nil), // 1: google.cloud.pubsublite.v1.ComputeMessageStatsResponse
581 (*ComputeHeadCursorRequest)(nil), // 2: google.cloud.pubsublite.v1.ComputeHeadCursorRequest
582 (*ComputeHeadCursorResponse)(nil), // 3: google.cloud.pubsublite.v1.ComputeHeadCursorResponse
583 (*ComputeTimeCursorRequest)(nil), // 4: google.cloud.pubsublite.v1.ComputeTimeCursorRequest
584 (*ComputeTimeCursorResponse)(nil), // 5: google.cloud.pubsublite.v1.ComputeTimeCursorResponse
585 (*Cursor)(nil), // 6: google.cloud.pubsublite.v1.Cursor
586 (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp
587 (*TimeTarget)(nil), // 8: google.cloud.pubsublite.v1.TimeTarget
588 }
589 var file_google_cloud_pubsublite_v1_topic_stats_proto_depIdxs = []int32{
590 6, // 0: google.cloud.pubsublite.v1.ComputeMessageStatsRequest.start_cursor:type_name -> google.cloud.pubsublite.v1.Cursor
591 6, // 1: google.cloud.pubsublite.v1.ComputeMessageStatsRequest.end_cursor:type_name -> google.cloud.pubsublite.v1.Cursor
592 7, // 2: google.cloud.pubsublite.v1.ComputeMessageStatsResponse.minimum_publish_time:type_name -> google.protobuf.Timestamp
593 7, // 3: google.cloud.pubsublite.v1.ComputeMessageStatsResponse.minimum_event_time:type_name -> google.protobuf.Timestamp
594 6, // 4: google.cloud.pubsublite.v1.ComputeHeadCursorResponse.head_cursor:type_name -> google.cloud.pubsublite.v1.Cursor
595 8, // 5: google.cloud.pubsublite.v1.ComputeTimeCursorRequest.target:type_name -> google.cloud.pubsublite.v1.TimeTarget
596 6, // 6: google.cloud.pubsublite.v1.ComputeTimeCursorResponse.cursor:type_name -> google.cloud.pubsublite.v1.Cursor
597 0, // 7: google.cloud.pubsublite.v1.TopicStatsService.ComputeMessageStats:input_type -> google.cloud.pubsublite.v1.ComputeMessageStatsRequest
598 2, // 8: google.cloud.pubsublite.v1.TopicStatsService.ComputeHeadCursor:input_type -> google.cloud.pubsublite.v1.ComputeHeadCursorRequest
599 4, // 9: google.cloud.pubsublite.v1.TopicStatsService.ComputeTimeCursor:input_type -> google.cloud.pubsublite.v1.ComputeTimeCursorRequest
600 1, // 10: google.cloud.pubsublite.v1.TopicStatsService.ComputeMessageStats:output_type -> google.cloud.pubsublite.v1.ComputeMessageStatsResponse
601 3, // 11: google.cloud.pubsublite.v1.TopicStatsService.ComputeHeadCursor:output_type -> google.cloud.pubsublite.v1.ComputeHeadCursorResponse
602 5, // 12: google.cloud.pubsublite.v1.TopicStatsService.ComputeTimeCursor:output_type -> google.cloud.pubsublite.v1.ComputeTimeCursorResponse
603 10, // [10:13] is the sub-list for method output_type
604 7, // [7:10] is the sub-list for method input_type
605 7, // [7:7] is the sub-list for extension type_name
606 7, // [7:7] is the sub-list for extension extendee
607 0, // [0:7] is the sub-list for field type_name
608 }
609
610 func init() { file_google_cloud_pubsublite_v1_topic_stats_proto_init() }
611 func file_google_cloud_pubsublite_v1_topic_stats_proto_init() {
612 if File_google_cloud_pubsublite_v1_topic_stats_proto != nil {
613 return
614 }
615 file_google_cloud_pubsublite_v1_common_proto_init()
616 type x struct{}
617 out := protoimpl.TypeBuilder{
618 File: protoimpl.DescBuilder{
619 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
620 RawDescriptor: file_google_cloud_pubsublite_v1_topic_stats_proto_rawDesc,
621 NumEnums: 0,
622 NumMessages: 6,
623 NumExtensions: 0,
624 NumServices: 1,
625 },
626 GoTypes: file_google_cloud_pubsublite_v1_topic_stats_proto_goTypes,
627 DependencyIndexes: file_google_cloud_pubsublite_v1_topic_stats_proto_depIdxs,
628 MessageInfos: file_google_cloud_pubsublite_v1_topic_stats_proto_msgTypes,
629 }.Build()
630 File_google_cloud_pubsublite_v1_topic_stats_proto = out.File
631 file_google_cloud_pubsublite_v1_topic_stats_proto_rawDesc = nil
632 file_google_cloud_pubsublite_v1_topic_stats_proto_goTypes = nil
633 file_google_cloud_pubsublite_v1_topic_stats_proto_depIdxs = nil
634 }
635
636 // Reference imports to suppress errors if they are not otherwise used.
637 var _ context.Context
638 var _ grpc.ClientConnInterface
639
640 // This is a compile-time assertion to ensure that this generated file
641 // is compatible with the grpc package it is being compiled against.
642 const _ = grpc.SupportPackageIsVersion6
643
644 // TopicStatsServiceClient is the client API for TopicStatsService service.
645 //
646 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
647 type TopicStatsServiceClient interface {
648 // Compute statistics about a range of messages in a given topic and
649 // partition.
650 ComputeMessageStats(ctx context.Context, in *ComputeMessageStatsRequest, opts ...grpc.CallOption) (*ComputeMessageStatsResponse, error)
651 // Compute the head cursor for the partition.
652 // The head cursor's offset is guaranteed to be less than or equal to all
653 // messages which have not yet been acknowledged as published, and
654 // greater than the offset of any message whose publish has already
655 // been acknowledged. It is zero if there have never been messages in the
656 // partition.
657 ComputeHeadCursor(ctx context.Context, in *ComputeHeadCursorRequest, opts ...grpc.CallOption) (*ComputeHeadCursorResponse, error)
658 // Compute the corresponding cursor for a publish or event time in a topic
659 // partition.
660 ComputeTimeCursor(ctx context.Context, in *ComputeTimeCursorRequest, opts ...grpc.CallOption) (*ComputeTimeCursorResponse, error)
661 }
662
663 type topicStatsServiceClient struct {
664 cc grpc.ClientConnInterface
665 }
666
667 func NewTopicStatsServiceClient(cc grpc.ClientConnInterface) TopicStatsServiceClient {
668 return &topicStatsServiceClient{cc}
669 }
670
671 func (c *topicStatsServiceClient) ComputeMessageStats(ctx context.Context, in *ComputeMessageStatsRequest, opts ...grpc.CallOption) (*ComputeMessageStatsResponse, error) {
672 out := new(ComputeMessageStatsResponse)
673 err := c.cc.Invoke(ctx, "/google.cloud.pubsublite.v1.TopicStatsService/ComputeMessageStats", in, out, opts...)
674 if err != nil {
675 return nil, err
676 }
677 return out, nil
678 }
679
680 func (c *topicStatsServiceClient) ComputeHeadCursor(ctx context.Context, in *ComputeHeadCursorRequest, opts ...grpc.CallOption) (*ComputeHeadCursorResponse, error) {
681 out := new(ComputeHeadCursorResponse)
682 err := c.cc.Invoke(ctx, "/google.cloud.pubsublite.v1.TopicStatsService/ComputeHeadCursor", in, out, opts...)
683 if err != nil {
684 return nil, err
685 }
686 return out, nil
687 }
688
689 func (c *topicStatsServiceClient) ComputeTimeCursor(ctx context.Context, in *ComputeTimeCursorRequest, opts ...grpc.CallOption) (*ComputeTimeCursorResponse, error) {
690 out := new(ComputeTimeCursorResponse)
691 err := c.cc.Invoke(ctx, "/google.cloud.pubsublite.v1.TopicStatsService/ComputeTimeCursor", in, out, opts...)
692 if err != nil {
693 return nil, err
694 }
695 return out, nil
696 }
697
698 // TopicStatsServiceServer is the server API for TopicStatsService service.
699 type TopicStatsServiceServer interface {
700 // Compute statistics about a range of messages in a given topic and
701 // partition.
702 ComputeMessageStats(context.Context, *ComputeMessageStatsRequest) (*ComputeMessageStatsResponse, error)
703 // Compute the head cursor for the partition.
704 // The head cursor's offset is guaranteed to be less than or equal to all
705 // messages which have not yet been acknowledged as published, and
706 // greater than the offset of any message whose publish has already
707 // been acknowledged. It is zero if there have never been messages in the
708 // partition.
709 ComputeHeadCursor(context.Context, *ComputeHeadCursorRequest) (*ComputeHeadCursorResponse, error)
710 // Compute the corresponding cursor for a publish or event time in a topic
711 // partition.
712 ComputeTimeCursor(context.Context, *ComputeTimeCursorRequest) (*ComputeTimeCursorResponse, error)
713 }
714
715 // UnimplementedTopicStatsServiceServer can be embedded to have forward compatible implementations.
716 type UnimplementedTopicStatsServiceServer struct {
717 }
718
719 func (*UnimplementedTopicStatsServiceServer) ComputeMessageStats(context.Context, *ComputeMessageStatsRequest) (*ComputeMessageStatsResponse, error) {
720 return nil, status.Errorf(codes.Unimplemented, "method ComputeMessageStats not implemented")
721 }
722 func (*UnimplementedTopicStatsServiceServer) ComputeHeadCursor(context.Context, *ComputeHeadCursorRequest) (*ComputeHeadCursorResponse, error) {
723 return nil, status.Errorf(codes.Unimplemented, "method ComputeHeadCursor not implemented")
724 }
725 func (*UnimplementedTopicStatsServiceServer) ComputeTimeCursor(context.Context, *ComputeTimeCursorRequest) (*ComputeTimeCursorResponse, error) {
726 return nil, status.Errorf(codes.Unimplemented, "method ComputeTimeCursor not implemented")
727 }
728
729 func RegisterTopicStatsServiceServer(s *grpc.Server, srv TopicStatsServiceServer) {
730 s.RegisterService(&_TopicStatsService_serviceDesc, srv)
731 }
732
733 func _TopicStatsService_ComputeMessageStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
734 in := new(ComputeMessageStatsRequest)
735 if err := dec(in); err != nil {
736 return nil, err
737 }
738 if interceptor == nil {
739 return srv.(TopicStatsServiceServer).ComputeMessageStats(ctx, in)
740 }
741 info := &grpc.UnaryServerInfo{
742 Server: srv,
743 FullMethod: "/google.cloud.pubsublite.v1.TopicStatsService/ComputeMessageStats",
744 }
745 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
746 return srv.(TopicStatsServiceServer).ComputeMessageStats(ctx, req.(*ComputeMessageStatsRequest))
747 }
748 return interceptor(ctx, in, info, handler)
749 }
750
751 func _TopicStatsService_ComputeHeadCursor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
752 in := new(ComputeHeadCursorRequest)
753 if err := dec(in); err != nil {
754 return nil, err
755 }
756 if interceptor == nil {
757 return srv.(TopicStatsServiceServer).ComputeHeadCursor(ctx, in)
758 }
759 info := &grpc.UnaryServerInfo{
760 Server: srv,
761 FullMethod: "/google.cloud.pubsublite.v1.TopicStatsService/ComputeHeadCursor",
762 }
763 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
764 return srv.(TopicStatsServiceServer).ComputeHeadCursor(ctx, req.(*ComputeHeadCursorRequest))
765 }
766 return interceptor(ctx, in, info, handler)
767 }
768
769 func _TopicStatsService_ComputeTimeCursor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
770 in := new(ComputeTimeCursorRequest)
771 if err := dec(in); err != nil {
772 return nil, err
773 }
774 if interceptor == nil {
775 return srv.(TopicStatsServiceServer).ComputeTimeCursor(ctx, in)
776 }
777 info := &grpc.UnaryServerInfo{
778 Server: srv,
779 FullMethod: "/google.cloud.pubsublite.v1.TopicStatsService/ComputeTimeCursor",
780 }
781 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
782 return srv.(TopicStatsServiceServer).ComputeTimeCursor(ctx, req.(*ComputeTimeCursorRequest))
783 }
784 return interceptor(ctx, in, info, handler)
785 }
786
787 var _TopicStatsService_serviceDesc = grpc.ServiceDesc{
788 ServiceName: "google.cloud.pubsublite.v1.TopicStatsService",
789 HandlerType: (*TopicStatsServiceServer)(nil),
790 Methods: []grpc.MethodDesc{
791 {
792 MethodName: "ComputeMessageStats",
793 Handler: _TopicStatsService_ComputeMessageStats_Handler,
794 },
795 {
796 MethodName: "ComputeHeadCursor",
797 Handler: _TopicStatsService_ComputeHeadCursor_Handler,
798 },
799 {
800 MethodName: "ComputeTimeCursor",
801 Handler: _TopicStatsService_ComputeTimeCursor_Handler,
802 },
803 },
804 Streams: []grpc.StreamDesc{},
805 Metadata: "google/cloud/pubsublite/v1/topic_stats.proto",
806 }