コード例 #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 10: {
                    ClusterName = input.ReadString();
                    break;
                }

                case 18: {
                    global::Envoy.Api.V2.Core.GrpcService subBuilder = new global::Envoy.Api.V2.Core.GrpcService();
                    if (serviceSpecifierCase_ == ServiceSpecifierOneofCase.GrpcService)
                    {
                        subBuilder.MergeFrom(GrpcService);
                    }
                    input.ReadMessage(subBuilder);
                    GrpcService = subBuilder;
                    break;
                }
                }
            }
        }
コード例 #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 10: {
                    global::Envoy.Api.V2.Core.GrpcService subBuilder = new global::Envoy.Api.V2.Core.GrpcService();
                    if (servicesCase_ == ServicesOneofCase.GrpcService)
                    {
                        subBuilder.MergeFrom(GrpcService);
                    }
                    input.ReadMessage(subBuilder);
                    GrpcService = subBuilder;
                    break;
                }

                case 16: {
                    FailureModeAllow = input.ReadBool();
                    break;
                }

                case 26: {
                    global::Envoy.Config.Filter.Http.ExtAuthz.V2Alpha.HttpService subBuilder = new global::Envoy.Config.Filter.Http.ExtAuthz.V2Alpha.HttpService();
                    if (servicesCase_ == ServicesOneofCase.HttpService)
                    {
                        subBuilder.MergeFrom(HttpService);
                    }
                    input.ReadMessage(subBuilder);
                    HttpService = subBuilder;
                    break;
                }
                }
            }
        }