Example #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.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);
 }
Example #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 8: {
                    httpMethod_ = (global::Google.Cloud.Tasks.V2.HttpMethod)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (appEngineRouting_ == null)
                    {
                        appEngineRouting_ = new global::Google.Cloud.Tasks.V2.AppEngineRouting();
                    }
                    input.ReadMessage(appEngineRouting_);
                    break;
                }

                case 26: {
                    RelativeUri = input.ReadString();
                    break;
                }

                case 34: {
                    headers_.AddEntriesFrom(input, _map_headers_codec);
                    break;
                }

                case 42: {
                    Body = input.ReadBytes();
                    break;
                }
                }
            }
        }