Example #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
            input.ReadRawMessage(this);
    #else
            uint tag;
            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    name_.AddEntriesFrom(input, _repeated_name_codec);
                    break;
                }

                case 8010: {
                    if (affinity_ == null)
                    {
                        Affinity = new global::Google.Api.Gax.Grpc.Gcp.AffinityConfig();
                    }
                    input.ReadMessage(Affinity);
                    break;
                }
                }
            }
    #endif
        }
Example #2
0
        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)
        {
            uint tag;

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

                case 10: {
                    name_.AddEntriesFrom(ref input, _repeated_name_codec);
                    break;
                }

                case 8010: {
                    if (affinity_ == null)
                    {
                        Affinity = new global::Google.Api.Gax.Grpc.Gcp.AffinityConfig();
                    }
                    input.ReadMessage(Affinity);
                    break;
                }
                }
            }
        }
Example #3
0
 public void MergeFrom(MethodConfig other)
 {
     if (other == null)
     {
         return;
     }
     name_.Add(other.name_);
     if (other.affinity_ != null)
     {
         if (affinity_ == null)
         {
             Affinity = new global::Google.Api.Gax.Grpc.Gcp.AffinityConfig();
         }
         Affinity.MergeFrom(other.Affinity);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }