@@ -16,7 +16,8 @@ type AlterTopicRequest struct {
1616 AlterPartitionSettings AlterPartitioningSettings
1717 SetRetentionPeriod rawoptional.Duration
1818 SetRetentionStorageMB rawoptional.Int64
19- SetSupportedCodecs rawtopiccommon.SupportedCodecs
19+ SetSupportedCodecs bool
20+ SetSupportedCodecsValue rawtopiccommon.SupportedCodecs
2021 SetPartitionWriteSpeedBytesPerSecond rawoptional.Int64
2122 SetPartitionWriteBurstBytes rawoptional.Int64
2223 AlterAttributes map [string ]string
@@ -32,12 +33,15 @@ func (req *AlterTopicRequest) ToProto() *Ydb_Topic.AlterTopicRequest {
3233 AlterPartitioningSettings : req .AlterPartitionSettings .ToProto (),
3334 SetRetentionPeriod : req .SetRetentionPeriod .ToProto (),
3435 SetRetentionStorageMb : req .SetRetentionStorageMB .ToProto (),
35- SetSupportedCodecs : req .SetSupportedCodecs .ToProto (),
3636 SetPartitionWriteSpeedBytesPerSecond : req .SetPartitionWriteSpeedBytesPerSecond .ToProto (),
3737 SetPartitionWriteBurstBytes : req .SetPartitionWriteBurstBytes .ToProto (),
3838 AlterAttributes : req .AlterAttributes ,
3939 }
4040
41+ if req .SetSupportedCodecs {
42+ res .SetSupportedCodecs = req .SetSupportedCodecsValue .ToProto ()
43+ }
44+
4145 res .AddConsumers = make ([]* Ydb_Topic.Consumer , len (req .AddConsumers ))
4246 for i := range req .AddConsumers {
4347 res .AddConsumers [i ] = req .AddConsumers [i ].ToProto ()
0 commit comments