コード例 #1
0
 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.V2Beta3.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);
 }
コード例 #2
0
        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);
        }