Class UdpSocketConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<UdpSocketConfig.Builder>
com.google.protobuf.GeneratedMessage.Builder<UdpSocketConfig.Builder>
io.envoyproxy.envoy.config.core.v3.UdpSocketConfig.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, UdpSocketConfigOrBuilder, Cloneable
Enclosing class:
UdpSocketConfig

public static final class UdpSocketConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<UdpSocketConfig.Builder> implements UdpSocketConfigOrBuilder
 Generic UDP socket configuration.
 
Protobuf type envoy.config.core.v3.UdpSocketConfig
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
     
    private com.google.protobuf.UInt64Value
     
    private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt64Value,com.google.protobuf.UInt64Value.Builder,com.google.protobuf.UInt64ValueOrBuilder>
     
    private com.google.protobuf.BoolValue
     
    private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder,com.google.protobuf.BoolValueOrBuilder>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
    private
    Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    private void
     
     
    The maximum size of received UDP datagrams.
    Configures whether Generic Receive Offload (GRO) <https://en.wikipedia.org/wiki/Large_receive_offload>_ is preferred when reading from the UDP socket.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.UInt64Value
    The maximum size of received UDP datagrams.
    com.google.protobuf.UInt64Value.Builder
    The maximum size of received UDP datagrams.
    private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt64Value,com.google.protobuf.UInt64Value.Builder,com.google.protobuf.UInt64ValueOrBuilder>
    The maximum size of received UDP datagrams.
    com.google.protobuf.UInt64ValueOrBuilder
    The maximum size of received UDP datagrams.
    com.google.protobuf.BoolValue
    Configures whether Generic Receive Offload (GRO) <https://en.wikipedia.org/wiki/Large_receive_offload>_ is preferred when reading from the UDP socket.
    com.google.protobuf.BoolValue.Builder
    Configures whether Generic Receive Offload (GRO) <https://en.wikipedia.org/wiki/Large_receive_offload>_ is preferred when reading from the UDP socket.
    private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder,com.google.protobuf.BoolValueOrBuilder>
    Configures whether Generic Receive Offload (GRO) <https://en.wikipedia.org/wiki/Large_receive_offload>_ is preferred when reading from the UDP socket.
    com.google.protobuf.BoolValueOrBuilder
    Configures whether Generic Receive Offload (GRO) <https://en.wikipedia.org/wiki/Large_receive_offload>_ is preferred when reading from the UDP socket.
    boolean
    The maximum size of received UDP datagrams.
    boolean
    Configures whether Generic Receive Offload (GRO) <https://en.wikipedia.org/wiki/Large_receive_offload>_ is preferred when reading from the UDP socket.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    private void
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    mergeMaxRxDatagramSize(com.google.protobuf.UInt64Value value)
    The maximum size of received UDP datagrams.
    mergePreferGro(com.google.protobuf.BoolValue value)
    Configures whether Generic Receive Offload (GRO) <https://en.wikipedia.org/wiki/Large_receive_offload>_ is preferred when reading from the UDP socket.
    setMaxRxDatagramSize(com.google.protobuf.UInt64Value value)
    The maximum size of received UDP datagrams.
    setMaxRxDatagramSize(com.google.protobuf.UInt64Value.Builder builderForValue)
    The maximum size of received UDP datagrams.
    setPreferGro(com.google.protobuf.BoolValue value)
    Configures whether Generic Receive Offload (GRO) <https://en.wikipedia.org/wiki/Large_receive_offload>_ is preferred when reading from the UDP socket.
    setPreferGro(com.google.protobuf.BoolValue.Builder builderForValue)
    Configures whether Generic Receive Offload (GRO) <https://en.wikipedia.org/wiki/Large_receive_offload>_ is preferred when reading from the UDP socket.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • bitField0_

      private int bitField0_
    • maxRxDatagramSize_

      private com.google.protobuf.UInt64Value maxRxDatagramSize_
    • maxRxDatagramSizeBuilder_

      private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt64Value,com.google.protobuf.UInt64Value.Builder,com.google.protobuf.UInt64ValueOrBuilder> maxRxDatagramSizeBuilder_
    • preferGro_

      private com.google.protobuf.BoolValue preferGro_
    • preferGroBuilder_

      private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder,com.google.protobuf.BoolValueOrBuilder> preferGroBuilder_
  • Constructor Details

    • Builder

      private Builder()
    • Builder

      private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<UdpSocketConfig.Builder>
    • maybeForceBuilderInitialization

      private void maybeForceBuilderInitialization()
    • clear

      public UdpSocketConfig.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<UdpSocketConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<UdpSocketConfig.Builder>
    • getDefaultInstanceForType

      public UdpSocketConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public UdpSocketConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public UdpSocketConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • buildPartial0

      private void buildPartial0(UdpSocketConfig result)
    • mergeFrom

      public UdpSocketConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UdpSocketConfig.Builder>
    • mergeFrom

      public UdpSocketConfig.Builder mergeFrom(UdpSocketConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<UdpSocketConfig.Builder>
    • mergeFrom

      public UdpSocketConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UdpSocketConfig.Builder>
      Throws:
      IOException
    • hasMaxRxDatagramSize

      public boolean hasMaxRxDatagramSize()
       The maximum size of received UDP datagrams. Using a larger size will cause Envoy to allocate
       more memory per socket. Received datagrams above this size will be dropped. If not set
       defaults to 1500 bytes.
       
      .google.protobuf.UInt64Value max_rx_datagram_size = 1 [(.validate.rules) = { ... }
      Specified by:
      hasMaxRxDatagramSize in interface UdpSocketConfigOrBuilder
      Returns:
      Whether the maxRxDatagramSize field is set.
    • getMaxRxDatagramSize

      public com.google.protobuf.UInt64Value getMaxRxDatagramSize()
       The maximum size of received UDP datagrams. Using a larger size will cause Envoy to allocate
       more memory per socket. Received datagrams above this size will be dropped. If not set
       defaults to 1500 bytes.
       
      .google.protobuf.UInt64Value max_rx_datagram_size = 1 [(.validate.rules) = { ... }
      Specified by:
      getMaxRxDatagramSize in interface UdpSocketConfigOrBuilder
      Returns:
      The maxRxDatagramSize.
    • setMaxRxDatagramSize

      public UdpSocketConfig.Builder setMaxRxDatagramSize(com.google.protobuf.UInt64Value value)
       The maximum size of received UDP datagrams. Using a larger size will cause Envoy to allocate
       more memory per socket. Received datagrams above this size will be dropped. If not set
       defaults to 1500 bytes.
       
      .google.protobuf.UInt64Value max_rx_datagram_size = 1 [(.validate.rules) = { ... }
    • setMaxRxDatagramSize

      public UdpSocketConfig.Builder setMaxRxDatagramSize(com.google.protobuf.UInt64Value.Builder builderForValue)
       The maximum size of received UDP datagrams. Using a larger size will cause Envoy to allocate
       more memory per socket. Received datagrams above this size will be dropped. If not set
       defaults to 1500 bytes.
       
      .google.protobuf.UInt64Value max_rx_datagram_size = 1 [(.validate.rules) = { ... }
    • mergeMaxRxDatagramSize

      public UdpSocketConfig.Builder mergeMaxRxDatagramSize(com.google.protobuf.UInt64Value value)
       The maximum size of received UDP datagrams. Using a larger size will cause Envoy to allocate
       more memory per socket. Received datagrams above this size will be dropped. If not set
       defaults to 1500 bytes.
       
      .google.protobuf.UInt64Value max_rx_datagram_size = 1 [(.validate.rules) = { ... }
    • clearMaxRxDatagramSize

      public UdpSocketConfig.Builder clearMaxRxDatagramSize()
       The maximum size of received UDP datagrams. Using a larger size will cause Envoy to allocate
       more memory per socket. Received datagrams above this size will be dropped. If not set
       defaults to 1500 bytes.
       
      .google.protobuf.UInt64Value max_rx_datagram_size = 1 [(.validate.rules) = { ... }
    • getMaxRxDatagramSizeBuilder

      public com.google.protobuf.UInt64Value.Builder getMaxRxDatagramSizeBuilder()
       The maximum size of received UDP datagrams. Using a larger size will cause Envoy to allocate
       more memory per socket. Received datagrams above this size will be dropped. If not set
       defaults to 1500 bytes.
       
      .google.protobuf.UInt64Value max_rx_datagram_size = 1 [(.validate.rules) = { ... }
    • getMaxRxDatagramSizeOrBuilder

      public com.google.protobuf.UInt64ValueOrBuilder getMaxRxDatagramSizeOrBuilder()
       The maximum size of received UDP datagrams. Using a larger size will cause Envoy to allocate
       more memory per socket. Received datagrams above this size will be dropped. If not set
       defaults to 1500 bytes.
       
      .google.protobuf.UInt64Value max_rx_datagram_size = 1 [(.validate.rules) = { ... }
      Specified by:
      getMaxRxDatagramSizeOrBuilder in interface UdpSocketConfigOrBuilder
    • getMaxRxDatagramSizeFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt64Value,com.google.protobuf.UInt64Value.Builder,com.google.protobuf.UInt64ValueOrBuilder> getMaxRxDatagramSizeFieldBuilder()
       The maximum size of received UDP datagrams. Using a larger size will cause Envoy to allocate
       more memory per socket. Received datagrams above this size will be dropped. If not set
       defaults to 1500 bytes.
       
      .google.protobuf.UInt64Value max_rx_datagram_size = 1 [(.validate.rules) = { ... }
    • hasPreferGro

      public boolean hasPreferGro()
       Configures whether Generic Receive Offload (GRO)
       <https://en.wikipedia.org/wiki/Large_receive_offload>_ is preferred when reading from the
       UDP socket. The default is context dependent and is documented where UdpSocketConfig is used.
       This option affects performance but not functionality. If GRO is not supported by the operating
       system, non-GRO receive will be used.
       
      .google.protobuf.BoolValue prefer_gro = 2;
      Specified by:
      hasPreferGro in interface UdpSocketConfigOrBuilder
      Returns:
      Whether the preferGro field is set.
    • getPreferGro

      public com.google.protobuf.BoolValue getPreferGro()
       Configures whether Generic Receive Offload (GRO)
       <https://en.wikipedia.org/wiki/Large_receive_offload>_ is preferred when reading from the
       UDP socket. The default is context dependent and is documented where UdpSocketConfig is used.
       This option affects performance but not functionality. If GRO is not supported by the operating
       system, non-GRO receive will be used.
       
      .google.protobuf.BoolValue prefer_gro = 2;
      Specified by:
      getPreferGro in interface UdpSocketConfigOrBuilder
      Returns:
      The preferGro.
    • setPreferGro

      public UdpSocketConfig.Builder setPreferGro(com.google.protobuf.BoolValue value)
       Configures whether Generic Receive Offload (GRO)
       <https://en.wikipedia.org/wiki/Large_receive_offload>_ is preferred when reading from the
       UDP socket. The default is context dependent and is documented where UdpSocketConfig is used.
       This option affects performance but not functionality. If GRO is not supported by the operating
       system, non-GRO receive will be used.
       
      .google.protobuf.BoolValue prefer_gro = 2;
    • setPreferGro

      public UdpSocketConfig.Builder setPreferGro(com.google.protobuf.BoolValue.Builder builderForValue)
       Configures whether Generic Receive Offload (GRO)
       <https://en.wikipedia.org/wiki/Large_receive_offload>_ is preferred when reading from the
       UDP socket. The default is context dependent and is documented where UdpSocketConfig is used.
       This option affects performance but not functionality. If GRO is not supported by the operating
       system, non-GRO receive will be used.
       
      .google.protobuf.BoolValue prefer_gro = 2;
    • mergePreferGro

      public UdpSocketConfig.Builder mergePreferGro(com.google.protobuf.BoolValue value)
       Configures whether Generic Receive Offload (GRO)
       <https://en.wikipedia.org/wiki/Large_receive_offload>_ is preferred when reading from the
       UDP socket. The default is context dependent and is documented where UdpSocketConfig is used.
       This option affects performance but not functionality. If GRO is not supported by the operating
       system, non-GRO receive will be used.
       
      .google.protobuf.BoolValue prefer_gro = 2;
    • clearPreferGro

      public UdpSocketConfig.Builder clearPreferGro()
       Configures whether Generic Receive Offload (GRO)
       <https://en.wikipedia.org/wiki/Large_receive_offload>_ is preferred when reading from the
       UDP socket. The default is context dependent and is documented where UdpSocketConfig is used.
       This option affects performance but not functionality. If GRO is not supported by the operating
       system, non-GRO receive will be used.
       
      .google.protobuf.BoolValue prefer_gro = 2;
    • getPreferGroBuilder

      public com.google.protobuf.BoolValue.Builder getPreferGroBuilder()
       Configures whether Generic Receive Offload (GRO)
       <https://en.wikipedia.org/wiki/Large_receive_offload>_ is preferred when reading from the
       UDP socket. The default is context dependent and is documented where UdpSocketConfig is used.
       This option affects performance but not functionality. If GRO is not supported by the operating
       system, non-GRO receive will be used.
       
      .google.protobuf.BoolValue prefer_gro = 2;
    • getPreferGroOrBuilder

      public com.google.protobuf.BoolValueOrBuilder getPreferGroOrBuilder()
       Configures whether Generic Receive Offload (GRO)
       <https://en.wikipedia.org/wiki/Large_receive_offload>_ is preferred when reading from the
       UDP socket. The default is context dependent and is documented where UdpSocketConfig is used.
       This option affects performance but not functionality. If GRO is not supported by the operating
       system, non-GRO receive will be used.
       
      .google.protobuf.BoolValue prefer_gro = 2;
      Specified by:
      getPreferGroOrBuilder in interface UdpSocketConfigOrBuilder
    • getPreferGroFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder,com.google.protobuf.BoolValueOrBuilder> getPreferGroFieldBuilder()
       Configures whether Generic Receive Offload (GRO)
       <https://en.wikipedia.org/wiki/Large_receive_offload>_ is preferred when reading from the
       UDP socket. The default is context dependent and is documented where UdpSocketConfig is used.
       This option affects performance but not functionality. If GRO is not supported by the operating
       system, non-GRO receive will be used.
       
      .google.protobuf.BoolValue prefer_gro = 2;