github.com/ydb-platform/ydb-go-sdk/v3@v3.89.2/trace/topic.go (about) 1 package trace 2 3 import ( 4 "context" 5 ) 6 7 // tool gtrace used from ./internal/cmd/gtrace 8 9 //go:generate gtrace 10 11 type ( 12 // Topic specified trace of topic reader client activity. 13 // gtrace:gen 14 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 15 Topic struct { 16 // TopicReaderCustomerEvents - upper level, on bridge with customer code 17 18 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 19 OnReaderStart func(info TopicReaderStartInfo) 20 21 // TopicReaderStreamLifeCycleEvents 22 23 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 24 OnReaderReconnect func(TopicReaderReconnectStartInfo) func(TopicReaderReconnectDoneInfo) 25 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 26 OnReaderReconnectRequest func(TopicReaderReconnectRequestInfo) 27 28 // TopicReaderPartitionEvents 29 30 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 31 OnReaderPartitionReadStartResponse func( 32 TopicReaderPartitionReadStartResponseStartInfo, 33 ) func( 34 TopicReaderPartitionReadStartResponseDoneInfo, 35 ) 36 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 37 OnReaderPartitionReadStopResponse func( 38 TopicReaderPartitionReadStopResponseStartInfo, 39 ) func( 40 TopicReaderPartitionReadStopResponseDoneInfo, 41 ) 42 43 // TopicReaderStreamEvents 44 45 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 46 OnReaderCommit func(TopicReaderCommitStartInfo) func(TopicReaderCommitDoneInfo) 47 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 48 OnReaderSendCommitMessage func(TopicReaderSendCommitMessageStartInfo) func(TopicReaderSendCommitMessageDoneInfo) 49 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 50 OnReaderCommittedNotify func(TopicReaderCommittedNotifyInfo) 51 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 52 OnReaderClose func(TopicReaderCloseStartInfo) func(TopicReaderCloseDoneInfo) 53 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 54 OnReaderInit func(TopicReaderInitStartInfo) func(TopicReaderInitDoneInfo) 55 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 56 OnReaderError func(TopicReaderErrorInfo) 57 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 58 OnReaderUpdateToken func( 59 OnReadUpdateTokenStartInfo, 60 ) func( 61 OnReadUpdateTokenMiddleTokenReceivedInfo, 62 ) func( 63 OnReadStreamUpdateTokenDoneInfo, 64 ) 65 66 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 67 OnReaderPopBatchTx func(TopicReaderPopBatchTxStartInfo) func(TopicReaderPopBatchTxDoneInfo) 68 69 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 70 OnReaderStreamPopBatchTx func( 71 TopicReaderStreamPopBatchTxStartInfo, 72 ) func( 73 TopicReaderStreamPopBatchTxDoneInfo, 74 ) 75 76 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 77 OnReaderUpdateOffsetsInTransaction func( 78 TopicReaderOnUpdateOffsetsInTransactionStartInfo, 79 ) func( 80 TopicReaderOnUpdateOffsetsInTransactionDoneInfo, 81 ) 82 83 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 84 OnReaderTransactionCompleted func( 85 TopicReaderTransactionCompletedStartInfo, 86 ) func( 87 TopicReaderTransactionCompletedDoneInfo, 88 ) 89 90 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 91 OnReaderTransactionRollback func( 92 TopicReaderTransactionRollbackStartInfo, 93 ) func( 94 TopicReaderTransactionRollbackDoneInfo, 95 ) 96 97 // TopicReaderMessageEvents 98 99 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 100 OnReaderSentDataRequest func(TopicReaderSentDataRequestInfo) 101 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 102 OnReaderReceiveDataResponse func(TopicReaderReceiveDataResponseStartInfo) func(TopicReaderReceiveDataResponseDoneInfo) 103 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 104 OnReaderReadMessages func(TopicReaderReadMessagesStartInfo) func(TopicReaderReadMessagesDoneInfo) 105 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 106 OnReaderUnknownGrpcMessage func(OnReadUnknownGrpcMessageInfo) 107 108 // TopicWriterStreamLifeCycleEvents 109 110 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 111 OnWriterReconnect func(TopicWriterReconnectStartInfo) func(TopicWriterReconnectDoneInfo) 112 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 113 OnWriterInitStream func(TopicWriterInitStreamStartInfo) func(TopicWriterInitStreamDoneInfo) 114 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 115 OnWriterClose func(TopicWriterCloseStartInfo) func(TopicWriterCloseDoneInfo) 116 117 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 118 OnWriterBeforeCommitTransaction func( 119 TopicOnWriterBeforeCommitTransactionStartInfo, 120 ) func(TopicOnWriterBeforeCommitTransactionDoneInfo) 121 122 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 123 OnWriterAfterFinishTransaction func( 124 TopicOnWriterAfterFinishTransactionStartInfo, 125 ) func(TopicOnWriterAfterFinishTransactionDoneInfo) 126 127 // TopicWriterStreamEvents 128 129 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 130 OnWriterCompressMessages func(TopicWriterCompressMessagesStartInfo) func(TopicWriterCompressMessagesDoneInfo) 131 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 132 OnWriterSendMessages func(TopicWriterSendMessagesStartInfo) func(TopicWriterSendMessagesDoneInfo) 133 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 134 OnWriterReceiveResult func(TopicWriterResultMessagesInfo) 135 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 136 OnWriterReadUnknownGrpcMessage func(TopicOnWriterReadUnknownGrpcMessageInfo) 137 } 138 139 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 140 TopicReaderPartitionReadStartResponseStartInfo struct { 141 ReaderConnectionID string 142 PartitionContext *context.Context 143 Topic string 144 PartitionID int64 145 PartitionSessionID int64 146 } 147 148 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 149 TopicReaderStartInfo struct { 150 ReaderID int64 151 Consumer string 152 Error error 153 } 154 155 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 156 TopicReaderPartitionReadStartResponseDoneInfo struct { 157 ReadOffset *int64 158 CommitOffset *int64 159 Error error 160 } 161 162 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 163 TopicReaderPartitionReadStopResponseStartInfo struct { 164 ReaderConnectionID string 165 PartitionContext context.Context //nolint:containedctx 166 Topic string 167 PartitionID int64 168 PartitionSessionID int64 169 CommittedOffset int64 170 Graceful bool 171 } 172 173 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 174 TopicReaderPartitionReadStopResponseDoneInfo struct { 175 Error error 176 } 177 178 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 179 TopicReaderSendCommitMessageStartInfo struct { 180 CommitsInfo TopicReaderStreamSendCommitMessageStartMessageInfo 181 } 182 183 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 184 TopicReaderStreamCommitInfo struct { 185 Topic string 186 PartitionID int64 187 PartitionSessionID int64 188 StartOffset int64 189 EndOffset int64 190 } 191 192 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 193 TopicReaderStreamSendCommitMessageStartMessageInfo interface { 194 GetCommitsInfo() []TopicReaderStreamCommitInfo 195 } 196 197 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 198 TopicReaderSendCommitMessageDoneInfo struct { 199 Error error 200 } 201 202 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 203 TopicReaderCommittedNotifyInfo struct { 204 ReaderConnectionID string 205 Topic string 206 PartitionID int64 207 PartitionSessionID int64 208 CommittedOffset int64 209 } 210 211 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 212 TopicReaderErrorInfo struct { 213 ReaderConnectionID string 214 Error error 215 } 216 217 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 218 TopicReaderSentDataRequestInfo struct { 219 ReaderConnectionID string 220 RequestBytes int 221 LocalBufferSizeAfterSent int 222 } 223 224 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 225 TopicReaderReceiveDataResponseStartInfo struct { 226 ReaderConnectionID string 227 LocalBufferSizeAfterReceive int 228 DataResponse TopicReaderDataResponseInfo 229 } 230 231 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 232 TopicReaderDataResponseInfo interface { 233 GetBytesSize() int 234 GetPartitionBatchMessagesCounts() (partitionCount, batchCount, messagesCount int) 235 } 236 237 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 238 TopicReaderReceiveDataResponseDoneInfo struct { 239 Error error 240 } 241 242 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 243 TopicReaderReadMessagesStartInfo struct { 244 RequestContext *context.Context 245 MinCount int 246 MaxCount int 247 FreeBufferCapacity int 248 } 249 250 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 251 TopicReaderReadMessagesDoneInfo struct { 252 MessagesCount int 253 Topic string 254 PartitionID int64 255 PartitionSessionID int64 256 OffsetStart int64 257 OffsetEnd int64 258 FreeBufferCapacity int 259 Error error 260 } 261 262 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 263 OnReadUnknownGrpcMessageInfo struct { 264 ReaderConnectionID string 265 Error error 266 } 267 268 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 269 TopicReaderReconnectStartInfo struct { 270 Reason error 271 } 272 273 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 274 TopicReaderReconnectDoneInfo struct { 275 Error error 276 } 277 278 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 279 TopicReaderReconnectRequestInfo struct { 280 Reason error 281 WasSent bool 282 } 283 284 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 285 TopicReaderCommitStartInfo struct { 286 RequestContext *context.Context 287 Topic string 288 PartitionID int64 289 PartitionSessionID int64 290 StartOffset int64 291 EndOffset int64 292 } 293 294 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 295 TopicReaderCommitDoneInfo struct { 296 Error error 297 } 298 299 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 300 TopicReaderCloseStartInfo struct { 301 ReaderConnectionID string 302 CloseReason error 303 } 304 305 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 306 TopicReaderCloseDoneInfo struct { 307 CloseError error 308 } 309 310 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 311 TopicReaderInitStartInfo struct { 312 PreInitReaderConnectionID string 313 InitRequestInfo TopicReadStreamInitRequestInfo 314 } 315 316 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 317 TopicReadStreamInitRequestInfo interface { 318 GetConsumer() string 319 GetTopics() []string 320 } 321 322 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 323 TopicReaderInitDoneInfo struct { 324 ReaderConnectionID string 325 Error error 326 } 327 328 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 329 OnReadUpdateTokenStartInfo struct { 330 ReaderConnectionID string 331 } 332 333 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 334 OnReadUpdateTokenMiddleTokenReceivedInfo struct { 335 TokenLen int 336 Error error 337 } 338 339 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 340 OnReadStreamUpdateTokenDoneInfo struct { 341 Error error 342 } 343 344 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 345 TopicReaderPopBatchTxStartInfo struct { 346 Context *context.Context 347 ReaderID int64 348 TransactionSessionID string 349 Tx txInfo 350 } 351 352 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 353 TopicReaderPopBatchTxDoneInfo struct { 354 StartOffset int64 355 EndOffset int64 356 MessagesCount int 357 Error error 358 } 359 360 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 361 TopicReaderStreamPopBatchTxStartInfo struct { 362 Context *context.Context 363 ReaderID int64 364 ReaderConnectionID string 365 TransactionSessionID string 366 Tx txInfo 367 } 368 369 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 370 TopicReaderStreamPopBatchTxDoneInfo struct { 371 Error error 372 } 373 374 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 375 TopicReaderOnUpdateOffsetsInTransactionStartInfo struct { 376 Context *context.Context 377 ReaderID int64 378 ReaderConnectionID string 379 TransactionSessionID string 380 Tx txInfo 381 } 382 383 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 384 TopicReaderOnUpdateOffsetsInTransactionDoneInfo struct { 385 Error error 386 } 387 388 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 389 TopicReaderTransactionCompletedStartInfo struct { 390 Context *context.Context 391 ReaderID int64 392 ReaderConnectionID string 393 TransactionSessionID string 394 Tx txInfo 395 TransactionResult error 396 } 397 398 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 399 TopicReaderTransactionCompletedDoneInfo struct{} 400 401 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 402 TopicReaderTransactionRollbackStartInfo struct { 403 Context *context.Context 404 ReaderID int64 405 ReaderConnectionID string 406 TransactionSessionID string 407 Tx txInfo 408 } 409 410 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 411 TopicReaderTransactionRollbackDoneInfo struct { 412 RollbackError error 413 } 414 415 //////////// 416 //////////// TopicWriter 417 //////////// 418 419 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 420 TopicWriterReconnectStartInfo struct { 421 WriterInstanceID string 422 Topic string 423 ProducerID string 424 Attempt int 425 } 426 427 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 428 TopicWriterReconnectDoneInfo struct { 429 Error error 430 } 431 432 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 433 TopicWriterInitStreamStartInfo struct { 434 WriterInstanceID string 435 Topic string 436 ProducerID string 437 } 438 439 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 440 TopicWriterInitStreamDoneInfo struct { 441 SessionID string 442 Error error 443 } 444 445 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 446 TopicWriterCloseStartInfo struct { 447 WriterInstanceID string 448 Reason error 449 } 450 451 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 452 TopicWriterCloseDoneInfo struct { 453 Error error 454 } 455 456 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 457 TopicWriterCompressMessagesStartInfo struct { 458 WriterInstanceID string 459 SessionID string 460 Codec int32 461 FirstSeqNo int64 462 MessagesCount int 463 Reason TopicWriterCompressMessagesReason 464 } 465 466 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 467 TopicWriterCompressMessagesDoneInfo struct { 468 Error error 469 } 470 471 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 472 TopicWriterSendMessagesStartInfo struct { 473 WriterInstanceID string 474 SessionID string 475 Codec int32 476 FirstSeqNo int64 477 MessagesCount int 478 } 479 480 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 481 TopicWriterSendMessagesDoneInfo struct { 482 Error error 483 } 484 485 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 486 TopicWriterResultMessagesInfo struct { 487 WriterInstanceID string 488 SessionID string 489 PartitionID int64 490 Acks TopicWriterResultMessagesInfoAcks 491 } 492 493 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 494 TopicWriterResultMessagesInfoAcks interface { 495 GetAcks() struct { 496 AcksCount int 497 SeqNoMin int64 498 SeqNoMax int64 499 WrittenOffsetMin int64 500 WrittenOffsetMax int64 501 WrittenCount int 502 WrittenInTxCount int 503 SkipCount int 504 } 505 } 506 507 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 508 TopicOnWriterBeforeCommitTransactionStartInfo struct { 509 Ctx *context.Context 510 KqpSessionID string 511 TopicSessionID string 512 TransactionID string 513 } 514 515 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 516 TopicOnWriterBeforeCommitTransactionDoneInfo struct { 517 Error error 518 TopicSessionID string 519 } 520 521 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 522 TopicOnWriterAfterFinishTransactionStartInfo struct { 523 Error error 524 SessionID string 525 TransactionID string 526 } 527 528 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 529 TopicOnWriterAfterFinishTransactionDoneInfo struct { 530 CloseError error 531 } 532 533 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 534 TopicOnWriterReadUnknownGrpcMessageInfo struct { 535 WriterInstanceID string 536 SessionID string 537 Error error 538 } 539 ) 540 541 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 542 type TopicWriterCompressMessagesReason string 543 544 const ( 545 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 546 TopicWriterCompressMessagesReasonCompressData = TopicWriterCompressMessagesReason("compress-on-send") 547 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 548 TopicWriterCompressMessagesReasonCompressDataOnWriteReadData = TopicWriterCompressMessagesReason("compress-on-call-write") //nolint:lll 549 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 550 TopicWriterCompressMessagesReasonCodecsMeasure = TopicWriterCompressMessagesReason("compress-on-codecs-measure") //nolint:lll 551 ) 552 553 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 554 func (r TopicWriterCompressMessagesReason) String() string { 555 return string(r) 556 }