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
FieldsModifier and TypeFieldDescriptionprivate 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 -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(UdpSocketConfig result) clear()
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.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.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
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.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.final boolean
private void
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(UdpSocketConfig 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, maxRxDatagramSizeBuilder_com.google.protobuf.UInt64ValueOrBuilder> -
preferGro_
private com.google.protobuf.BoolValue preferGro_ -
preferGroBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder, preferGroBuilder_com.google.protobuf.BoolValueOrBuilder>
-
-
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 classcom.google.protobuf.GeneratedMessage.Builder<UdpSocketConfig.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<UdpSocketConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<UdpSocketConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<UdpSocketConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceUdpSocketConfigOrBuilder
- 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 interfaceUdpSocketConfigOrBuilder
- Returns:
- The maxRxDatagramSize.
-
setMaxRxDatagramSize
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
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
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 interfaceUdpSocketConfigOrBuilder
-
internalGetMaxRxDatagramSizeFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt64Value,com.google.protobuf.UInt64Value.Builder, internalGetMaxRxDatagramSizeFieldBuilder()com.google.protobuf.UInt64ValueOrBuilder> 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 interfaceUdpSocketConfigOrBuilder
- 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 interfaceUdpSocketConfigOrBuilder
- Returns:
- The preferGro.
-
setPreferGro
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
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
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
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 interfaceUdpSocketConfigOrBuilder
-
internalGetPreferGroFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder, internalGetPreferGroFieldBuilder()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. 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;
-