Beispiel #1
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: {
                    Disabled = input.ReadBool();
                    break;
                }

                case 18: {
                    global::Envoy.Config.Filter.Http.Buffer.V2.Buffer subBuilder = new global::Envoy.Config.Filter.Http.Buffer.V2.Buffer();
                    if (overrideCase_ == OverrideOneofCase.Buffer)
                    {
                        subBuilder.MergeFrom(Buffer);
                    }
                    input.ReadMessage(subBuilder);
                    Buffer = subBuilder;
                    break;
                }
                }
            }
        }
Beispiel #2
0
        public void MergeFrom(BufferPerRoute other)
        {
            if (other == null)
            {
                return;
            }
            switch (other.OverrideCase)
            {
            case OverrideOneofCase.Disabled:
                Disabled = other.Disabled;
                break;

            case OverrideOneofCase.Buffer:
                if (Buffer == null)
                {
                    Buffer = new global::Envoy.Config.Filter.Http.Buffer.V2.Buffer();
                }
                Buffer.MergeFrom(other.Buffer);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }