Class ProxyProtocolPassThroughTLVs.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ProxyProtocolPassThroughTLVs.Builder>
com.google.protobuf.GeneratedMessage.Builder<ProxyProtocolPassThroughTLVs.Builder>
io.envoyproxy.envoy.config.core.v3.ProxyProtocolPassThroughTLVs.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,ProxyProtocolPassThroughTLVsOrBuilder
,Cloneable
- Enclosing class:
ProxyProtocolPassThroughTLVs
public static final class ProxyProtocolPassThroughTLVs.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ProxyProtocolPassThroughTLVs.Builder>
implements ProxyProtocolPassThroughTLVsOrBuilder
Protobuf type
envoy.config.core.v3.ProxyProtocolPassThroughTLVs
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private int
private com.google.protobuf.Internal.IntList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllTlvType
(Iterable<? extends Integer> values) The TLV types that are applied based on match_type.addTlvType
(int value) The TLV types that are applied based on match_type.build()
private void
clear()
The strategy to pass through TLVs.The TLV types that are applied based on match_type.private void
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
The strategy to pass through TLVs.int
The strategy to pass through TLVs.int
getTlvType
(int index) The TLV types that are applied based on match_type.int
The TLV types that are applied based on match_type.The TLV types that are applied based on match_type.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) The strategy to pass through TLVs.setMatchTypeValue
(int value) The strategy to pass through TLVs.setTlvType
(int index, int value) The TLV types that are applied based on match_type.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_ -
matchType_
private int matchType_ -
tlvType_
private com.google.protobuf.Internal.IntList tlvType_
-
-
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<ProxyProtocolPassThroughTLVs.Builder>
-
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<ProxyProtocolPassThroughTLVs.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<ProxyProtocolPassThroughTLVs.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<ProxyProtocolPassThroughTLVs.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<ProxyProtocolPassThroughTLVs.Builder>
-
mergeFrom
public ProxyProtocolPassThroughTLVs.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<ProxyProtocolPassThroughTLVs.Builder>
- Throws:
IOException
-
getMatchTypeValue
public int getMatchTypeValue()The strategy to pass through TLVs. Default is INCLUDE_ALL. If INCLUDE_ALL is set, all TLVs will be passed through no matter the tlv_type field.
.envoy.config.core.v3.ProxyProtocolPassThroughTLVs.PassTLVsMatchType match_type = 1;
- Specified by:
getMatchTypeValue
in interfaceProxyProtocolPassThroughTLVsOrBuilder
- Returns:
- The enum numeric value on the wire for matchType.
-
setMatchTypeValue
The strategy to pass through TLVs. Default is INCLUDE_ALL. If INCLUDE_ALL is set, all TLVs will be passed through no matter the tlv_type field.
.envoy.config.core.v3.ProxyProtocolPassThroughTLVs.PassTLVsMatchType match_type = 1;
- Parameters:
value
- The enum numeric value on the wire for matchType to set.- Returns:
- This builder for chaining.
-
getMatchType
The strategy to pass through TLVs. Default is INCLUDE_ALL. If INCLUDE_ALL is set, all TLVs will be passed through no matter the tlv_type field.
.envoy.config.core.v3.ProxyProtocolPassThroughTLVs.PassTLVsMatchType match_type = 1;
- Specified by:
getMatchType
in interfaceProxyProtocolPassThroughTLVsOrBuilder
- Returns:
- The matchType.
-
setMatchType
public ProxyProtocolPassThroughTLVs.Builder setMatchType(ProxyProtocolPassThroughTLVs.PassTLVsMatchType value) The strategy to pass through TLVs. Default is INCLUDE_ALL. If INCLUDE_ALL is set, all TLVs will be passed through no matter the tlv_type field.
.envoy.config.core.v3.ProxyProtocolPassThroughTLVs.PassTLVsMatchType match_type = 1;
- Parameters:
value
- The matchType to set.- Returns:
- This builder for chaining.
-
clearMatchType
The strategy to pass through TLVs. Default is INCLUDE_ALL. If INCLUDE_ALL is set, all TLVs will be passed through no matter the tlv_type field.
.envoy.config.core.v3.ProxyProtocolPassThroughTLVs.PassTLVsMatchType match_type = 1;
- Returns:
- This builder for chaining.
-
ensureTlvTypeIsMutable
private void ensureTlvTypeIsMutable() -
getTlvTypeList
The TLV types that are applied based on match_type. TLV type is defined as uint8_t in proxy protocol. See `the spec <https://www.haproxy.org/download/2.1/doc/proxy-protocol.txt>`_ for details.
repeated uint32 tlv_type = 2 [(.validate.rules) = { ... }
- Specified by:
getTlvTypeList
in interfaceProxyProtocolPassThroughTLVsOrBuilder
- Returns:
- A list containing the tlvType.
-
getTlvTypeCount
public int getTlvTypeCount()The TLV types that are applied based on match_type. TLV type is defined as uint8_t in proxy protocol. See `the spec <https://www.haproxy.org/download/2.1/doc/proxy-protocol.txt>`_ for details.
repeated uint32 tlv_type = 2 [(.validate.rules) = { ... }
- Specified by:
getTlvTypeCount
in interfaceProxyProtocolPassThroughTLVsOrBuilder
- Returns:
- The count of tlvType.
-
getTlvType
public int getTlvType(int index) The TLV types that are applied based on match_type. TLV type is defined as uint8_t in proxy protocol. See `the spec <https://www.haproxy.org/download/2.1/doc/proxy-protocol.txt>`_ for details.
repeated uint32 tlv_type = 2 [(.validate.rules) = { ... }
- Specified by:
getTlvType
in interfaceProxyProtocolPassThroughTLVsOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The tlvType at the given index.
-
setTlvType
The TLV types that are applied based on match_type. TLV type is defined as uint8_t in proxy protocol. See `the spec <https://www.haproxy.org/download/2.1/doc/proxy-protocol.txt>`_ for details.
repeated uint32 tlv_type = 2 [(.validate.rules) = { ... }
- Parameters:
index
- The index to set the value at.value
- The tlvType to set.- Returns:
- This builder for chaining.
-
addTlvType
The TLV types that are applied based on match_type. TLV type is defined as uint8_t in proxy protocol. See `the spec <https://www.haproxy.org/download/2.1/doc/proxy-protocol.txt>`_ for details.
repeated uint32 tlv_type = 2 [(.validate.rules) = { ... }
- Parameters:
value
- The tlvType to add.- Returns:
- This builder for chaining.
-
addAllTlvType
The TLV types that are applied based on match_type. TLV type is defined as uint8_t in proxy protocol. See `the spec <https://www.haproxy.org/download/2.1/doc/proxy-protocol.txt>`_ for details.
repeated uint32 tlv_type = 2 [(.validate.rules) = { ... }
- Parameters:
values
- The tlvType to add.- Returns:
- This builder for chaining.
-
clearTlvType
The TLV types that are applied based on match_type. TLV type is defined as uint8_t in proxy protocol. See `the spec <https://www.haproxy.org/download/2.1/doc/proxy-protocol.txt>`_ for details.
repeated uint32 tlv_type = 2 [(.validate.rules) = { ... }
- Returns:
- This builder for chaining.
-