public override int GetHashCode() { int hash = 1; if (RequestId.Length != 0) { hash ^= RequestId.GetHashCode(); } if (contentCase_ == ContentOneofCase.StartStream) { hash ^= StartStream.GetHashCode(); } if (contentCase_ == ContentOneofCase.InvocationRequest) { hash ^= InvocationRequest.GetHashCode(); } if (contentCase_ == ContentOneofCase.InvocationResponse) { hash ^= InvocationResponse.GetHashCode(); } hash ^= (int)contentCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void MergeFrom(StreamingMessage other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } switch (other.ContentCase) { case ContentOneofCase.StartStream: if (StartStream == null) { StartStream = new global::TestGrpc.Messages.StartStream(); } StartStream.MergeFrom(other.StartStream); break; case ContentOneofCase.InvocationRequest: if (InvocationRequest == null) { InvocationRequest = new global::TestGrpc.Messages.InvocationRequest(); } InvocationRequest.MergeFrom(other.InvocationRequest); break; case ContentOneofCase.InvocationResponse: if (InvocationResponse == null) { InvocationResponse = new global::TestGrpc.Messages.InvocationResponse(); } InvocationResponse.MergeFrom(other.InvocationResponse); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }