@@ -42,7 +42,7 @@ type DescribeTopicResult struct {
4242}
4343
4444func (res * DescribeTopicResult ) FromProto (protoResponse * Ydb_Topic.DescribeTopicResponse ) error {
45- if err := res .Operation .FromProtoWithStatusCheck (protoResponse .Operation ); err != nil {
45+ if err := res .Operation .FromProtoWithStatusCheck (protoResponse .GetOperation () ); err != nil {
4646 return err
4747 }
4848
@@ -51,11 +51,11 @@ func (res *DescribeTopicResult) FromProto(protoResponse *Ydb_Topic.DescribeTopic
5151 return xerrors .WithStackTrace (fmt .Errorf ("ydb: describe topic result failed on unmarshal grpc result: %w" , err ))
5252 }
5353
54- if err := res .Self .FromProto (protoResult .Self ); err != nil {
54+ if err := res .Self .FromProto (protoResult .GetSelf () ); err != nil {
5555 return err
5656 }
5757
58- if err := res .PartitioningSettings .FromProto (protoResult .PartitioningSettings ); err != nil {
58+ if err := res .PartitioningSettings .FromProto (protoResult .GetPartitioningSettings () ); err != nil {
5959 return err
6060 }
6161
@@ -72,17 +72,17 @@ func (res *DescribeTopicResult) FromProto(protoResponse *Ydb_Topic.DescribeTopic
7272 res .SupportedCodecs = append (res .SupportedCodecs , rawtopiccommon .Codec (v ))
7373 }
7474
75- res .PartitionWriteSpeedBytesPerSecond = protoResult .PartitionWriteSpeedBytesPerSecond
76- res .PartitionWriteBurstBytes = protoResult .PartitionWriteBurstBytes
75+ res .PartitionWriteSpeedBytesPerSecond = protoResult .GetPartitionWriteSpeedBytesPerSecond ()
76+ res .PartitionWriteBurstBytes = protoResult .GetPartitionWriteBurstBytes ()
7777
78- res .Attributes = protoResult .Attributes
78+ res .Attributes = protoResult .GetAttributes ()
7979
80- res .Consumers = make ([]Consumer , len (protoResult .Consumers ))
80+ res .Consumers = make ([]Consumer , len (protoResult .GetConsumers () ))
8181 for i := range res .Consumers {
82- res .Consumers [i ].MustFromProto (protoResult .Consumers [i ])
82+ res .Consumers [i ].MustFromProto (protoResult .GetConsumers () [i ])
8383 }
8484
85- res .MeteringMode = MeteringMode (protoResult .MeteringMode )
85+ res .MeteringMode = MeteringMode (protoResult .GetMeteringMode () )
8686
8787 return nil
8888}
0 commit comments