public void MergeFrom(Backup other) { if (other == null) { return; } if (other.Id.Length != 0) { Id = other.Id; } if (other.FolderId.Length != 0) { FolderId = other.FolderId; } if (other.createdAt_ != null) { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreatedAt.MergeFrom(other.CreatedAt); } if (other.SourceClusterId.Length != 0) { SourceClusterId = other.SourceClusterId; } if (other.startedAt_ != null) { if (startedAt_ == null) { StartedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } StartedAt.MergeFrom(other.StartedAt); } sourceShardNames_.Add(other.sourceShardNames_); if (other.Size != 0L) { Size = other.Size; } if (other.Type != global::Yandex.Cloud.Mdb.Mongodb.V1.Backup.Types.BackupType.Unspecified) { Type = other.Type; } _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: { FolderId = input.ReadString(); break; } case 26: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 34: { SourceClusterId = input.ReadString(); break; } case 42: { if (startedAt_ == null) { StartedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(StartedAt); break; } case 50: { sourceShardNames_.AddEntriesFrom(input, _repeated_sourceShardNames_codec); break; } case 56: { Size = input.ReadInt64(); break; } case 64: { Type = (global::Yandex.Cloud.Mdb.Mongodb.V1.Backup.Types.BackupType)input.ReadEnum(); break; } } } }