public void MergeFrom(CheckResponse other) { if (other == null) { return; } if (other.status_ != null) { if (status_ == null) { Status = new global::Google.Rpc.Status(); } Status.MergeFrom(other.Status); } switch (other.HttpResponseCase) { case HttpResponseOneofCase.DeniedResponse: if (DeniedResponse == null) { DeniedResponse = new global::Envoy.Service.Auth.V2.DeniedHttpResponse(); } DeniedResponse.MergeFrom(other.DeniedResponse); break; case HttpResponseOneofCase.OkResponse: if (OkResponse == null) { OkResponse = new global::Envoy.Service.Auth.V2.OkHttpResponse(); } OkResponse.MergeFrom(other.OkResponse); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (status_ != null) { hash ^= Status.GetHashCode(); } if (httpResponseCase_ == HttpResponseOneofCase.DeniedResponse) { hash ^= DeniedResponse.GetHashCode(); } if (httpResponseCase_ == HttpResponseOneofCase.OkResponse) { hash ^= OkResponse.GetHashCode(); } hash ^= (int)httpResponseCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }