| 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 |
type InitialPublishRequest struct { |
| 44 |
state protoimpl.MessageState |
| 45 |
sizeCache protoimpl.SizeCache |
| 46 |
unknownFields protoimpl.UnknownFields |
| 47 |
|
| 48 |
|
| 49 |
Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` |
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
Partition int64 `protobuf:"varint,2,opt,name=partition,proto3" json:"partition,omitempty"` |
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
ClientId []byte `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` |
| 62 |
} |
| 63 |
|
| 64 |
func (x *InitialPublishRequest) Reset() { |
| 65 |
*x = InitialPublishRequest{} |
| 66 |
mi := &file_google_cloud_pubsublite_v1_publisher_proto_msgTypes[0] |
| 67 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 68 |
ms.StoreMessageInfo(mi) |
| 69 |
} |
| 70 |
|
| 71 |
func (x *InitialPublishRequest) String() string { |
| 72 |
return protoimpl.X.MessageStringOf(x) |
| 73 |
} |
| 74 |
|
| 75 |
func (*InitialPublishRequest) ProtoMessage() {} |
| 76 |
|
| 77 |
func (x *InitialPublishRequest) ProtoReflect() protoreflect.Message { |
| 78 |
mi := &file_google_cloud_pubsublite_v1_publisher_proto_msgTypes[0] |
| 79 |
if x != nil { |
| 80 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 81 |
if ms.LoadMessageInfo() == nil { |
| 82 |
ms.StoreMessageInfo(mi) |
| 83 |
} |
| 84 |
return ms |
| 85 |
} |
| 86 |
return mi.MessageOf(x) |
| 87 |
} |
| 88 |
|
| 89 |
|
| 90 |
func (*InitialPublishRequest) Descriptor() ([]byte, []int) { |
| 91 |
return file_google_cloud_pubsublite_v1_publisher_proto_rawDescGZIP(), []int{0} |
| 92 |
} |
| 93 |
|
| 94 |
func (x *InitialPublishRequest) GetTopic() string { |
| 95 |
if x != nil { |
| 96 |
return x.Topic |
| 97 |
} |
| 98 |
return "" |
| 99 |
} |
| 100 |
|
| 101 |
func (x *InitialPublishRequest) GetPartition() int64 { |
| 102 |
if x != nil { |
| 103 |
return x.Partition |
| 104 |
} |
| 105 |
return 0 |
| 106 |
} |
| 107 |
|
| 108 |
func (x *InitialPublishRequest) GetClientId() []byte { |
| 109 |
if x != nil { |
| 110 |
return x.ClientId |
| 111 |
} |
| 112 |
return nil |
| 113 |
} |
| 114 |
|
| 115 |
|
| 116 |
type InitialPublishResponse struct { |
| 117 |
state protoimpl.MessageState |
| 118 |
sizeCache protoimpl.SizeCache |
| 119 |
unknownFields protoimpl.UnknownFields |
| 120 |
} |
| 121 |
|
| 122 |
func (x *InitialPublishResponse) Reset() { |
| 123 |
*x = InitialPublishResponse{} |
| 124 |
mi := &file_google_cloud_pubsublite_v1_publisher_proto_msgTypes[1] |
| 125 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 126 |
ms.StoreMessageInfo(mi) |
| 127 |
} |
| 128 |
|
| 129 |
func (x *InitialPublishResponse) String() string { |
| 130 |
return protoimpl.X.MessageStringOf(x) |
| 131 |
} |
| 132 |
|
| 133 |
func (*InitialPublishResponse) ProtoMessage() {} |
| 134 |
|
| 135 |
func (x *InitialPublishResponse) ProtoReflect() protoreflect.Message { |
| 136 |
mi := &file_google_cloud_pubsublite_v1_publisher_proto_msgTypes[1] |
| 137 |
if x != nil { |
| 138 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 139 |
if ms.LoadMessageInfo() == nil { |
| 140 |
ms.StoreMessageInfo(mi) |
| 141 |
} |
| 142 |
return ms |
| 143 |
} |
| 144 |
return mi.MessageOf(x) |
| 145 |
} |
| 146 |
|
| 147 |
|
| 148 |
func (*InitialPublishResponse) Descriptor() ([]byte, []int) { |
| 149 |
return file_google_cloud_pubsublite_v1_publisher_proto_rawDescGZIP(), []int{1} |
| 150 |
} |
| 151 |
|
| 152 |
|
| 153 |
type MessagePublishRequest struct { |
| 154 |
state protoimpl.MessageState |
| 155 |
sizeCache protoimpl.SizeCache |
| 156 |
unknownFields protoimpl.UnknownFields |
| 157 |
|
| 158 |
|
| 159 |
Messages []*PubSubMessage `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` |
| 160 |
|
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
|
| 171 |
FirstSequenceNumber int64 `protobuf:"varint,2,opt,name=first_sequence_number,json=firstSequenceNumber,proto3" json:"first_sequence_number,omitempty"` |
| 172 |
} |
| 173 |
|
| 174 |
func (x *MessagePublishRequest) Reset() { |
| 175 |
*x = MessagePublishRequest{} |
| 176 |
mi := &file_google_cloud_pubsublite_v1_publisher_proto_msgTypes[2] |
| 177 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 178 |
ms.StoreMessageInfo(mi) |
| 179 |
} |
| 180 |
|
| 181 |
func (x *MessagePublishRequest) String() string { |
| 182 |
return protoimpl.X.MessageStringOf(x) |
| 183 |
} |
| 184 |
|
| 185 |
func (*MessagePublishRequest) ProtoMessage() {} |
| 186 |
|
| 187 |
func (x *MessagePublishRequest) ProtoReflect() protoreflect.Message { |
| 188 |
mi := &file_google_cloud_pubsublite_v1_publisher_proto_msgTypes[2] |
| 189 |
if x != nil { |
| 190 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 191 |
if ms.LoadMessageInfo() == nil { |
| 192 |
ms.StoreMessageInfo(mi) |
| 193 |
} |
| 194 |
return ms |
| 195 |
} |
| 196 |
return mi.MessageOf(x) |
| 197 |
} |
| 198 |
|
| 199 |
|
| 200 |
func (*MessagePublishRequest) Descriptor() ([]byte, []int) { |
| 201 |
return file_google_cloud_pubsublite_v1_publisher_proto_rawDescGZIP(), []int{2} |
| 202 |
} |
| 203 |
|
| 204 |
func (x *MessagePublishRequest) GetMessages() []*PubSubMessage { |
| 205 |
if x != nil { |
| 206 |
return x.Messages |
| 207 |
} |
| 208 |
return nil |
| 209 |
} |
| 210 |
|
| 211 |
func (x *MessagePublishRequest) GetFirstSequenceNumber() int64 { |
| 212 |
if x != nil { |
| 213 |
return x.FirstSequenceNumber |
| 214 |
} |
| 215 |
return 0 |
| 216 |
} |
| 217 |
|
| 218 |
|
| 219 |
type MessagePublishResponse struct { |
| 220 |
state protoimpl.MessageState |
| 221 |
sizeCache protoimpl.SizeCache |
| 222 |
unknownFields protoimpl.UnknownFields |
| 223 |
|
| 224 |
|
| 225 |
|
| 226 |
StartCursor *Cursor `protobuf:"bytes,1,opt,name=start_cursor,json=startCursor,proto3" json:"start_cursor,omitempty"` |
| 227 |
|
| 228 |
|
| 229 |
|
| 230 |
|
| 231 |
|
| 232 |
|
| 233 |
|
| 234 |
|
| 235 |
CursorRanges []*MessagePublishResponse_CursorRange `protobuf:"bytes,2,rep,name=cursor_ranges,json=cursorRanges,proto3" json:"cursor_ranges,omitempty"` |
| 236 |
} |
| 237 |
|
| 238 |
func (x *MessagePublishResponse) Reset() { |
| 239 |
*x = MessagePublishResponse{} |
| 240 |
mi := &file_google_cloud_pubsublite_v1_publisher_proto_msgTypes[3] |
| 241 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 242 |
ms.StoreMessageInfo(mi) |
| 243 |
} |
| 244 |
|
| 245 |
func (x *MessagePublishResponse) String() string { |
| 246 |
return protoimpl.X.MessageStringOf(x) |
| 247 |
} |
| 248 |
|
| 249 |
func (*MessagePublishResponse) ProtoMessage() {} |
| 250 |
|
| 251 |
func (x *MessagePublishResponse) ProtoReflect() protoreflect.Message { |
| 252 |
mi := &file_google_cloud_pubsublite_v1_publisher_proto_msgTypes[3] |
| 253 |
if x != nil { |
| 254 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 255 |
if ms.LoadMessageInfo() == nil { |
| 256 |
ms.StoreMessageInfo(mi) |
| 257 |
} |
| 258 |
return ms |
| 259 |
} |
| 260 |
return mi.MessageOf(x) |
| 261 |
} |
| 262 |
|
| 263 |
|
| 264 |
func (*MessagePublishResponse) Descriptor() ([]byte, []int) { |
| 265 |
return file_google_cloud_pubsublite_v1_publisher_proto_rawDescGZIP(), []int{3} |
| 266 |
} |
| 267 |
|
| 268 |
func (x *MessagePublishResponse) GetStartCursor() *Cursor { |
| 269 |
if x != nil { |
| 270 |
return x.StartCursor |
| 271 |
} |
| 272 |
return nil |
| 273 |
} |
| 274 |
|
| 275 |
func (x *MessagePublishResponse) GetCursorRanges() []*MessagePublishResponse_CursorRange { |
| 276 |
if x != nil { |
| 277 |
return x.CursorRanges |
| 278 |
} |
| 279 |
return nil |
| 280 |
} |
| 281 |
|
| 282 |
|
| 283 |
type PublishRequest struct { |
| 284 |
state protoimpl.MessageState |
| 285 |
sizeCache protoimpl.SizeCache |
| 286 |
unknownFields protoimpl.UnknownFields |
| 287 |
|
| 288 |
|
| 289 |
|
| 290 |
|
| 291 |
|
| 292 |
|
| 293 |
|
| 294 |
RequestType isPublishRequest_RequestType `protobuf_oneof:"request_type"` |
| 295 |
} |
| 296 |
|
| 297 |
func (x *PublishRequest) Reset() { |
| 298 |
*x = PublishRequest{} |
| 299 |
mi := &file_google_cloud_pubsublite_v1_publisher_proto_msgTypes[4] |
| 300 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 301 |
ms.StoreMessageInfo(mi) |
| 302 |
} |
| 303 |
|
| 304 |
func (x *PublishRequest) String() string { |
| 305 |
return protoimpl.X.MessageStringOf(x) |
| 306 |
} |
| 307 |
|
| 308 |
func (*PublishRequest) ProtoMessage() {} |
| 309 |
|
| 310 |
func (x *PublishRequest) ProtoReflect() protoreflect.Message { |
| 311 |
mi := &file_google_cloud_pubsublite_v1_publisher_proto_msgTypes[4] |
| 312 |
if x != nil { |
| 313 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 314 |
if ms.LoadMessageInfo() == nil { |
| 315 |
ms.StoreMessageInfo(mi) |
| 316 |
} |
| 317 |
return ms |
| 318 |
} |
| 319 |
return mi.MessageOf(x) |
| 320 |
} |
| 321 |
|
| 322 |
|
| 323 |
func (*PublishRequest) Descriptor() ([]byte, []int) { |
| 324 |
return file_google_cloud_pubsublite_v1_publisher_proto_rawDescGZIP(), []int{4} |
| 325 |
} |
| 326 |
|
| 327 |
func (m *PublishRequest) GetRequestType() isPublishRequest_RequestType { |
| 328 |
if m != nil { |
| 329 |
return m.RequestType |
| 330 |
} |
| 331 |
return nil |
| 332 |
} |
| 333 |
|
| 334 |
func (x *PublishRequest) GetInitialRequest() *InitialPublishRequest { |
| 335 |
if x, ok := x.GetRequestType().(*PublishRequest_InitialRequest); ok { |
| 336 |
return x.InitialRequest |
| 337 |
} |
| 338 |
return nil |
| 339 |
} |
| 340 |
|
| 341 |
func (x *PublishRequest) GetMessagePublishRequest() *MessagePublishRequest { |
| 342 |
if x, ok := x.GetRequestType().(*PublishRequest_MessagePublishRequest); ok { |
| 343 |
return x.MessagePublishRequest |
| 344 |
} |
| 345 |
return nil |
| 346 |
} |
| 347 |
|
| 348 |
type isPublishRequest_RequestType interface { |
| 349 |
isPublishRequest_RequestType() |
| 350 |
} |
| 351 |
|
| 352 |
type PublishRequest_InitialRequest struct { |
| 353 |
|
| 354 |
InitialRequest *InitialPublishRequest `protobuf:"bytes,1,opt,name=initial_request,json=initialRequest,proto3,oneof"` |
| 355 |
} |
| 356 |
|
| 357 |
type PublishRequest_MessagePublishRequest struct { |
| 358 |
|
| 359 |
MessagePublishRequest *MessagePublishRequest `protobuf:"bytes,2,opt,name=message_publish_request,json=messagePublishRequest,proto3,oneof"` |
| 360 |
} |
| 361 |
|
| 362 |
func (*PublishRequest_InitialRequest) isPublishRequest_RequestType() {} |
| 363 |
|
| 364 |
func (*PublishRequest_MessagePublishRequest) isPublishRequest_RequestType() {} |
| 365 |
|
| 366 |
|
| 367 |
type PublishResponse struct { |
| 368 |
state protoimpl.MessageState |
| 369 |
sizeCache protoimpl.SizeCache |
| 370 |
unknownFields protoimpl.UnknownFields |
| 371 |
|
| 372 |
|
| 373 |
|
| 374 |
|
| 375 |
|
| 376 |
|
| 377 |
|
| 378 |
ResponseType isPublishResponse_ResponseType `protobuf_oneof:"response_type"` |
| 379 |
} |
| 380 |
|
| 381 |
func (x *PublishResponse) Reset() { |
| 382 |
*x = PublishResponse{} |
| 383 |
mi := &file_google_cloud_pubsublite_v1_publisher_proto_msgTypes[5] |
| 384 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 385 |
ms.StoreMessageInfo(mi) |
| 386 |
} |
| 387 |
|
| 388 |
func (x *PublishResponse) String() string { |
| 389 |
return protoimpl.X.MessageStringOf(x) |
| 390 |
} |
| 391 |
|
| 392 |
func (*PublishResponse) ProtoMessage() {} |
| 393 |
|
| 394 |
func (x *PublishResponse) ProtoReflect() protoreflect.Message { |
| 395 |
mi := &file_google_cloud_pubsublite_v1_publisher_proto_msgTypes[5] |
| 396 |
if x != nil { |
| 397 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 398 |
if ms.LoadMessageInfo() == nil { |
| 399 |
ms.StoreMessageInfo(mi) |
| 400 |
} |
| 401 |
return ms |
| 402 |
} |
| 403 |
return mi.MessageOf(x) |
| 404 |
} |
| 405 |
|
| 406 |
|
| 407 |
func (*PublishResponse) Descriptor() ([]byte, []int) { |
| 408 |
return file_google_cloud_pubsublite_v1_publisher_proto_rawDescGZIP(), []int{5} |
| 409 |
} |
| 410 |
|
| 411 |
func (m *PublishResponse) GetResponseType() isPublishResponse_ResponseType { |
| 412 |
if m != nil { |
| 413 |
return m.ResponseType |
| 414 |
} |
| 415 |
return nil |
| 416 |
} |
| 417 |
|
| 418 |
func (x *PublishResponse) GetInitialResponse() *InitialPublishResponse { |
| 419 |
if x, ok := x.GetResponseType().(*PublishResponse_InitialResponse); ok { |
| 420 |
return x.InitialResponse |
| 421 |
} |
| 422 |
return nil |
| 423 |
} |
| 424 |
|
| 425 |
func (x *PublishResponse) GetMessageResponse() *MessagePublishResponse { |
| 426 |
if x, ok := x.GetResponseType().(*PublishResponse_MessageResponse); ok { |
| 427 |
return x.MessageResponse |
| 428 |
} |
| 429 |
return nil |
| 430 |
} |
| 431 |
|
| 432 |
type isPublishResponse_ResponseType interface { |
| 433 |
isPublishResponse_ResponseType() |
| 434 |
} |
| 435 |
|
| 436 |
type PublishResponse_InitialResponse struct { |
| 437 |
|
| 438 |
InitialResponse *InitialPublishResponse `protobuf:"bytes,1,opt,name=initial_response,json=initialResponse,proto3,oneof"` |
| 439 |
} |
| 440 |
|
| 441 |
type PublishResponse_MessageResponse struct { |
| 442 |
|
| 443 |
MessageResponse *MessagePublishResponse `protobuf:"bytes,2,opt,name=message_response,json=messageResponse,proto3,oneof"` |
| 444 |
} |
| 445 |
|
| 446 |
func (*PublishResponse_InitialResponse) isPublishResponse_ResponseType() {} |
| 447 |
|
| 448 |
func (*PublishResponse_MessageResponse) isPublishResponse_ResponseType() {} |
| 449 |
|
| 450 |
|
| 451 |
type MessagePublishResponse_CursorRange struct { |
| 452 |
state protoimpl.MessageState |
| 453 |
sizeCache protoimpl.SizeCache |
| 454 |
unknownFields protoimpl.UnknownFields |
| 455 |
|
| 456 |
|
| 457 |
|
| 458 |
StartCursor *Cursor `protobuf:"bytes,1,opt,name=start_cursor,json=startCursor,proto3" json:"start_cursor,omitempty"` |
| 459 |
|
| 460 |
|
| 461 |
StartIndex int32 `protobuf:"varint,2,opt,name=start_index,json=startIndex,proto3" json:"start_index,omitempty"` |
| 462 |
|
| 463 |
EndIndex int32 `protobuf:"varint,3,opt,name=end_index,json=endIndex,proto3" json:"end_index,omitempty"` |
| 464 |
} |
| 465 |
|
| 466 |
func (x *MessagePublishResponse_CursorRange) Reset() { |
| 467 |
*x = MessagePublishResponse_CursorRange{} |
| 468 |
mi := &file_google_cloud_pubsublite_v1_publisher_proto_msgTypes[6] |
| 469 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 470 |
ms.StoreMessageInfo(mi) |
| 471 |
} |
| 472 |
|
| 473 |
func (x *MessagePublishResponse_CursorRange) String() string { |
| 474 |
return protoimpl.X.MessageStringOf(x) |
| 475 |
} |
| 476 |
|
| 477 |
func (*MessagePublishResponse_CursorRange) ProtoMessage() {} |
| 478 |
|
| 479 |
func (x *MessagePublishResponse_CursorRange) ProtoReflect() protoreflect.Message { |
| 480 |
mi := &file_google_cloud_pubsublite_v1_publisher_proto_msgTypes[6] |
| 481 |
if x != nil { |
| 482 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 483 |
if ms.LoadMessageInfo() == nil { |
| 484 |
ms.StoreMessageInfo(mi) |
| 485 |
} |
| 486 |
return ms |
| 487 |
} |
| 488 |
return mi.MessageOf(x) |
| 489 |
} |
| 490 |
|
| 491 |
|
| 492 |
func (*MessagePublishResponse_CursorRange) Descriptor() ([]byte, []int) { |
| 493 |
return file_google_cloud_pubsublite_v1_publisher_proto_rawDescGZIP(), []int{3, 0} |
| 494 |
} |
| 495 |
|
| 496 |
func (x *MessagePublishResponse_CursorRange) GetStartCursor() *Cursor { |
| 497 |
if x != nil { |
| 498 |
return x.StartCursor |
| 499 |
} |
| 500 |
return nil |
| 501 |
} |
| 502 |
|
| 503 |
func (x *MessagePublishResponse_CursorRange) GetStartIndex() int32 { |
| 504 |
if x != nil { |
| 505 |
return x.StartIndex |
| 506 |
} |
| 507 |
return 0 |
| 508 |
} |
| 509 |
|
| 510 |
func (x *MessagePublishResponse_CursorRange) GetEndIndex() int32 { |
| 511 |
if x != nil { |
| 512 |
return x.EndIndex |
| 513 |
} |
| 514 |
return 0 |
| 515 |
} |
| 516 |
|
| 517 |
var File_google_cloud_pubsublite_v1_publisher_proto protoreflect.FileDescriptor |
| 518 |
|
| 519 |
var file_google_cloud_pubsublite_v1_publisher_proto_rawDesc = []byte{ |
| 520 |
0x0a, 0x2a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x70, |
| 521 |
0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x75, 0x62, |
| 522 |
0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, |
| 523 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, |
| 524 |
0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 525 |
0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, |
| 526 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, |
| 527 |
0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, |
| 528 |
0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x70, 0x75, |
| 529 |
0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, |
| 530 |
0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x68, 0x0a, 0x15, 0x49, 0x6e, 0x69, 0x74, |
| 531 |
0x69, 0x61, 0x6c, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, |
| 532 |
0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, |
| 533 |
0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, |
| 534 |
0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, |
| 535 |
0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, |
| 536 |
0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, |
| 537 |
0x49, 0x64, 0x22, 0x18, 0x0a, 0x16, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x50, 0x75, 0x62, |
| 538 |
0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x92, 0x01, 0x0a, |
| 539 |
0x15, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, |
| 540 |
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, |
| 541 |
0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 542 |
0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, |
| 543 |
0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x4d, 0x65, 0x73, 0x73, |
| 544 |
0x61, 0x67, 0x65, 0x52, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x32, 0x0a, |
| 545 |
0x15, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x5f, |
| 546 |
0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x66, 0x69, |
| 547 |
0x72, 0x73, 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, |
| 548 |
0x72, 0x22, 0xd9, 0x02, 0x0a, 0x16, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x75, 0x62, |
| 549 |
0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x0c, |
| 550 |
0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, |
| 551 |
0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 552 |
0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, |
| 553 |
0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x43, 0x75, 0x72, |
| 554 |
0x73, 0x6f, 0x72, 0x12, 0x63, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x5f, 0x72, 0x61, |
| 555 |
0x6e, 0x67, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, |
| 556 |
0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, |
| 557 |
0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, |
| 558 |
0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x43, |
| 559 |
0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x73, |
| 560 |
0x6f, 0x72, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x1a, 0x92, 0x01, 0x0a, 0x0b, 0x43, 0x75, 0x72, |
| 561 |
0x73, 0x6f, 0x72, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, |
| 562 |
0x74, 0x5f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, |
| 563 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, |
| 564 |
0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x73, |
| 565 |
0x6f, 0x72, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x12, |
| 566 |
0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, |
| 567 |
0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, |
| 568 |
0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, |
| 569 |
0x01, 0x28, 0x05, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x22, 0xeb, 0x01, |
| 570 |
0x0a, 0x0e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, |
| 571 |
0x12, 0x5c, 0x0a, 0x0f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, |
| 572 |
0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 573 |
0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, |
| 574 |
0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x50, 0x75, |
| 575 |
0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0e, |
| 576 |
0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x6b, |
| 577 |
0x0a, 0x17, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, |
| 578 |
0x68, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 579 |
0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, |
| 580 |
0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x73, |
| 581 |
0x73, 0x61, 0x67, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, |
| 582 |
0x73, 0x74, 0x48, 0x00, 0x52, 0x15, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x75, 0x62, |
| 583 |
0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x0e, 0x0a, 0x0c, 0x72, |
| 584 |
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0xe4, 0x01, 0x0a, 0x0f, |
| 585 |
0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, |
| 586 |
0x5f, 0x0a, 0x10, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, |
| 587 |
0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 588 |
0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, |
| 589 |
0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x50, 0x75, |
| 590 |
0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, |
| 591 |
0x0f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, |
| 592 |
0x12, 0x5f, 0x0a, 0x10, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x70, |
| 593 |
0x6f, 0x6e, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, |
| 594 |
0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, |
| 595 |
0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, |
| 596 |
0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, |
| 597 |
0x52, 0x0f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, |
| 598 |
0x65, 0x42, 0x0f, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x74, 0x79, |
| 599 |
0x70, 0x65, 0x32, 0xcb, 0x01, 0x0a, 0x10, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, |
| 600 |
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x68, 0x0a, 0x07, 0x50, 0x75, 0x62, 0x6c, 0x69, |
| 601 |
0x73, 0x68, 0x12, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 602 |
0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, |
| 603 |
0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, |
| 604 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, |
| 605 |
0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, |
| 606 |
0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, |
| 607 |
0x01, 0x1a, 0x4d, 0xca, 0x41, 0x19, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, |
| 608 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, |
| 609 |
0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, |
| 610 |
0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, |
| 611 |
0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, |
| 612 |
0x42, 0xd2, 0x01, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 613 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, |
| 614 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x42, 0x0e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, |
| 615 |
0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 616 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x75, |
| 617 |
0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x70, |
| 618 |
0x75, 0x62, 0x73, 0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x70, 0x62, 0x3b, 0x70, 0x75, 0x62, 0x73, |
| 619 |
0x75, 0x62, 0x6c, 0x69, 0x74, 0x65, 0x70, 0x62, 0xf8, 0x01, 0x01, 0xaa, 0x02, 0x1a, 0x47, 0x6f, |
| 620 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x50, 0x75, 0x62, 0x53, 0x75, |
| 621 |
0x62, 0x4c, 0x69, 0x74, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, |
| 622 |
0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x4c, 0x69, |
| 623 |
0x74, 0x65, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, |
| 624 |
0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x4c, 0x69, 0x74, |
| 625 |
0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 626 |
} |
| 627 |
|
| 628 |
var ( |
| 629 |
file_google_cloud_pubsublite_v1_publisher_proto_rawDescOnce sync.Once |
| 630 |
file_google_cloud_pubsublite_v1_publisher_proto_rawDescData = file_google_cloud_pubsublite_v1_publisher_proto_rawDesc |
| 631 |
) |
| 632 |
|
| 633 |
func file_google_cloud_pubsublite_v1_publisher_proto_rawDescGZIP() []byte { |
| 634 |
file_google_cloud_pubsublite_v1_publisher_proto_rawDescOnce.Do(func() { |
| 635 |
file_google_cloud_pubsublite_v1_publisher_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_pubsublite_v1_publisher_proto_rawDescData) |
| 636 |
}) |
| 637 |
return file_google_cloud_pubsublite_v1_publisher_proto_rawDescData |
| 638 |
} |
| 639 |
|
| 640 |
var file_google_cloud_pubsublite_v1_publisher_proto_msgTypes = make([]protoimpl.MessageInfo, 7) |
| 641 |
var file_google_cloud_pubsublite_v1_publisher_proto_goTypes = []any{ |
| 642 |
(*InitialPublishRequest)(nil), |
| 643 |
(*InitialPublishResponse)(nil), |
| 644 |
(*MessagePublishRequest)(nil), |
| 645 |
(*MessagePublishResponse)(nil), |
| 646 |
(*PublishRequest)(nil), |
| 647 |
(*PublishResponse)(nil), |
| 648 |
(*MessagePublishResponse_CursorRange)(nil), |
| 649 |
(*PubSubMessage)(nil), |
| 650 |
(*Cursor)(nil), |
| 651 |
} |
| 652 |
var file_google_cloud_pubsublite_v1_publisher_proto_depIdxs = []int32{ |
| 653 |
7, |
| 654 |
8, |
| 655 |
6, |
| 656 |
0, |
| 657 |
2, |
| 658 |
1, |
| 659 |
3, |
| 660 |
8, |
| 661 |
4, |
| 662 |
5, |
| 663 |
9, |
| 664 |
8, |
| 665 |
8, |
| 666 |
8, |
| 667 |
0, |
| 668 |
} |
| 669 |
|
| 670 |
func init() { file_google_cloud_pubsublite_v1_publisher_proto_init() } |
| 671 |
func file_google_cloud_pubsublite_v1_publisher_proto_init() { |
| 672 |
if File_google_cloud_pubsublite_v1_publisher_proto != nil { |
| 673 |
return |
| 674 |
} |
| 675 |
file_google_cloud_pubsublite_v1_common_proto_init() |
| 676 |
file_google_cloud_pubsublite_v1_publisher_proto_msgTypes[4].OneofWrappers = []any{ |
| 677 |
(*PublishRequest_InitialRequest)(nil), |
| 678 |
(*PublishRequest_MessagePublishRequest)(nil), |
| 679 |
} |
| 680 |
file_google_cloud_pubsublite_v1_publisher_proto_msgTypes[5].OneofWrappers = []any{ |
| 681 |
(*PublishResponse_InitialResponse)(nil), |
| 682 |
(*PublishResponse_MessageResponse)(nil), |
| 683 |
} |
| 684 |
type x struct{} |
| 685 |
out := protoimpl.TypeBuilder{ |
| 686 |
File: protoimpl.DescBuilder{ |
| 687 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 688 |
RawDescriptor: file_google_cloud_pubsublite_v1_publisher_proto_rawDesc, |
| 689 |
NumEnums: 0, |
| 690 |
NumMessages: 7, |
| 691 |
NumExtensions: 0, |
| 692 |
NumServices: 1, |
| 693 |
}, |
| 694 |
GoTypes: file_google_cloud_pubsublite_v1_publisher_proto_goTypes, |
| 695 |
DependencyIndexes: file_google_cloud_pubsublite_v1_publisher_proto_depIdxs, |
| 696 |
MessageInfos: file_google_cloud_pubsublite_v1_publisher_proto_msgTypes, |
| 697 |
}.Build() |
| 698 |
File_google_cloud_pubsublite_v1_publisher_proto = out.File |
| 699 |
file_google_cloud_pubsublite_v1_publisher_proto_rawDesc = nil |
| 700 |
file_google_cloud_pubsublite_v1_publisher_proto_goTypes = nil |
| 701 |
file_google_cloud_pubsublite_v1_publisher_proto_depIdxs = nil |
| 702 |
} |
| 703 |
|
| 704 |
|
| 705 |
var _ context.Context |
| 706 |
var _ grpc.ClientConnInterface |
| 707 |
|
| 708 |
|
| 709 |
|
| 710 |
const _ = grpc.SupportPackageIsVersion6 |
| 711 |
|
| 712 |
|
| 713 |
|
| 714 |
|
| 715 |
type PublisherServiceClient interface { |
| 716 |
|
| 717 |
|
| 718 |
|
| 719 |
|
| 720 |
|
| 721 |
|
| 722 |
|
| 723 |
Publish(ctx context.Context, opts ...grpc.CallOption) (PublisherService_PublishClient, error) |
| 724 |
} |
| 725 |
|
| 726 |
type publisherServiceClient struct { |
| 727 |
cc grpc.ClientConnInterface |
| 728 |
} |
| 729 |
|
| 730 |
func NewPublisherServiceClient(cc grpc.ClientConnInterface) PublisherServiceClient { |
| 731 |
return &publisherServiceClient{cc} |
| 732 |
} |
| 733 |
|
| 734 |
func (c *publisherServiceClient) Publish(ctx context.Context, opts ...grpc.CallOption) (PublisherService_PublishClient, error) { |
| 735 |
stream, err := c.cc.NewStream(ctx, &_PublisherService_serviceDesc.Streams[0], "/google.cloud.pubsublite.v1.PublisherService/Publish", opts...) |
| 736 |
if err != nil { |
| 737 |
return nil, err |
| 738 |
} |
| 739 |
x := &publisherServicePublishClient{stream} |
| 740 |
return x, nil |
| 741 |
} |
| 742 |
|
| 743 |
type PublisherService_PublishClient interface { |
| 744 |
Send(*PublishRequest) error |
| 745 |
Recv() (*PublishResponse, error) |
| 746 |
grpc.ClientStream |
| 747 |
} |
| 748 |
|
| 749 |
type publisherServicePublishClient struct { |
| 750 |
grpc.ClientStream |
| 751 |
} |
| 752 |
|
| 753 |
func (x *publisherServicePublishClient) Send(m *PublishRequest) error { |
| 754 |
return x.ClientStream.SendMsg(m) |
| 755 |
} |
| 756 |
|
| 757 |
func (x *publisherServicePublishClient) Recv() (*PublishResponse, error) { |
| 758 |
m := new(PublishResponse) |
| 759 |
if err := x.ClientStream.RecvMsg(m); err != nil { |
| 760 |
return nil, err |
| 761 |
} |
| 762 |
return m, nil |
| 763 |
} |
| 764 |
|
| 765 |
|
| 766 |
type PublisherServiceServer interface { |
| 767 |
|
| 768 |
|
| 769 |
|
| 770 |
|
| 771 |
|
| 772 |
|
| 773 |
|
| 774 |
Publish(PublisherService_PublishServer) error |
| 775 |
} |
| 776 |
|
| 777 |
|
| 778 |
type UnimplementedPublisherServiceServer struct { |
| 779 |
} |
| 780 |
|
| 781 |
func (*UnimplementedPublisherServiceServer) Publish(PublisherService_PublishServer) error { |
| 782 |
return status.Errorf(codes.Unimplemented, "method Publish not implemented") |
| 783 |
} |
| 784 |
|
| 785 |
func RegisterPublisherServiceServer(s *grpc.Server, srv PublisherServiceServer) { |
| 786 |
s.RegisterService(&_PublisherService_serviceDesc, srv) |
| 787 |
} |
| 788 |
|
| 789 |
func _PublisherService_Publish_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 790 |
return srv.(PublisherServiceServer).Publish(&publisherServicePublishServer{stream}) |
| 791 |
} |
| 792 |
|
| 793 |
type PublisherService_PublishServer interface { |
| 794 |
Send(*PublishResponse) error |
| 795 |
Recv() (*PublishRequest, error) |
| 796 |
grpc.ServerStream |
| 797 |
} |
| 798 |
|
| 799 |
type publisherServicePublishServer struct { |
| 800 |
grpc.ServerStream |
| 801 |
} |
| 802 |
|
| 803 |
func (x *publisherServicePublishServer) Send(m *PublishResponse) error { |
| 804 |
return x.ServerStream.SendMsg(m) |
| 805 |
} |
| 806 |
|
| 807 |
func (x *publisherServicePublishServer) Recv() (*PublishRequest, error) { |
| 808 |
m := new(PublishRequest) |
| 809 |
if err := x.ServerStream.RecvMsg(m); err != nil { |
| 810 |
return nil, err |
| 811 |
} |
| 812 |
return m, nil |
| 813 |
} |
| 814 |
|
| 815 |
var _PublisherService_serviceDesc = grpc.ServiceDesc{ |
| 816 |
ServiceName: "google.cloud.pubsublite.v1.PublisherService", |
| 817 |
HandlerType: (*PublisherServiceServer)(nil), |
| 818 |
Methods: []grpc.MethodDesc{}, |
| 819 |
Streams: []grpc.StreamDesc{ |
| 820 |
{ |
| 821 |
StreamName: "Publish", |
| 822 |
Handler: _PublisherService_Publish_Handler, |
| 823 |
ServerStreams: true, |
| 824 |
ClientStreams: true, |
| 825 |
}, |
| 826 |
}, |
| 827 |
Metadata: "google/cloud/pubsublite/v1/publisher.proto", |
| 828 |
} |