public void MergeFrom(PayloadConfig other) { if (other == null) { return; } switch (other.PayloadCase) { case PayloadOneofCase.BytebufParams: if (BytebufParams == null) { BytebufParams = new global::Grpc.Testing.ByteBufferParams(); } BytebufParams.MergeFrom(other.BytebufParams); break; case PayloadOneofCase.SimpleParams: if (SimpleParams == null) { SimpleParams = new global::Grpc.Testing.SimpleProtoParams(); } SimpleParams.MergeFrom(other.SimpleParams); break; case PayloadOneofCase.ComplexParams: if (ComplexParams == null) { ComplexParams = new global::Grpc.Testing.ComplexProtoParams(); } ComplexParams.MergeFrom(other.ComplexParams); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (payloadCase_ == PayloadOneofCase.BytebufParams) { hash ^= BytebufParams.GetHashCode(); } if (payloadCase_ == PayloadOneofCase.SimpleParams) { hash ^= SimpleParams.GetHashCode(); } if (payloadCase_ == PayloadOneofCase.ComplexParams) { hash ^= ComplexParams.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (payloadCase_ == PayloadOneofCase.BytebufParams) { hash ^= BytebufParams.GetHashCode(); } if (payloadCase_ == PayloadOneofCase.SimpleParams) { hash ^= SimpleParams.GetHashCode(); } if (payloadCase_ == PayloadOneofCase.ComplexParams) { hash ^= ComplexParams.GetHashCode(); } hash ^= (int)payloadCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }