Class ProxyProtocol.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ProxyProtocol.Builder>
-
- io.envoyproxy.envoy.extensions.filters.listener.proxy_protocol.v3.ProxyProtocol.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ProxyProtocolOrBuilder,Cloneable
- Enclosing class:
- ProxyProtocol
public static final class ProxyProtocol.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ProxyProtocol.Builder> implements ProxyProtocolOrBuilder
Protobuf typeenvoy.extensions.filters.listener.proxy_protocol.v3.ProxyProtocol
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ProxyProtocol.BuilderaddAllRules(Iterable<? extends ProxyProtocol.Rule> values)The list of rules to apply to requests.ProxyProtocol.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ProxyProtocol.BuilderaddRules(int index, ProxyProtocol.Rule value)The list of rules to apply to requests.ProxyProtocol.BuilderaddRules(int index, ProxyProtocol.Rule.Builder builderForValue)The list of rules to apply to requests.ProxyProtocol.BuilderaddRules(ProxyProtocol.Rule value)The list of rules to apply to requests.ProxyProtocol.BuilderaddRules(ProxyProtocol.Rule.Builder builderForValue)The list of rules to apply to requests.ProxyProtocol.Rule.BuilderaddRulesBuilder()The list of rules to apply to requests.ProxyProtocol.Rule.BuilderaddRulesBuilder(int index)The list of rules to apply to requests.ProxyProtocolbuild()ProxyProtocolbuildPartial()ProxyProtocol.Builderclear()ProxyProtocol.BuilderclearAllowRequestsWithoutProxyProtocol()Allow requests through that don't use proxy protocol.ProxyProtocol.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ProxyProtocol.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ProxyProtocol.BuilderclearRules()The list of rules to apply to requests.ProxyProtocol.Builderclone()booleangetAllowRequestsWithoutProxyProtocol()Allow requests through that don't use proxy protocol.ProxyProtocolgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ProxyProtocol.RulegetRules(int index)The list of rules to apply to requests.ProxyProtocol.Rule.BuildergetRulesBuilder(int index)The list of rules to apply to requests.List<ProxyProtocol.Rule.Builder>getRulesBuilderList()The list of rules to apply to requests.intgetRulesCount()The list of rules to apply to requests.List<ProxyProtocol.Rule>getRulesList()The list of rules to apply to requests.ProxyProtocol.RuleOrBuildergetRulesOrBuilder(int index)The list of rules to apply to requests.List<? extends ProxyProtocol.RuleOrBuilder>getRulesOrBuilderList()The list of rules to apply to requests.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ProxyProtocol.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ProxyProtocol.BuildermergeFrom(com.google.protobuf.Message other)ProxyProtocol.BuildermergeFrom(ProxyProtocol other)ProxyProtocol.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ProxyProtocol.BuilderremoveRules(int index)The list of rules to apply to requests.ProxyProtocol.BuildersetAllowRequestsWithoutProxyProtocol(boolean value)Allow requests through that don't use proxy protocol.ProxyProtocol.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ProxyProtocol.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ProxyProtocol.BuildersetRules(int index, ProxyProtocol.Rule value)The list of rules to apply to requests.ProxyProtocol.BuildersetRules(int index, ProxyProtocol.Rule.Builder builderForValue)The list of rules to apply to requests.ProxyProtocol.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ProxyProtocol.Builder>
-
clear
public ProxyProtocol.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ProxyProtocol.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ProxyProtocol.Builder>
-
getDefaultInstanceForType
public ProxyProtocol getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ProxyProtocol build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ProxyProtocol buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ProxyProtocol.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ProxyProtocol.Builder>
-
setField
public ProxyProtocol.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProxyProtocol.Builder>
-
clearField
public ProxyProtocol.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProxyProtocol.Builder>
-
clearOneof
public ProxyProtocol.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ProxyProtocol.Builder>
-
setRepeatedField
public ProxyProtocol.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProxyProtocol.Builder>
-
addRepeatedField
public ProxyProtocol.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProxyProtocol.Builder>
-
mergeFrom
public ProxyProtocol.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProxyProtocol.Builder>
-
mergeFrom
public ProxyProtocol.Builder mergeFrom(ProxyProtocol other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ProxyProtocol.Builder>
-
mergeFrom
public ProxyProtocol.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProxyProtocol.Builder>- Throws:
IOException
-
getRulesList
public List<ProxyProtocol.Rule> getRulesList()
The list of rules to apply to requests.
repeated .envoy.extensions.filters.listener.proxy_protocol.v3.ProxyProtocol.Rule rules = 1;- Specified by:
getRulesListin interfaceProxyProtocolOrBuilder
-
getRulesCount
public int getRulesCount()
The list of rules to apply to requests.
repeated .envoy.extensions.filters.listener.proxy_protocol.v3.ProxyProtocol.Rule rules = 1;- Specified by:
getRulesCountin interfaceProxyProtocolOrBuilder
-
getRules
public ProxyProtocol.Rule getRules(int index)
The list of rules to apply to requests.
repeated .envoy.extensions.filters.listener.proxy_protocol.v3.ProxyProtocol.Rule rules = 1;- Specified by:
getRulesin interfaceProxyProtocolOrBuilder
-
setRules
public ProxyProtocol.Builder setRules(int index, ProxyProtocol.Rule value)
The list of rules to apply to requests.
repeated .envoy.extensions.filters.listener.proxy_protocol.v3.ProxyProtocol.Rule rules = 1;
-
setRules
public ProxyProtocol.Builder setRules(int index, ProxyProtocol.Rule.Builder builderForValue)
The list of rules to apply to requests.
repeated .envoy.extensions.filters.listener.proxy_protocol.v3.ProxyProtocol.Rule rules = 1;
-
addRules
public ProxyProtocol.Builder addRules(ProxyProtocol.Rule value)
The list of rules to apply to requests.
repeated .envoy.extensions.filters.listener.proxy_protocol.v3.ProxyProtocol.Rule rules = 1;
-
addRules
public ProxyProtocol.Builder addRules(int index, ProxyProtocol.Rule value)
The list of rules to apply to requests.
repeated .envoy.extensions.filters.listener.proxy_protocol.v3.ProxyProtocol.Rule rules = 1;
-
addRules
public ProxyProtocol.Builder addRules(ProxyProtocol.Rule.Builder builderForValue)
The list of rules to apply to requests.
repeated .envoy.extensions.filters.listener.proxy_protocol.v3.ProxyProtocol.Rule rules = 1;
-
addRules
public ProxyProtocol.Builder addRules(int index, ProxyProtocol.Rule.Builder builderForValue)
The list of rules to apply to requests.
repeated .envoy.extensions.filters.listener.proxy_protocol.v3.ProxyProtocol.Rule rules = 1;
-
addAllRules
public ProxyProtocol.Builder addAllRules(Iterable<? extends ProxyProtocol.Rule> values)
The list of rules to apply to requests.
repeated .envoy.extensions.filters.listener.proxy_protocol.v3.ProxyProtocol.Rule rules = 1;
-
clearRules
public ProxyProtocol.Builder clearRules()
The list of rules to apply to requests.
repeated .envoy.extensions.filters.listener.proxy_protocol.v3.ProxyProtocol.Rule rules = 1;
-
removeRules
public ProxyProtocol.Builder removeRules(int index)
The list of rules to apply to requests.
repeated .envoy.extensions.filters.listener.proxy_protocol.v3.ProxyProtocol.Rule rules = 1;
-
getRulesBuilder
public ProxyProtocol.Rule.Builder getRulesBuilder(int index)
The list of rules to apply to requests.
repeated .envoy.extensions.filters.listener.proxy_protocol.v3.ProxyProtocol.Rule rules = 1;
-
getRulesOrBuilder
public ProxyProtocol.RuleOrBuilder getRulesOrBuilder(int index)
The list of rules to apply to requests.
repeated .envoy.extensions.filters.listener.proxy_protocol.v3.ProxyProtocol.Rule rules = 1;- Specified by:
getRulesOrBuilderin interfaceProxyProtocolOrBuilder
-
getRulesOrBuilderList
public List<? extends ProxyProtocol.RuleOrBuilder> getRulesOrBuilderList()
The list of rules to apply to requests.
repeated .envoy.extensions.filters.listener.proxy_protocol.v3.ProxyProtocol.Rule rules = 1;- Specified by:
getRulesOrBuilderListin interfaceProxyProtocolOrBuilder
-
addRulesBuilder
public ProxyProtocol.Rule.Builder addRulesBuilder()
The list of rules to apply to requests.
repeated .envoy.extensions.filters.listener.proxy_protocol.v3.ProxyProtocol.Rule rules = 1;
-
addRulesBuilder
public ProxyProtocol.Rule.Builder addRulesBuilder(int index)
The list of rules to apply to requests.
repeated .envoy.extensions.filters.listener.proxy_protocol.v3.ProxyProtocol.Rule rules = 1;
-
getRulesBuilderList
public List<ProxyProtocol.Rule.Builder> getRulesBuilderList()
The list of rules to apply to requests.
repeated .envoy.extensions.filters.listener.proxy_protocol.v3.ProxyProtocol.Rule rules = 1;
-
getAllowRequestsWithoutProxyProtocol
public boolean getAllowRequestsWithoutProxyProtocol()
Allow requests through that don't use proxy protocol. Defaults to false. .. attention:: This breaks conformance with the specification. Only enable if ALL traffic to the listener comes from a trusted source. For more information on the security implications of this feature, see https://www.haproxy.org/download/2.1/doc/proxy-protocol.txt .. attention:: Requests of 12 or fewer bytes that match the proxy protocol v2 signature and requests of 6 or fewer bytes that match the proxy protocol v1 signature will timeout (Envoy is unable to differentiate these requests from incomplete proxy protocol requests).
bool allow_requests_without_proxy_protocol = 2;- Specified by:
getAllowRequestsWithoutProxyProtocolin interfaceProxyProtocolOrBuilder- Returns:
- The allowRequestsWithoutProxyProtocol.
-
setAllowRequestsWithoutProxyProtocol
public ProxyProtocol.Builder setAllowRequestsWithoutProxyProtocol(boolean value)
Allow requests through that don't use proxy protocol. Defaults to false. .. attention:: This breaks conformance with the specification. Only enable if ALL traffic to the listener comes from a trusted source. For more information on the security implications of this feature, see https://www.haproxy.org/download/2.1/doc/proxy-protocol.txt .. attention:: Requests of 12 or fewer bytes that match the proxy protocol v2 signature and requests of 6 or fewer bytes that match the proxy protocol v1 signature will timeout (Envoy is unable to differentiate these requests from incomplete proxy protocol requests).
bool allow_requests_without_proxy_protocol = 2;- Parameters:
value- The allowRequestsWithoutProxyProtocol to set.- Returns:
- This builder for chaining.
-
clearAllowRequestsWithoutProxyProtocol
public ProxyProtocol.Builder clearAllowRequestsWithoutProxyProtocol()
Allow requests through that don't use proxy protocol. Defaults to false. .. attention:: This breaks conformance with the specification. Only enable if ALL traffic to the listener comes from a trusted source. For more information on the security implications of this feature, see https://www.haproxy.org/download/2.1/doc/proxy-protocol.txt .. attention:: Requests of 12 or fewer bytes that match the proxy protocol v2 signature and requests of 6 or fewer bytes that match the proxy protocol v1 signature will timeout (Envoy is unable to differentiate these requests from incomplete proxy protocol requests).
bool allow_requests_without_proxy_protocol = 2;- Returns:
- This builder for chaining.
-
setUnknownFields
public final ProxyProtocol.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ProxyProtocol.Builder>
-
mergeUnknownFields
public final ProxyProtocol.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ProxyProtocol.Builder>
-
-