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 (Status != global::Yandex.Cloud.Kms.V1.SymmetricKey.Types.Status.Unspecified) { hash ^= Status.GetHashCode(); } if (primaryVersion_ != null) { hash ^= PrimaryVersion.GetHashCode(); } if (DefaultAlgorithm != global::Yandex.Cloud.Kms.V1.SymmetricAlgorithm.Unspecified) { hash ^= DefaultAlgorithm.GetHashCode(); } if (rotatedAt_ != null) { hash ^= RotatedAt.GetHashCode(); } if (rotationPeriod_ != null) { hash ^= RotationPeriod.GetHashCode(); } if (DeletionProtection != false) { hash ^= DeletionProtection.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override string[] getObjectInfo() { string[] str = new string[6]; str[0] = Name; str[1] = Mass.ToString(); str[2] = Radius.ToString(); str[3] = Temperature.ToString(); str[4] = RotationPeriod.ToString(); str[5] = DistanceToTheStar.ToString(); return(str); }
public override string[] getObjectInfo() { string[] str = new string[7]; str[0] = Name; str[1] = Mass.ToString(); str[2] = Radius.ToString(); str[3] = Temperature.ToString(); str[4] = RotationPeriod.ToString(); str[5] = Satellites.ToString(); str[6] = AttractivePower.ToString(); return(str); }
public override string[] getObjectInfo() { string[] str = new string[7]; str[0] = Name; str[1] = Mass.ToString(); str[2] = Radius.ToString(); str[3] = Temperature.ToString(); str[4] = RotationPeriod.ToString(); str[5] = StarType; str[6] = StarColor; return(str); }
public void MergeFrom(CryptoKey other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.primary_ != null) { if (primary_ == null) { primary_ = new global::Google.Cloud.Kms.V1.CryptoKeyVersion(); } Primary.MergeFrom(other.Primary); } if (other.Purpose != 0) { Purpose = other.Purpose; } if (other.createTime_ != null) { if (createTime_ == null) { createTime_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreateTime.MergeFrom(other.CreateTime); } if (other.nextRotationTime_ != null) { if (nextRotationTime_ == null) { nextRotationTime_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } NextRotationTime.MergeFrom(other.NextRotationTime); } labels_.Add(other.labels_); switch (other.RotationScheduleCase) { case RotationScheduleOneofCase.RotationPeriod: if (RotationPeriod == null) { RotationPeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); } RotationPeriod.MergeFrom(other.RotationPeriod); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (primary_ != null) { hash ^= Primary.GetHashCode(); } if (Purpose != 0) { hash ^= Purpose.GetHashCode(); } if (createTime_ != null) { hash ^= CreateTime.GetHashCode(); } if (nextRotationTime_ != null) { hash ^= NextRotationTime.GetHashCode(); } if (rotationScheduleCase_ == RotationScheduleOneofCase.RotationPeriod) { hash ^= RotationPeriod.GetHashCode(); } hash ^= Labels.GetHashCode(); hash ^= (int)rotationScheduleCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void MergeFrom(SymmetricKey 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.Status != global::Yandex.Cloud.Kms.V1.SymmetricKey.Types.Status.Unspecified) { Status = other.Status; } if (other.primaryVersion_ != null) { if (primaryVersion_ == null) { PrimaryVersion = new global::Yandex.Cloud.Kms.V1.SymmetricKeyVersion(); } PrimaryVersion.MergeFrom(other.PrimaryVersion); } if (other.DefaultAlgorithm != global::Yandex.Cloud.Kms.V1.SymmetricAlgorithm.Unspecified) { DefaultAlgorithm = other.DefaultAlgorithm; } if (other.rotatedAt_ != null) { if (rotatedAt_ == null) { RotatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } RotatedAt.MergeFrom(other.RotatedAt); } if (other.rotationPeriod_ != null) { if (rotationPeriod_ == null) { RotationPeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); } RotationPeriod.MergeFrom(other.RotationPeriod); } if (other.DeletionProtection != false) { DeletionProtection = other.DeletionProtection; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }