| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 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 |
|
| 37 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 38 |
|
| 39 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 40 |
) |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
type InitialCommitCursorRequest struct { |
| 46 |
state protoimpl.MessageState |
| 47 |
sizeCache protoimpl.SizeCache |
| 48 |
unknownFields protoimpl.UnknownFields |
| 49 |
|
| 50 |
|
| 51 |
Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"` |
| 52 |
|
| 53 |
|
| 54 |
Partition int64 `protobuf:"varint,2,opt,name=partition,proto3" json:"partition,omitempty"` |
| 55 |
} |
| 56 |
|
| 57 |
func (x *InitialCommitCursorRequest) Reset() { |
| 58 |
*x = InitialCommitCursorRequest{} |
| 59 |
mi := &file_google_cloud_pubsublite_v1_cursor_proto_msgTypes[0] |
| 60 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 61 |
ms.StoreMessageInfo(mi) |
| 62 |
} |
| 63 |
|
| 64 |
func (x *InitialCommitCursorRequest) String() string { |
| 65 |
return protoimpl.X.MessageStringOf(x) |
| 66 |
} |
| 67 |
|
| 68 |
func (*InitialCommitCursorRequest) ProtoMessage() {} |
| 69 |
|
| 70 |
func (x *InitialCommitCursorRequest) ProtoReflect() protoreflect.Message { |
| 71 |
mi := &file_google_cloud_pubsublite_v1_cursor_proto_msgTypes[0] |
| 72 |
if x != nil { |
| 73 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 74 |
if ms.LoadMessageInfo() == nil { |
| 75 |
ms.StoreMessageInfo(mi) |
| 76 |
} |
| 77 |
return ms |
| 78 |
} |
| 79 |
return mi.MessageOf(x) |
| 80 |
} |
| 81 |
|
| 82 |
|
| 83 |
func (*InitialCommitCursorRequest) Descriptor() ([]byte, []int) { |
| 84 |
return file_google_cloud_pubsublite_v1_cursor_proto_rawDescGZIP(), []int{0} |
| 85 |
} |
| 86 |
|
| 87 |
func (x *InitialCommitCursorRequest) GetSubscription() string { |
| 88 |
if x != nil { |
| 89 |
return x.Subscription |
| 90 |
} |
| 91 |
return "" |
| 92 |
} |
| 93 |
|
| 94 |
func (x *InitialCommitCursorRequest) GetPartition() int64 { |
| 95 |
if x != nil { |
| 96 |
return x.Partition |
| 97 |
} |
| 98 |
return 0 |
| 99 |
} |
| 100 |
|
| 101 |
|
| 102 |
type InitialCommitCursorResponse struct { |
| 103 |
state protoimpl.MessageState |
| 104 |
sizeCache protoimpl.SizeCache |
| 105 |
unknownFields protoimpl.UnknownFields |
| 106 |
} |
| 107 |
|
| 108 |
func (x *InitialCommitCursorResponse) Reset() { |
| 109 |
*x = InitialCommitCursorResponse{} |
| 110 |
mi := &file_google_cloud_pubsublite_v1_cursor_proto_msgTypes[1] |
| 111 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 112 |
ms.StoreMessageInfo(mi) |
| 113 |
} |
| 114 |
|
| 115 |
func (x *InitialCommitCursorResponse) String() string { |
| 116 |
return protoimpl.X.MessageStringOf(x) |
| 117 |
} |
| 118 |
|
| 119 |
func (*InitialCommitCursorResponse) ProtoMessage() {} |
| 120 |
|
| 121 |
func (x *InitialCommitCursorResponse) ProtoReflect() protoreflect.Message { |
| 122 |
mi := &file_google_cloud_pubsublite_v1_cursor_proto_msgTypes[1] |
| 123 |
if x != nil { |
| 124 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 125 |
if ms.LoadMessageInfo() == nil { |
| 126 |
ms.StoreMessageInfo(mi) |
| 127 |
} |
| 128 |
return ms |
| 129 |
} |
| 130 |
return mi.MessageOf(x) |
| 131 |
} |
| 132 |
|
| 133 |
|
| 134 |
func (*InitialCommitCursorResponse) Descriptor() ([]byte, []int) { |
| 135 |
return file_google_cloud_pubsublite_v1_cursor_proto_rawDescGZIP(), []int{1} |
| 136 |
} |
| 137 |
|
| 138 |
|
| 139 |
|
| 140 |
type SequencedCommitCursorRequest struct { |
| 141 |
state protoimpl.MessageState |
| 142 |
sizeCache protoimpl.SizeCache |
| 143 |
unknownFields protoimpl.UnknownFields |
| 144 |
|
| 145 |
|
| 146 |
Cursor *Cursor `protobuf:"bytes,1,opt,name=cursor,proto3" json:"cursor,omitempty"` |
| 147 |
} |
| 148 |
|
| 149 |
func (x *SequencedCommitCursorRequest) Reset() { |
| 150 |
*x = SequencedCommitCursorRequest{} |
| 151 |
mi := &file_google_cloud_pubsublite_v1_cursor_proto_msgTypes[2] |
| 152 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 153 |
ms.StoreMessageInfo(mi) |
| 154 |
} |
| 155 |
|
| 156 |
func (x *SequencedCommitCursorRequest) String() string { |
| 157 |
return protoimpl.X.MessageStringOf(x) |
| 158 |
} |
| 159 |
|
| 160 |
func (*SequencedCommitCursorRequest) ProtoMessage() {} |
| 161 |
|
| 162 |
func (x *SequencedCommitCursorRequest) ProtoReflect() protoreflect.Message { |
| 163 |
mi := &file_google_cloud_pubsublite_v1_cursor_proto_msgTypes[2] |
| 164 |
if x != nil { |
| 165 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 166 |
if ms.LoadMessageInfo() == nil { |
| 167 |
ms.StoreMessageInfo(mi) |
| 168 |
} |
| 169 |
return ms |
| 170 |
} |
| 171 |
return mi.MessageOf(x) |
| 172 |
} |
| 173 |
|
| 174 |
|
| 175 |
func (*SequencedCommitCursorRequest) Descriptor() ([]byte, []int) { |
| 176 |
return file_google_cloud_pubsublite_v1_cursor_proto_rawDescGZIP(), []int{2} |
| 177 |
} |
| 178 |
|
| 179 |
func (x *SequencedCommitCursorRequest) GetCursor() *Cursor { |
| 180 |
if x != nil { |
| 181 |
return x.Cursor |
| 182 |
} |
| 183 |
return nil |
| 184 |
} |
| 185 |
|
| 186 |
|
| 187 |
type SequencedCommitCursorResponse struct { |
| 188 |
state protoimpl.MessageState |
| 189 |
sizeCache protoimpl.SizeCache |
| 190 |
unknownFields protoimpl.UnknownFields |
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
AcknowledgedCommits int64 `protobuf:"varint,1,opt,name=acknowledged_commits,json=acknowledgedCommits,proto3" json:"acknowledged_commits,omitempty"` |
| 196 |
} |
| 197 |
|
| 198 |
func (x *SequencedCommitCursorResponse) Reset() { |
| 199 |
*x = SequencedCommitCursorResponse{} |
| 200 |
mi := &file_google_cloud_pubsublite_v1_cursor_proto_msgTypes[3] |
| 201 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 202 |
ms.StoreMessageInfo(mi) |
| 203 |
} |
| 204 |
|
| 205 |
func (x *SequencedCommitCursorResponse) String() string { |
| 206 |
return protoimpl.X.MessageStringOf(x) |
| 207 |
} |
| 208 |
|
| 209 |
func (*SequencedCommitCursorResponse) ProtoMessage() {} |
| 210 |
|
| 211 |
func (x *SequencedCommitCursorResponse) ProtoReflect() protoreflect.Message { |
| 212 |
mi := &file_google_cloud_pubsublite_v1_cursor_proto_msgTypes[3] |
| 213 |
if x != nil { |
| 214 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 215 |
if ms.LoadMessageInfo() == nil { |
| 216 |
ms.StoreMessageInfo(mi) |
| 217 |
} |
| 218 |
return ms |
| 219 |
} |
| 220 |
return mi.MessageOf(x) |
| 221 |
} |
| 222 |
|
| 223 |
|
| 224 |
func (*SequencedCommitCursorResponse) Descriptor() ([]byte, []int) { |
| 225 |
return file_google_cloud_pubsublite_v1_cursor_proto_rawDescGZIP(), []int{3} |
| 226 |
} |
| 227 |
|
| 228 |
func (x *SequencedCommitCursorResponse) GetAcknowledgedCommits() int64 { |
| 229 |
if x != nil { |
| 230 |
return x.AcknowledgedCommits |
| 231 |
} |
| 232 |
return 0 |
| 233 |
} |
| 234 |
|
| 235 |
|
| 236 |
type StreamingCommitCursorRequest struct { |
| 237 |
state protoimpl.MessageState |
| 238 |
sizeCache protoimpl.SizeCache |
| 239 |
unknownFields protoimpl.UnknownFields |
| 240 |
|
| 241 |
|
| 242 |
|
| 243 |
|
| 244 |
|
| 245 |
|
| 246 |
|
| 247 |
Request isStreamingCommitCursorRequest_Request `protobuf_oneof:"request"` |
| 248 |
} |
| 249 |
|
| 250 |
func (x *StreamingCommitCursorRequest) Reset() { |
| 251 |
*x = StreamingCommitCursorRequest{} |
| 252 |
mi := &file_google_cloud_pubsublite_v1_cursor_proto_msgTypes[4] |
| 253 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 254 |
ms.StoreMessageInfo(mi) |
| 255 |
} |
| 256 |
|
| 257 |
func (x *StreamingCommitCursorRequest) String() string { |
| 258 |
return protoimpl.X.MessageStringOf(x) |
| 259 |
} |
| 260 |
|
| 261 |
func (*StreamingCommitCursorRequest) ProtoMessage() {} |
| 262 |
|
| 263 |
func (x *StreamingCommitCursorRequest) ProtoReflect() protoreflect.Message { |
| 264 |
mi := &file_google_cloud_pubsublite_v1_cursor_proto_msgTypes[4] |
| 265 |
if x != nil { |
| 266 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 267 |
if ms.LoadMessageInfo() == nil { |
| 268 |
ms.StoreMessageInfo(mi) |
| 269 |
} |
| 270 |
return ms |
| 271 |
} |
| 272 |
return mi.MessageOf(x) |
| 273 |
} |
| 274 |
|
| 275 |
|
| 276 |
func (*StreamingCommitCursorRequest) Descriptor() ([]byte, []int) { |
| 277 |
return file_google_cloud_pubsublite_v1_cursor_proto_rawDescGZIP(), []int{4} |
| 278 |
} |
| 279 |
|
| 280 |
func (m *StreamingCommitCursorRequest) GetRequest() isStreamingCommitCursorRequest_Request { |
| 281 |
if m != nil { |
| 282 |
return m.Request |
| 283 |
} |
| 284 |
return nil |
| 285 |
} |
| 286 |
|
| 287 |
func (x *StreamingCommitCursorRequest) GetInitial() *InitialCommitCursorRequest { |
| 288 |
if x, ok := x.GetRequest().(*StreamingCommitCursorRequest_Initial); ok { |
| 289 |
return x.Initial |
| 290 |
} |
| 291 |
return nil |
| 292 |
} |
| 293 |
|
| 294 |
func (x *StreamingCommitCursorRequest) GetCommit() *SequencedCommitCursorRequest { |
| 295 |
if x, ok := x.GetRequest().(*StreamingCommitCursorRequest_Commit); ok { |
| 296 |
return x.Commit |
| 297 |
} |
| 298 |
return nil |
| 299 |
} |
| 300 |
|
| 301 |
type isStreamingCommitCursorRequest_Request interface { |
| 302 |
isStreamingCommitCursorRequest_Request() |
| 303 |
} |
| 304 |
|
| 305 |
type StreamingCommitCursorRequest_Initial struct { |
| 306 |
|
| 307 |
Initial *InitialCommitCursorRequest `protobuf:"bytes,1,opt,name=initial,proto3,oneof"` |
| 308 |
} |
| 309 |
|
| 310 |
type StreamingCommitCursorRequest_Commit struct { |
| 311 |
|
| 312 |
Commit *SequencedCommitCursorRequest `protobuf:"bytes,2,opt,name=commit,proto3,oneof"` |
| 313 |
} |
| 314 |
|
| 315 |
func (*StreamingCommitCursorRequest_Initial) isStreamingCommitCursorRequest_Request() {} |
| 316 |
|
| 317 |
func (*StreamingCommitCursorRequest_Commit) isStreamingCommitCursorRequest_Request() {} |
| 318 |
|
| 319 |
|
| 320 |
type StreamingCommitCursorResponse struct { |
| 321 |
state protoimpl.MessageState |
| 322 |
sizeCache protoimpl.SizeCache |
| 323 |
unknownFields protoimpl.UnknownFields |
| 324 |
|
| 325 |
|
| 326 |
|
| 327 |
|
| 328 |
|
| 329 |
|
| 330 |
|
| 331 |
Request isStreamingCommitCursorResponse_Request `protobuf_oneof:"request"` |
| 332 |
} |
| 333 |
|
| 334 |
func (x *StreamingCommitCursorResponse) Reset() { |
| 335 |
*x = StreamingCommitCursorResponse{} |
| 336 |
mi := &file_google_cloud_pubsublite_v1_cursor_proto_msgTypes[5] |
| 337 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 338 |
ms.StoreMessageInfo(mi) |
| 339 |
} |
| 340 |
|
| 341 |
func (x *StreamingCommitCursorResponse) String() string { |
| 342 |
return protoimpl.X.MessageStringOf(x) |
| 343 |
} |
| 344 |
|
| 345 |
func (*StreamingCommitCursorResponse) ProtoMessage() {} |
| 346 |
|
| 347 |
func (x *StreamingCommitCursorResponse) ProtoReflect() protoreflect.Message { |
| 348 |
mi := &file_google_cloud_pubsublite_v1_cursor_proto_msgTypes[5] |
| 349 |
if x != nil { |
| 350 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 351 |
if ms.LoadMessageInfo() == nil { |
| 352 |
ms.StoreMessageInfo(mi) |
| 353 |
} |
| 354 |
return ms |
| 355 |
} |
| 356 |
return mi.MessageOf(x) |
| 357 |
} |
| 358 |
|
| 359 |
|
| 360 |
func (*StreamingCommitCursorResponse) Descriptor() ([]byte, []int) { |
| 361 |
return file_google_cloud_pubsublite_v1_cursor_proto_rawDescGZIP(), []int{5} |
| 362 |
} |
| 363 |
|
| 364 |
func (m *StreamingCommitCursorResponse) GetRequest() isStreamingCommitCursorResponse_Request { |
| 365 |
if m != nil { |
| 366 |
return m.Request |
| 367 |
} |
| 368 |
return nil |
| 369 |
} |
| 370 |
|
| 371 |
func (x *StreamingCommitCursorResponse) GetInitial() *InitialCommitCursorResponse { |
| 372 |
if x, ok := x.GetRequest().(*StreamingCommitCursorResponse_Initial); ok { |
| 373 |
return x.Initial |
| 374 |
} |
| 375 |
return nil |
| 376 |
} |
| 377 |
|
| 378 |
func (x *StreamingCommitCursorResponse) GetCommit() *SequencedCommitCursorResponse { |
| 379 |
if x, ok := x.GetRequest().(*StreamingCommitCursorResponse_Commit); ok { |
| 380 |
return x.Commit |
| 381 |
} |
| 382 |
return nil |
| 383 |
} |
| 384 |
|
| 385 |
type isStreamingCommitCursorResponse_Request interface { |
| 386 |
isStreamingCommitCursorResponse_Request() |
| 387 |
} |
| 388 |
|
| 389 |
type StreamingCommitCursorResponse_Initial struct { |
| 390 |
|
| 391 |
Initial *InitialCommitCursorResponse `protobuf:"bytes,1,opt,name=initial,proto3,oneof"` |
| 392 |
} |
| 393 |
|
| 394 |
type StreamingCommitCursorResponse_Commit struct { |
| 395 |
|
| 396 |
Commit *SequencedCommitCursorResponse `protobuf:"bytes,2,opt,name=commit,proto3,oneof"` |
| 397 |
} |
| 398 |
|
| 399 |
func (*StreamingCommitCursorResponse_Initial) isStreamingCommitCursorResponse_Request() {} |
| 400 |
|
| 401 |
func (*StreamingCommitCursorResponse_Commit) isStreamingCommitCursorResponse_Request() {} |
| 402 |
|
| 403 |
|
| 404 |
type CommitCursorRequest struct { |
| 405 |
state protoimpl.MessageState |
| 406 |
sizeCache protoimpl.SizeCache |
| 407 |
unknownFields protoimpl.UnknownFields |
| 408 |
|
| 409 |
|
| 410 |
Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"` |
| 411 |
|
| 412 |
|
| 413 |
Partition int64 `protobuf:"varint,2,opt,name=partition,proto3" json:"partition,omitempty"` |
| 414 |
|
| 415 |
Cursor *Cursor `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor,omitempty"` |
| 416 |
} |
| 417 |
|
| 418 |
func (x *CommitCursorRequest) Reset() { |
| 419 |
*x = CommitCursorRequest{} |
| 420 |
mi := &file_google_cloud_pubsublite_v1_cursor_proto_msgTypes[6] |
| 421 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 422 |
ms.StoreMessageInfo(mi) |
| 423 |
} |
| 424 |
|
| 425 |
func (x *CommitCursorRequest) String() string { |
| 426 |
return protoimpl.X.MessageStringOf(x) |
| 427 |
} |
| 428 |
|
| 429 |
func (*CommitCursorRequest) ProtoMessage() {} |
| 430 |
|
| 431 |
func (x *CommitCursorRequest) ProtoReflect() protoreflect.Message { |
| 432 |
mi := &file_google_cloud_pubsublite_v1_cursor_proto_msgTypes[6] |
| 433 |
if x != nil { |
| 434 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 435 |
if ms.LoadMessageInfo() == nil { |
| 436 |
ms.StoreMessageInfo(mi) |
| 437 |
} |
| 438 |
return ms |
| 439 |
} |
| 440 |
return mi.MessageOf(x) |
| 441 |
} |
| 442 |
|
| 443 |
|
| 444 |
func (*CommitCursorRequest) Descriptor() ([]byte, []int) { |
| 445 |
return file_google_cloud_pubsublite_v1_cursor_proto_rawDescGZIP(), []int{6} |
| 446 |
} |
| 447 |
|
| 448 |
func (x *CommitCursorRequest) GetSubscription() string { |
| 449 |
if x != nil { |
| 450 |
return x.Subscription |
| 451 |
} |
| 452 |
return "" |
| 453 |
} |
| 454 |
|
| 455 |
func (x *CommitCursorRequest) GetPartition() int64 { |
| 456 |
if x != nil { |
| 457 |
return x.Partition |
| 458 |
} |
| 459 |
return 0 |
| 460 |
} |
| 461 |
|
| 462 |
func (x *CommitCursorRequest) GetCursor() *Cursor { |
| 463 |
if x != nil { |
| 464 |
return x.Cursor |
| 465 |
} |
| 466 |
return nil |
| 467 |
} |
| 468 |
|
| 469 |
|
| 470 |
type CommitCursorResponse struct { |
| 471 |
state protoimpl.MessageState |
| 472 |
sizeCache protoimpl.SizeCache |
| 473 |
unknownFields protoimpl.UnknownFields |
| 474 |
} |
| 475 |
|
| 476 |
func (x *CommitCursorResponse) Reset() { |
| 477 |
*x = CommitCursorResponse{} |
| 478 |
mi := &file_google_cloud_pubsublite_v1_cursor_proto_msgTypes[7] |
| 479 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 480 |
ms.StoreMessageInfo(mi) |
| 481 |
} |
| 482 |
|
| 483 |
func (x *CommitCursorResponse) String() string { |
| 484 |
return protoimpl.X.MessageStringOf(x) |
| 485 |
} |
| 486 |
|
| 487 |
func (*CommitCursorResponse) ProtoMessage() {} |
| 488 |
|
| 489 |
func (x *CommitCursorResponse) ProtoReflect() protoreflect.Message { |
| 490 |
mi := &file_google_cloud_pubsublite_v1_cursor_proto_msgTypes[7] |
| 491 |
if x != nil { |
| 492 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 493 |
if ms.LoadMessageInfo() == nil { |
| 494 |
ms.StoreMessageInfo(mi) |
| 495 |
} |
| 496 |
return ms |
| 497 |
} |
| 498 |
return mi.MessageOf(x) |
| 499 |
} |
| 500 |
|
| 501 |
|
| 502 |
func (*CommitCursorResponse) Descriptor() ([]byte, []int) { |
| 503 |
return file_google_cloud_pubsublite_v1_cursor_proto_rawDescGZIP(), []int{7} |
| 504 |
} |
| 505 |
|
| 506 |
|
| 507 |
type ListPartitionCursorsRequest struct { |
| 508 |
state protoimpl.MessageState |
| 509 |
sizeCache protoimpl.SizeCache |
| 510 |
unknownFields protoimpl.UnknownFields |
| 511 |
|
| 512 |
|
| 513 |
|
| 514 |
|
| 515 |
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` |
| 516 |
|
| 517 |
|
| 518 |
|
| 519 |
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` |
| 520 |
|
| 521 |
|
| 522 |
|
| 523 |
|
| 524 |
|
| 525 |
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` |
| 526 |
} |
| 527 |
|
| 528 |
func (x *ListPartitionCursorsRequest) Reset() { |
| 529 |
*x = ListPartitionCursorsRequest{} |
| 530 |
mi := &file_google_cloud_pubsublite_v1_cursor_proto_msgTypes[8] |
| 531 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 532 |
ms.StoreMessageInfo(mi) |
| 533 |
} |
| 534 |
|
| 535 |
func (x *ListPartitionCursorsRequest) String() string { |
| 536 |
return protoimpl.X.MessageStringOf(x) |
| 537 |
} |
| 538 |
|
| 539 |
func (*ListPartitionCursorsRequest) ProtoMessage() {} |
| 540 |
|
| 541 |
func (x *ListPartitionCursorsRequest) ProtoReflect() protoreflect.Message { |
| 542 |
mi := &file_google_cloud_pubsublite_v1_cursor_proto_msgTypes[8] |
| 543 |
if x != nil { |
| 544 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 545 |
if ms.LoadMessageInfo() == nil { |
| 546 |
ms.StoreMessageInfo(mi) |
| 547 |
} |
| 548 |
return ms |
| 549 |
} |
| 550 |
return mi.MessageOf(x) |
| 551 |
} |
| 552 |
|
| 553 |
|
| 554 |
func (*ListPartitionCursorsRequest) Descriptor() ([]byte, []int) { |
| 555 |
return file_google_cloud_pubsublite_v1_cursor_proto_rawDescGZIP(), []int{8} |
| 556 |
} |
| 557 |
|
| 558 |
func (x *ListPartitionCursorsRequest) GetParent() string { |
| 559 |
if x != nil { |
| 560 |
return x.Parent |
| 561 |
} |
| 562 |
return "" |
| 563 |
} |
| 564 |
|
| 565 |
func (x *ListPartitionCursorsRequest) GetPageSize() int32 { |
| 566 |
if x != nil { |
| 567 |
return x.PageSize |
| 568 |
} |
| 569 |
return 0 |
| 570 |
} |
| 571 |
|
| 572 |
func (x *ListPartitionCursorsRequest) GetPageToken() string { |
| 573 |
if x != nil { |
| 574 |
return x.PageToken |
| 575 |
} |
| 576 |
return "" |
| 577 |
} |
| 578 |
|
| 579 |
|
| 580 |
type PartitionCursor struct { |
| 581 |
state protoimpl.MessageState |
| 582 |
sizeCache protoimpl.SizeCache |
| 583 |
unknownFields protoimpl.UnknownFields |
| 584 |
|
| 585 |
|
| 586 |
Partition int64 `protobuf:"varint,1,opt,name=partition,proto3" json:"partition,omitempty"` |
| 587 |
|
| 588 |
Cursor *Cursor `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"` |
| 589 |
} |
| 590 |
|
| 591 |
func (x *PartitionCursor) Reset() { |
| 592 |
*x = PartitionCursor{} |
| 593 |
mi := &file_google_cloud_pubsublite_v1_cursor_proto_msgTypes[9] |
| 594 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 595 |
ms.StoreMessageInfo(mi) |
| 596 |
} |
| 597 |
|
| 598 |
func (x *PartitionCursor) String() string { |
| 599 |
return protoimpl.X.MessageStringOf(x) |
| 600 |
} |
| 601 |
|
| 602 |
func (*PartitionCursor) ProtoMessage() {} |
| 603 |
|
| 604 |
func (x *PartitionCursor) ProtoReflect() protoreflect.Message { |
| 605 |
mi := &file_google_cloud_pubsublite_v1_cursor_proto_msgTypes[9] |
| 606 |
if x != nil { |
| 607 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 608 |
if ms.LoadMessageInfo() == nil { |
| 609 |
ms.StoreMessageInfo(mi) |
| 610 |
} |
| 611 |
return ms |
| 612 |
} |
| 613 |
return mi.MessageOf(x) |
| 614 |
} |
| 615 |
|
| 616 |
|
| 617 |
func (*PartitionCursor) Descriptor() ([]byte, []int) { |
| 618 |
return file_google_cloud_pubsublite_v1_cursor_proto_rawDescGZIP(), []int{9} |
| 619 |
} |
| 620 |
|
| 621 |
func (x *PartitionCursor) GetPartition() int64 { |
| 622 |
if x != nil { |
| 623 |
return x.Partition |
| 624 |
} |
| 625 |
return 0 |
| 626 |
} |
| 627 |
|
| 628 |
func (x *PartitionCursor) GetCursor() *Cursor { |
| 629 |
if x != nil { |
| 630 |
return x.Cursor |
| 631 |
} |
| 632 |
return nil |
| 633 |
} |
| 634 |
|
| 635 |
|
| 636 |
type ListPartitionCursorsResponse struct { |
| 637 |
state protoimpl.MessageState |
| 638 |
sizeCache protoimpl.SizeCache |
| 639 |
unknownFields protoimpl.UnknownFields |
| 640 |
|
| 641 |
|
| 642 |
PartitionCursors []*PartitionCursor `protobuf:"bytes,1,rep,name=partition_cursors,json=partitionCursors,proto3" json:"partition_cursors,omitempty"` |
| 643 |
|
| 644 |
|
| 645 |
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` |
| 646 |
} |
| 647 |
|
| 648 |
func (x *ListPartitionCursorsResponse) Reset() { |
| 649 |
*x = ListPartitionCursorsResponse{} |
| 650 |
mi := &file_google_cloud_pubsublite_v1_cursor_proto_msgTypes[10] |
| 651 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 652 |
ms.StoreMessageInfo(mi) |
| 653 |
} |
| 654 |
|
| 655 |
func (x *ListPartitionCursorsResponse) String() string { |
| 656 |
return protoimpl.X.MessageStringOf(x) |
| 657 |
} |
| 658 |
|
| 659 |
func (*ListPartitionCursorsResponse) ProtoMessage() {} |
| 660 |
|
| 661 |
func (x *ListPartitionCursorsResponse) ProtoReflect() protoreflect.Message { |
| 662 |
mi := &file_google_cloud_pubsublite_v1_cursor_proto_msgTypes[10] |
| 663 |
if x != nil { |
| 664 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 665 |
if ms.LoadMessageInfo() == nil { |
| 666 |
ms.StoreMessageInfo(mi) |
| 667 |
} |
| 668 |
return ms |
| 669 |
} |
| 670 |
return mi.MessageOf(x) |
| 671 |
} |
| 672 |
|
| 673 |
|
| 674 |
func (*ListPartitionCursorsResponse) Descriptor() ([]byte, []int) { |
| 675 |
return file_google_cloud_pubsublite_v1_cursor_proto_rawDescGZIP(), []int{10} |
| 676 |
} |
| 677 |
|
| 678 |
func (x *ListPartitionCursorsResponse) GetPartitionCursors() []*PartitionCursor { |
| 679 |
if x != nil { |
| 680 |
return x.PartitionCursors |
| 681 |
} |
| 682 |
return nil |
| 683 |
} |
| 684 |
|
| 685 |
func (x *ListPartitionCursorsResponse) GetNextPageToken() string { |
| 686 |
if x != nil { |
| 687 |
return x.NextPageToken |
| 688 |
} |
| 689 |
return "" |
| 690 |
} |
| 691 |
|
| 692 |
var File_google_cloud_pubsublite_v1_cursor_proto protoreflect.FileDescriptor |
| 693 |
|
| 694 |
var file_google_cloud_pubsublite_v1_cursor_proto_rawDesc = []byte{ |
| 695 |
0x0a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x70, |
| 696 |
0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x75, 0x72, |
| 697 |
0x73, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 698 |
0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, |
| 699 |
0x74, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, |
| 700 |
0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, |
| 701 |
0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, |
| 702 |
0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, |
| 703 |
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, |
| 704 |
0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, |
| 705 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, |
| 706 |
0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 707 |
0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, |
| 708 |
0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 709 |
0x6f, 0x22, 0x5e, 0x0a, 0x1a, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x43, 0x6f, 0x6d, 0x6d, |
| 710 |
0x69, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, |
| 711 |
0x22, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, |
| 712 |
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, |
| 713 |
0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, |
| 714 |
0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, |
| 715 |
0x6e, 0x22, 0x1d, 0x0a, 0x1b, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x43, 0x6f, 0x6d, 0x6d, |
| 716 |
0x69, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, |
| 717 |
0x22, 0x5a, 0x0a, 0x1c, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x43, 0x6f, 0x6d, |
| 718 |
0x6d, 0x69, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, |
| 719 |
0x12, 0x3a, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, |
| 720 |
0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 721 |
0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, |
| 722 |
0x72, 0x73, 0x6f, 0x72, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x22, 0x52, 0x0a, 0x1d, |
| 723 |
0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x43, |
| 724 |
0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, |
| 725 |
0x14, 0x61, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x64, 0x5f, 0x63, 0x6f, |
| 726 |
0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x61, 0x63, 0x6b, |
| 727 |
0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, |
| 728 |
0x22, 0xd1, 0x01, 0x0a, 0x1c, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x43, 0x6f, |
| 729 |
0x6d, 0x6d, 0x69, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, |
| 730 |
0x74, 0x12, 0x52, 0x0a, 0x07, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, |
| 731 |
0x28, 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 732 |
0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, |
| 733 |
0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x43, 0x75, 0x72, |
| 734 |
0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x07, 0x69, 0x6e, |
| 735 |
0x69, 0x74, 0x69, 0x61, 0x6c, 0x12, 0x52, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, |
| 736 |
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 737 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, |
| 738 |
0x76, 0x31, 0x2e, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, |
| 739 |
0x69, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, |
| 740 |
0x00, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, |
| 741 |
0x75, 0x65, 0x73, 0x74, 0x22, 0xd4, 0x01, 0x0a, 0x1d, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, |
| 742 |
0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x65, |
| 743 |
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x07, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, |
| 744 |
0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 745 |
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, |
| 746 |
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x43, 0x6f, 0x6d, 0x6d, |
| 747 |
0x69, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, |
| 748 |
0x48, 0x00, 0x52, 0x07, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x12, 0x53, 0x0a, 0x06, 0x63, |
| 749 |
0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x67, 0x6f, |
| 750 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, |
| 751 |
0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, |
| 752 |
0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x65, |
| 753 |
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, |
| 754 |
0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x93, 0x01, 0x0a, 0x13, |
| 755 |
0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, |
| 756 |
0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, |
| 757 |
0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, |
| 758 |
0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, |
| 759 |
0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, |
| 760 |
0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, |
| 761 |
0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 762 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, |
| 763 |
0x76, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, |
| 764 |
0x72, 0x22, 0x16, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, |
| 765 |
0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa1, 0x01, 0x0a, 0x1b, 0x4c, 0x69, |
| 766 |
0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x75, 0x72, 0x73, 0x6f, |
| 767 |
0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x06, 0x70, 0x61, 0x72, |
| 768 |
0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2e, 0xe0, 0x41, 0x02, 0xfa, 0x41, |
| 769 |
0x28, 0x0a, 0x26, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x67, 0x6f, |
| 770 |
0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x75, 0x62, |
| 771 |
0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, |
| 772 |
0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, |
| 773 |
0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, |
| 774 |
0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, |
| 775 |
0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6b, 0x0a, |
| 776 |
0x0f, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, |
| 777 |
0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, |
| 778 |
0x01, 0x28, 0x03, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3a, |
| 779 |
0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, |
| 780 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, |
| 781 |
0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x73, |
| 782 |
0x6f, 0x72, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x22, 0xa0, 0x01, 0x0a, 0x1c, 0x4c, |
| 783 |
0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x75, 0x72, 0x73, |
| 784 |
0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x11, 0x70, |
| 785 |
0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x73, |
| 786 |
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 787 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, |
| 788 |
0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x75, 0x72, |
| 789 |
0x73, 0x6f, 0x72, 0x52, 0x10, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x75, |
| 790 |
0x72, 0x73, 0x6f, 0x72, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, |
| 791 |
0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, |
| 792 |
0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0xa2, 0x05, |
| 793 |
0x0a, 0x0d, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, |
| 794 |
0x92, 0x01, 0x0a, 0x15, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, |
| 795 |
0x6d, 0x69, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x12, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 796 |
0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, |
| 797 |
0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, |
| 798 |
0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, |
| 799 |
0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, |
| 800 |
0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, |
| 801 |
0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, |
| 802 |
0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, |
| 803 |
0x28, 0x01, 0x30, 0x01, 0x12, 0xcb, 0x01, 0x0a, 0x0c, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x43, |
| 804 |
0x75, 0x72, 0x73, 0x6f, 0x72, 0x12, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 805 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, |
| 806 |
0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, |
| 807 |
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 808 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, |
| 809 |
0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, |
| 810 |
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x58, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x52, |
| 811 |
0x3a, 0x01, 0x2a, 0x22, 0x4d, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x2f, |
| 812 |
0x7b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x3d, 0x70, 0x72, |
| 813 |
0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, |
| 814 |
0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, |
| 815 |
0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x43, 0x75, 0x72, 0x73, |
| 816 |
0x6f, 0x72, 0x12, 0xde, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, |
| 817 |
0x74, 0x69, 0x6f, 0x6e, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x73, 0x12, 0x37, 0x2e, 0x67, 0x6f, |
| 818 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, |
| 819 |
0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, |
| 820 |
0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, |
| 821 |
0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, |
| 822 |
0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, |
| 823 |
0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x43, |
| 824 |
0x75, 0x72, 0x73, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x53, |
| 825 |
0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x44, 0x12, |
| 826 |
0x42, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x2f, 0x7b, 0x70, 0x61, 0x72, |
| 827 |
0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, |
| 828 |
0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, |
| 829 |
0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x75, 0x72, 0x73, |
| 830 |
0x6f, 0x72, 0x73, 0x1a, 0x4d, 0xca, 0x41, 0x19, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, |
| 831 |
0x74, 0x65, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, |
| 832 |
0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, |
| 833 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, |
| 834 |
0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, |
| 835 |
0x72, 0x6d, 0x42, 0xcf, 0x01, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 836 |
0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, |
| 837 |
0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x42, 0x0b, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, |
| 838 |
0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, |
| 839 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x75, 0x62, |
| 840 |
0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x70, 0x75, |
| 841 |
0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x70, 0x62, 0x3b, 0x70, 0x75, 0x62, 0x73, 0x75, |
| 842 |
0x62, 0x6c, 0x69, 0x74, 0x65, 0x70, 0x62, 0xf8, 0x01, 0x01, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, |
| 843 |
0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, |
| 844 |
0x4c, 0x69, 0x74, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 845 |
0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x4c, 0x69, 0x74, |
| 846 |
0x65, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, |
| 847 |
0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x4c, 0x69, 0x74, 0x65, |
| 848 |
0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 849 |
} |
| 850 |
|
| 851 |
var ( |
| 852 |
file_google_cloud_pubsublite_v1_cursor_proto_rawDescOnce sync.Once |
| 853 |
file_google_cloud_pubsublite_v1_cursor_proto_rawDescData = file_google_cloud_pubsublite_v1_cursor_proto_rawDesc |
| 854 |
) |
| 855 |
|
| 856 |
func file_google_cloud_pubsublite_v1_cursor_proto_rawDescGZIP() []byte { |
| 857 |
file_google_cloud_pubsublite_v1_cursor_proto_rawDescOnce.Do(func() { |
| 858 |
file_google_cloud_pubsublite_v1_cursor_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_pubsublite_v1_cursor_proto_rawDescData) |
| 859 |
}) |
| 860 |
return file_google_cloud_pubsublite_v1_cursor_proto_rawDescData |
| 861 |
} |
| 862 |
|
| 863 |
var file_google_cloud_pubsublite_v1_cursor_proto_msgTypes = make([]protoimpl.MessageInfo, 11) |
| 864 |
var file_google_cloud_pubsublite_v1_cursor_proto_goTypes = []any{ |
| 865 |
(*InitialCommitCursorRequest)(nil), |
| 866 |
(*InitialCommitCursorResponse)(nil), |
| 867 |
(*SequencedCommitCursorRequest)(nil), |
| 868 |
(*SequencedCommitCursorResponse)(nil), |
| 869 |
(*StreamingCommitCursorRequest)(nil), |
| 870 |
(*StreamingCommitCursorResponse)(nil), |
| 871 |
(*CommitCursorRequest)(nil), |
| 872 |
(*CommitCursorResponse)(nil), |
| 873 |
(*ListPartitionCursorsRequest)(nil), |
| 874 |
(*PartitionCursor)(nil), |
| 875 |
(*ListPartitionCursorsResponse)(nil), |
| 876 |
(*Cursor)(nil), |
| 877 |
} |
| 878 |
var file_google_cloud_pubsublite_v1_cursor_proto_depIdxs = []int32{ |
| 879 |
11, |
| 880 |
0, |
| 881 |
2, |
| 882 |
1, |
| 883 |
3, |
| 884 |
11, |
| 885 |
11, |
| 886 |
9, |
| 887 |
4, |
| 888 |
6, |
| 889 |
8, |
| 890 |
5, |
| 891 |
7, |
| 892 |
10, |
| 893 |
11, |
| 894 |
8, |
| 895 |
8, |
| 896 |
8, |
| 897 |
0, |
| 898 |
} |
| 899 |
|
| 900 |
func init() { file_google_cloud_pubsublite_v1_cursor_proto_init() } |
| 901 |
func file_google_cloud_pubsublite_v1_cursor_proto_init() { |
| 902 |
if File_google_cloud_pubsublite_v1_cursor_proto != nil { |
| 903 |
return |
| 904 |
} |
| 905 |
file_google_cloud_pubsublite_v1_common_proto_init() |
| 906 |
file_google_cloud_pubsublite_v1_cursor_proto_msgTypes[4].OneofWrappers = []any{ |
| 907 |
(*StreamingCommitCursorRequest_Initial)(nil), |
| 908 |
(*StreamingCommitCursorRequest_Commit)(nil), |
| 909 |
} |
| 910 |
file_google_cloud_pubsublite_v1_cursor_proto_msgTypes[5].OneofWrappers = []any{ |
| 911 |
(*StreamingCommitCursorResponse_Initial)(nil), |
| 912 |
(*StreamingCommitCursorResponse_Commit)(nil), |
| 913 |
} |
| 914 |
type x struct{} |
| 915 |
out := protoimpl.TypeBuilder{ |
| 916 |
File: protoimpl.DescBuilder{ |
| 917 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 918 |
RawDescriptor: file_google_cloud_pubsublite_v1_cursor_proto_rawDesc, |
| 919 |
NumEnums: 0, |
| 920 |
NumMessages: 11, |
| 921 |
NumExtensions: 0, |
| 922 |
NumServices: 1, |
| 923 |
}, |
| 924 |
GoTypes: file_google_cloud_pubsublite_v1_cursor_proto_goTypes, |
| 925 |
DependencyIndexes: file_google_cloud_pubsublite_v1_cursor_proto_depIdxs, |
| 926 |
MessageInfos: file_google_cloud_pubsublite_v1_cursor_proto_msgTypes, |
| 927 |
}.Build() |
| 928 |
File_google_cloud_pubsublite_v1_cursor_proto = out.File |
| 929 |
file_google_cloud_pubsublite_v1_cursor_proto_rawDesc = nil |
| 930 |
file_google_cloud_pubsublite_v1_cursor_proto_goTypes = nil |
| 931 |
file_google_cloud_pubsublite_v1_cursor_proto_depIdxs = nil |
| 932 |
} |
| 933 |
|
| 934 |
|
| 935 |
var _ context.Context |
| 936 |
var _ grpc.ClientConnInterface |
| 937 |
|
| 938 |
|
| 939 |
|
| 940 |
const _ = grpc.SupportPackageIsVersion6 |
| 941 |
|
| 942 |
|
| 943 |
|
| 944 |
|
| 945 |
type CursorServiceClient interface { |
| 946 |
|
| 947 |
StreamingCommitCursor(ctx context.Context, opts ...grpc.CallOption) (CursorService_StreamingCommitCursorClient, error) |
| 948 |
|
| 949 |
CommitCursor(ctx context.Context, in *CommitCursorRequest, opts ...grpc.CallOption) (*CommitCursorResponse, error) |
| 950 |
|
| 951 |
ListPartitionCursors(ctx context.Context, in *ListPartitionCursorsRequest, opts ...grpc.CallOption) (*ListPartitionCursorsResponse, error) |
| 952 |
} |
| 953 |
|
| 954 |
type cursorServiceClient struct { |
| 955 |
cc grpc.ClientConnInterface |
| 956 |
} |
| 957 |
|
| 958 |
func NewCursorServiceClient(cc grpc.ClientConnInterface) CursorServiceClient { |
| 959 |
return &cursorServiceClient{cc} |
| 960 |
} |
| 961 |
|
| 962 |
func (c *cursorServiceClient) StreamingCommitCursor(ctx context.Context, opts ...grpc.CallOption) (CursorService_StreamingCommitCursorClient, error) { |
| 963 |
stream, err := c.cc.NewStream(ctx, &_CursorService_serviceDesc.Streams[0], "/google.cloud.pubsublite.v1.CursorService/StreamingCommitCursor", opts...) |
| 964 |
if err != nil { |
| 965 |
return nil, err |
| 966 |
} |
| 967 |
x := &cursorServiceStreamingCommitCursorClient{stream} |
| 968 |
return x, nil |
| 969 |
} |
| 970 |
|
| 971 |
type CursorService_StreamingCommitCursorClient interface { |
| 972 |
Send(*StreamingCommitCursorRequest) error |
| 973 |
Recv() (*StreamingCommitCursorResponse, error) |
| 974 |
grpc.ClientStream |
| 975 |
} |
| 976 |
|
| 977 |
type cursorServiceStreamingCommitCursorClient struct { |
| 978 |
grpc.ClientStream |
| 979 |
} |
| 980 |
|
| 981 |
func (x *cursorServiceStreamingCommitCursorClient) Send(m *StreamingCommitCursorRequest) error { |
| 982 |
return x.ClientStream.SendMsg(m) |
| 983 |
} |
| 984 |
|
| 985 |
func (x *cursorServiceStreamingCommitCursorClient) Recv() (*StreamingCommitCursorResponse, error) { |
| 986 |
m := new(StreamingCommitCursorResponse) |
| 987 |
if err := x.ClientStream.RecvMsg(m); err != nil { |
| 988 |
return nil, err |
| 989 |
} |
| 990 |
return m, nil |
| 991 |
} |
| 992 |
|
| 993 |
func (c *cursorServiceClient) CommitCursor(ctx context.Context, in *CommitCursorRequest, opts ...grpc.CallOption) (*CommitCursorResponse, error) { |
| 994 |
out := new(CommitCursorResponse) |
| 995 |
err := c.cc.Invoke(ctx, "/google.cloud.pubsublite.v1.CursorService/CommitCursor", in, out, opts...) |
| 996 |
if err != nil { |
| 997 |
return nil, err |
| 998 |
} |
| 999 |
return out, nil |
| 1000 |
} |
| 1001 |
|
| 1002 |
func (c *cursorServiceClient) ListPartitionCursors(ctx context.Context, in *ListPartitionCursorsRequest, opts ...grpc.CallOption) (*ListPartitionCursorsResponse, error) { |
| 1003 |
out := new(ListPartitionCursorsResponse) |
| 1004 |
err := c.cc.Invoke(ctx, "/google.cloud.pubsublite.v1.CursorService/ListPartitionCursors", in, out, opts...) |
| 1005 |
if err != nil { |
| 1006 |
return nil, err |
| 1007 |
} |
| 1008 |
return out, nil |
| 1009 |
} |
| 1010 |
|
| 1011 |
|
| 1012 |
type CursorServiceServer interface { |
| 1013 |
|
| 1014 |
StreamingCommitCursor(CursorService_StreamingCommitCursorServer) error |
| 1015 |
|
| 1016 |
CommitCursor(context.Context, *CommitCursorRequest) (*CommitCursorResponse, error) |
| 1017 |
|
| 1018 |
ListPartitionCursors(context.Context, *ListPartitionCursorsRequest) (*ListPartitionCursorsResponse, error) |
| 1019 |
} |
| 1020 |
|
| 1021 |
|
| 1022 |
type UnimplementedCursorServiceServer struct { |
| 1023 |
} |
| 1024 |
|
| 1025 |
func (*UnimplementedCursorServiceServer) StreamingCommitCursor(CursorService_StreamingCommitCursorServer) error { |
| 1026 |
return status.Errorf(codes.Unimplemented, "method StreamingCommitCursor not implemented") |
| 1027 |
} |
| 1028 |
func (*UnimplementedCursorServiceServer) CommitCursor(context.Context, *CommitCursorRequest) (*CommitCursorResponse, error) { |
| 1029 |
return nil, status.Errorf(codes.Unimplemented, "method CommitCursor not implemented") |
| 1030 |
} |
| 1031 |
func (*UnimplementedCursorServiceServer) ListPartitionCursors(context.Context, *ListPartitionCursorsRequest) (*ListPartitionCursorsResponse, error) { |
| 1032 |
return nil, status.Errorf(codes.Unimplemented, "method ListPartitionCursors not implemented") |
| 1033 |
} |
| 1034 |
|
| 1035 |
func RegisterCursorServiceServer(s *grpc.Server, srv CursorServiceServer) { |
| 1036 |
s.RegisterService(&_CursorService_serviceDesc, srv) |
| 1037 |
} |
| 1038 |
|
| 1039 |
func _CursorService_StreamingCommitCursor_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 1040 |
return srv.(CursorServiceServer).StreamingCommitCursor(&cursorServiceStreamingCommitCursorServer{stream}) |
| 1041 |
} |
| 1042 |
|
| 1043 |
type CursorService_StreamingCommitCursorServer interface { |
| 1044 |
Send(*StreamingCommitCursorResponse) error |
| 1045 |
Recv() (*StreamingCommitCursorRequest, error) |
| 1046 |
grpc.ServerStream |
| 1047 |
} |
| 1048 |
|
| 1049 |
type cursorServiceStreamingCommitCursorServer struct { |
| 1050 |
grpc.ServerStream |
| 1051 |
} |
| 1052 |
|
| 1053 |
func (x *cursorServiceStreamingCommitCursorServer) Send(m *StreamingCommitCursorResponse) error { |
| 1054 |
return x.ServerStream.SendMsg(m) |
| 1055 |
} |
| 1056 |
|
| 1057 |
func (x *cursorServiceStreamingCommitCursorServer) Recv() (*StreamingCommitCursorRequest, error) { |
| 1058 |
m := new(StreamingCommitCursorRequest) |
| 1059 |
if err := x.ServerStream.RecvMsg(m); err != nil { |
| 1060 |
return nil, err |
| 1061 |
} |
| 1062 |
return m, nil |
| 1063 |
} |
| 1064 |
|
| 1065 |
func _CursorService_CommitCursor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1066 |
in := new(CommitCursorRequest) |
| 1067 |
if err := dec(in); err != nil { |
| 1068 |
return nil, err |
| 1069 |
} |
| 1070 |
if interceptor == nil { |
| 1071 |
return srv.(CursorServiceServer).CommitCursor(ctx, in) |
| 1072 |
} |
| 1073 |
info := &grpc.UnaryServerInfo{ |
| 1074 |
Server: srv, |
| 1075 |
FullMethod: "/google.cloud.pubsublite.v1.CursorService/CommitCursor", |
| 1076 |
} |
| 1077 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1078 |
return srv.(CursorServiceServer).CommitCursor(ctx, req.(*CommitCursorRequest)) |
| 1079 |
} |
| 1080 |
return interceptor(ctx, in, info, handler) |
| 1081 |
} |
| 1082 |
|
| 1083 |
func _CursorService_ListPartitionCursors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1084 |
in := new(ListPartitionCursorsRequest) |
| 1085 |
if err := dec(in); err != nil { |
| 1086 |
return nil, err |
| 1087 |
} |
| 1088 |
if interceptor == nil { |
| 1089 |
return srv.(CursorServiceServer).ListPartitionCursors(ctx, in) |
| 1090 |
} |
| 1091 |
info := &grpc.UnaryServerInfo{ |
| 1092 |
Server: srv, |
| 1093 |
FullMethod: "/google.cloud.pubsublite.v1.CursorService/ListPartitionCursors", |
| 1094 |
} |
| 1095 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1096 |
return srv.(CursorServiceServer).ListPartitionCursors(ctx, req.(*ListPartitionCursorsRequest)) |
| 1097 |
} |
| 1098 |
return interceptor(ctx, in, info, handler) |
| 1099 |
} |
| 1100 |
|
| 1101 |
var _CursorService_serviceDesc = grpc.ServiceDesc{ |
| 1102 |
ServiceName: "google.cloud.pubsublite.v1.CursorService", |
| 1103 |
HandlerType: (*CursorServiceServer)(nil), |
| 1104 |
Methods: []grpc.MethodDesc{ |
| 1105 |
{ |
| 1106 |
MethodName: "CommitCursor", |
| 1107 |
Handler: _CursorService_CommitCursor_Handler, |
| 1108 |
}, |
| 1109 |
{ |
| 1110 |
MethodName: "ListPartitionCursors", |
| 1111 |
Handler: _CursorService_ListPartitionCursors_Handler, |
| 1112 |
}, |
| 1113 |
}, |
| 1114 |
Streams: []grpc.StreamDesc{ |
| 1115 |
{ |
| 1116 |
StreamName: "StreamingCommitCursor", |
| 1117 |
Handler: _CursorService_StreamingCommitCursor_Handler, |
| 1118 |
ServerStreams: true, |
| 1119 |
ClientStreams: true, |
| 1120 |
}, |
| 1121 |
}, |
| 1122 |
Metadata: "google/cloud/pubsublite/v1/cursor.proto", |
| 1123 |
} |