public void MergeFrom(Address 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.Name.Length != 0) { Name = other.Name; } if (other.Description.Length != 0) { Description = other.Description; } labels_.Add(other.labels_); if (other.Reserved != false) { Reserved = other.Reserved; } if (other.Used != false) { Used = other.Used; } switch (other.AddressCase) { case AddressOneofCase.ExternalIpv4Address: if (ExternalIpv4Address == null) { ExternalIpv4Address = new global::Yandex.Cloud.Vpc.V1.ExternalIpv4Address(); } ExternalIpv4Address.MergeFrom(other.ExternalIpv4Address); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (FolderId.Length != 0) { hash ^= FolderId.GetHashCode(); } if (createdAt_ != null) { hash ^= CreatedAt.GetHashCode(); } if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (Description.Length != 0) { hash ^= Description.GetHashCode(); } hash ^= Labels.GetHashCode(); if (addressCase_ == AddressOneofCase.ExternalIpv4Address) { hash ^= ExternalIpv4Address.GetHashCode(); } if (Reserved != false) { hash ^= Reserved.GetHashCode(); } if (Used != false) { hash ^= Used.GetHashCode(); } hash ^= (int)addressCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }