public void MergeFrom(Image other) { if (other == null) { return; } if (other.Id.Length != 0) { Id = other.Id; } if (other.Name.Length != 0) { Name = other.Name; } if (other.Digest.Length != 0) { Digest = other.Digest; } if (other.CompressedSize != 0L) { CompressedSize = other.CompressedSize; } if (other.config_ != null) { if (config_ == null) { Config = new global::Yandex.Cloud.Containerregistry.V1.Blob(); } Config.MergeFrom(other.Config); } layers_.Add(other.layers_); tags_.Add(other.tags_); if (other.createdAt_ != null) { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreatedAt.MergeFrom(other.CreatedAt); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Id = input.ReadString(); break; } case 18: { Name = input.ReadString(); break; } case 26: { Digest = input.ReadString(); break; } case 32: { CompressedSize = input.ReadInt64(); break; } case 42: { if (config_ == null) { Config = new global::Yandex.Cloud.Containerregistry.V1.Blob(); } input.ReadMessage(Config); break; } case 50: { layers_.AddEntriesFrom(input, _repeated_layers_codec); break; } case 58: { tags_.AddEntriesFrom(input, _repeated_tags_codec); break; } case 66: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } } } }