public void MergeFrom(AppEngineHttpRequest other) { if (other == null) { return; } if (other.HttpMethod != 0) { HttpMethod = other.HttpMethod; } if (other.appEngineRouting_ != null) { if (appEngineRouting_ == null) { appEngineRouting_ = new global::Google.Cloud.Tasks.V2.AppEngineRouting(); } AppEngineRouting.MergeFrom(other.AppEngineRouting); } if (other.RelativeUri.Length != 0) { RelativeUri = other.RelativeUri; } headers_.Add(other.headers_); if (other.Body.Length != 0) { Body = other.Body; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (HttpMethod != 0) { hash ^= HttpMethod.GetHashCode(); } if (appEngineRouting_ != null) { hash ^= AppEngineRouting.GetHashCode(); } if (RelativeUri.Length != 0) { hash ^= RelativeUri.GetHashCode(); } hash ^= Headers.GetHashCode(); if (Body.Length != 0) { hash ^= Body.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }