public void MergeFrom(ValidationCA other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.GrpcEndpoint: if (GrpcEndpoint == null) { GrpcEndpoint = new global::Google.Cloud.NetworkSecurity.V1Beta1.GrpcEndpoint(); } GrpcEndpoint.MergeFrom(other.GrpcEndpoint); break; case TypeOneofCase.CertificateProviderInstance: if (CertificateProviderInstance == null) { CertificateProviderInstance = new global::Google.Cloud.NetworkSecurity.V1Beta1.CertificateProviderInstance(); } CertificateProviderInstance.MergeFrom(other.CertificateProviderInstance); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.GrpcEndpoint) { hash ^= GrpcEndpoint.GetHashCode(); } if (typeCase_ == TypeOneofCase.CertificateProviderInstance) { hash ^= CertificateProviderInstance.GetHashCode(); } hash ^= (int)typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }