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: {
                    if (address_ == null)
                    {
                        Address = new global::Envoy.Api.V2.Core.Address();
                    }
                    input.ReadMessage(Address);
                    break;
                }

                case 18: {
                    if (healthCheckConfig_ == null)
                    {
                        HealthCheckConfig = new global::Envoy.Api.V2.Endpoint.Endpoint.Types.HealthCheckConfig();
                    }
                    input.ReadMessage(HealthCheckConfig);
                    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: {
                    Name = input.ReadString();
                    break;
                }

                case 18: {
                    if (localAddress_ == null)
                    {
                        LocalAddress = new global::Envoy.Api.V2.Core.Address();
                    }
                    input.ReadMessage(LocalAddress);
                    break;
                }
                }
            }
        }
 public void MergeFrom(Connection other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id != 0UL)
     {
         Id = other.Id;
     }
     if (other.localAddress_ != null)
     {
         if (localAddress_ == null)
         {
             localAddress_ = new global::Envoy.Api.V2.Core.Address();
         }
         LocalAddress.MergeFrom(other.LocalAddress);
     }
     if (other.remoteAddress_ != null)
     {
         if (remoteAddress_ == null)
         {
             remoteAddress_ = new global::Envoy.Api.V2.Core.Address();
         }
         RemoteAddress.MergeFrom(other.RemoteAddress);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#4
0
 public void MergeFrom(ListenerStatus other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.localAddress_ != null)
     {
         if (localAddress_ == null)
         {
             LocalAddress = new global::Envoy.Api.V2.Core.Address();
         }
         LocalAddress.MergeFrom(other.LocalAddress);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        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: {
                    Id = input.ReadUInt64();
                    break;
                }

                case 18: {
                    if (localAddress_ == null)
                    {
                        localAddress_ = new global::Envoy.Api.V2.Core.Address();
                    }
                    input.ReadMessage(localAddress_);
                    break;
                }

                case 26: {
                    if (remoteAddress_ == null)
                    {
                        remoteAddress_ = new global::Envoy.Api.V2.Core.Address();
                    }
                    input.ReadMessage(remoteAddress_);
                    break;
                }
                }
            }
        }
 public void MergeFrom(Endpoint other)
 {
     if (other == null)
     {
         return;
     }
     if (other.address_ != null)
     {
         if (address_ == null)
         {
             Address = new global::Envoy.Api.V2.Core.Address();
         }
         Address.MergeFrom(other.Address);
     }
     if (other.healthCheckConfig_ != null)
     {
         if (healthCheckConfig_ == null)
         {
             HealthCheckConfig = new global::Envoy.Api.V2.Endpoint.Endpoint.Types.HealthCheckConfig();
         }
         HealthCheckConfig.MergeFrom(other.HealthCheckConfig);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#7
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: {
                    Name = input.ReadString();
                    break;
                }

                case 18: {
                    if (address_ == null)
                    {
                        address_ = new global::Envoy.Api.V2.Core.Address();
                    }
                    input.ReadMessage(address_);
                    break;
                }

                case 26: {
                    filterChains_.AddEntriesFrom(input, _repeated_filterChains_codec);
                    break;
                }

                case 34: {
                    bool?value = _single_useOriginalDst_codec.Read(input);
                    if (useOriginalDst_ == null || value != false)
                    {
                        UseOriginalDst = value;
                    }
                    break;
                }

                case 42: {
                    uint?value = _single_perConnectionBufferLimitBytes_codec.Read(input);
                    if (perConnectionBufferLimitBytes_ == null || value != 0)
                    {
                        PerConnectionBufferLimitBytes = value;
                    }
                    break;
                }

                case 50: {
                    if (metadata_ == null)
                    {
                        metadata_ = new global::Envoy.Api.V2.Core.Metadata();
                    }
                    input.ReadMessage(metadata_);
                    break;
                }

                case 58: {
                    if (deprecatedV1_ == null)
                    {
                        deprecatedV1_ = new global::Envoy.Api.V2.Listener.Types.DeprecatedV1();
                    }
                    input.ReadMessage(deprecatedV1_);
                    break;
                }

                case 64: {
                    drainType_ = (global::Envoy.Api.V2.Listener.Types.DrainType)input.ReadEnum();
                    break;
                }

                case 74: {
                    listenerFilters_.AddEntriesFrom(input, _repeated_listenerFilters_codec);
                    break;
                }

                case 82: {
                    bool?value = _single_transparent_codec.Read(input);
                    if (transparent_ == null || value != false)
                    {
                        Transparent = value;
                    }
                    break;
                }

                case 90: {
                    bool?value = _single_freebind_codec.Read(input);
                    if (freebind_ == null || value != false)
                    {
                        Freebind = value;
                    }
                    break;
                }

                case 98: {
                    uint?value = _single_tcpFastOpenQueueLength_codec.Read(input);
                    if (tcpFastOpenQueueLength_ == null || value != 0)
                    {
                        TcpFastOpenQueueLength = value;
                    }
                    break;
                }
                }
            }
        }
示例#8
0
 public void MergeFrom(Listener other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.address_ != null)
     {
         if (address_ == null)
         {
             address_ = new global::Envoy.Api.V2.Core.Address();
         }
         Address.MergeFrom(other.Address);
     }
     filterChains_.Add(other.filterChains_);
     if (other.useOriginalDst_ != null)
     {
         if (useOriginalDst_ == null || other.UseOriginalDst != false)
         {
             UseOriginalDst = other.UseOriginalDst;
         }
     }
     if (other.perConnectionBufferLimitBytes_ != null)
     {
         if (perConnectionBufferLimitBytes_ == null || other.PerConnectionBufferLimitBytes != 0)
         {
             PerConnectionBufferLimitBytes = other.PerConnectionBufferLimitBytes;
         }
     }
     if (other.metadata_ != null)
     {
         if (metadata_ == null)
         {
             metadata_ = new global::Envoy.Api.V2.Core.Metadata();
         }
         Metadata.MergeFrom(other.Metadata);
     }
     if (other.deprecatedV1_ != null)
     {
         if (deprecatedV1_ == null)
         {
             deprecatedV1_ = new global::Envoy.Api.V2.Listener.Types.DeprecatedV1();
         }
         DeprecatedV1.MergeFrom(other.DeprecatedV1);
     }
     if (other.DrainType != 0)
     {
         DrainType = other.DrainType;
     }
     listenerFilters_.Add(other.listenerFilters_);
     if (other.transparent_ != null)
     {
         if (transparent_ == null || other.Transparent != false)
         {
             Transparent = other.Transparent;
         }
     }
     if (other.freebind_ != null)
     {
         if (freebind_ == null || other.Freebind != false)
         {
             Freebind = other.Freebind;
         }
     }
     if (other.tcpFastOpenQueueLength_ != null)
     {
         if (tcpFastOpenQueueLength_ == null || other.TcpFastOpenQueueLength != 0)
         {
             TcpFastOpenQueueLength = other.TcpFastOpenQueueLength;
         }
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }