Package com.github.xds.type.matcher.v3
Class ServerNameMatcher.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ServerNameMatcher.Builder>
-
- com.github.xds.type.matcher.v3.ServerNameMatcher.Builder
-
- All Implemented Interfaces:
ServerNameMatcherOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ServerNameMatcher
public static final class ServerNameMatcher.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ServerNameMatcher.Builder> implements ServerNameMatcherOrBuilder
Matches a fully qualified server name against a set of domain names with optional wildcards.
Protobuf typexds.type.matcher.v3.ServerNameMatcher
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerNameMatcher.BuilderaddAllDomainMatchers(Iterable<? extends ServerNameMatcher.DomainMatcher> values)Match a server name by multiple domain matchers.ServerNameMatcher.BuilderaddDomainMatchers(int index, ServerNameMatcher.DomainMatcher value)Match a server name by multiple domain matchers.ServerNameMatcher.BuilderaddDomainMatchers(int index, ServerNameMatcher.DomainMatcher.Builder builderForValue)Match a server name by multiple domain matchers.ServerNameMatcher.BuilderaddDomainMatchers(ServerNameMatcher.DomainMatcher value)Match a server name by multiple domain matchers.ServerNameMatcher.BuilderaddDomainMatchers(ServerNameMatcher.DomainMatcher.Builder builderForValue)Match a server name by multiple domain matchers.ServerNameMatcher.DomainMatcher.BuilderaddDomainMatchersBuilder()Match a server name by multiple domain matchers.ServerNameMatcher.DomainMatcher.BuilderaddDomainMatchersBuilder(int index)Match a server name by multiple domain matchers.ServerNameMatcher.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ServerNameMatcherbuild()ServerNameMatcherbuildPartial()ServerNameMatcher.Builderclear()ServerNameMatcher.BuilderclearDomainMatchers()Match a server name by multiple domain matchers.ServerNameMatcher.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ServerNameMatcher.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ServerNameMatcher.Builderclone()ServerNameMatchergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ServerNameMatcher.DomainMatchergetDomainMatchers(int index)Match a server name by multiple domain matchers.ServerNameMatcher.DomainMatcher.BuildergetDomainMatchersBuilder(int index)Match a server name by multiple domain matchers.List<ServerNameMatcher.DomainMatcher.Builder>getDomainMatchersBuilderList()Match a server name by multiple domain matchers.intgetDomainMatchersCount()Match a server name by multiple domain matchers.List<ServerNameMatcher.DomainMatcher>getDomainMatchersList()Match a server name by multiple domain matchers.ServerNameMatcher.DomainMatcherOrBuildergetDomainMatchersOrBuilder(int index)Match a server name by multiple domain matchers.List<? extends ServerNameMatcher.DomainMatcherOrBuilder>getDomainMatchersOrBuilderList()Match a server name by multiple domain matchers.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ServerNameMatcher.BuildermergeFrom(ServerNameMatcher other)ServerNameMatcher.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ServerNameMatcher.BuildermergeFrom(com.google.protobuf.Message other)ServerNameMatcher.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ServerNameMatcher.BuilderremoveDomainMatchers(int index)Match a server name by multiple domain matchers.ServerNameMatcher.BuildersetDomainMatchers(int index, ServerNameMatcher.DomainMatcher value)Match a server name by multiple domain matchers.ServerNameMatcher.BuildersetDomainMatchers(int index, ServerNameMatcher.DomainMatcher.Builder builderForValue)Match a server name by multiple domain matchers.ServerNameMatcher.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ServerNameMatcher.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ServerNameMatcher.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<ServerNameMatcher.Builder>
-
clear
public ServerNameMatcher.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<ServerNameMatcher.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<ServerNameMatcher.Builder>
-
getDefaultInstanceForType
public ServerNameMatcher getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ServerNameMatcher build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ServerNameMatcher buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ServerNameMatcher.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<ServerNameMatcher.Builder>
-
setField
public ServerNameMatcher.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<ServerNameMatcher.Builder>
-
clearField
public ServerNameMatcher.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerNameMatcher.Builder>
-
clearOneof
public ServerNameMatcher.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerNameMatcher.Builder>
-
setRepeatedField
public ServerNameMatcher.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<ServerNameMatcher.Builder>
-
addRepeatedField
public ServerNameMatcher.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<ServerNameMatcher.Builder>
-
mergeFrom
public ServerNameMatcher.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ServerNameMatcher.Builder>
-
mergeFrom
public ServerNameMatcher.Builder mergeFrom(ServerNameMatcher other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerNameMatcher.Builder>
-
mergeFrom
public ServerNameMatcher.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<ServerNameMatcher.Builder>- Throws:
IOException
-
getDomainMatchersList
public List<ServerNameMatcher.DomainMatcher> getDomainMatchersList()
Match a server name by multiple domain matchers. Each domain, exact or wildcard, must appear at most once across all the domain matchers. The server name will be matched against all wildcard domains starting from the longest suffix, i.e. ``www.example.com`` input will be first matched against ``www.example.com``, then ``*.example.com``, then ``*.com``, then ``*``, until the associated matcher action accepts the input. Note that wildcards must be on a dot border, and values like ``*w.example.com`` are invalid.
repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;- Specified by:
getDomainMatchersListin interfaceServerNameMatcherOrBuilder
-
getDomainMatchersCount
public int getDomainMatchersCount()
Match a server name by multiple domain matchers. Each domain, exact or wildcard, must appear at most once across all the domain matchers. The server name will be matched against all wildcard domains starting from the longest suffix, i.e. ``www.example.com`` input will be first matched against ``www.example.com``, then ``*.example.com``, then ``*.com``, then ``*``, until the associated matcher action accepts the input. Note that wildcards must be on a dot border, and values like ``*w.example.com`` are invalid.
repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;- Specified by:
getDomainMatchersCountin interfaceServerNameMatcherOrBuilder
-
getDomainMatchers
public ServerNameMatcher.DomainMatcher getDomainMatchers(int index)
Match a server name by multiple domain matchers. Each domain, exact or wildcard, must appear at most once across all the domain matchers. The server name will be matched against all wildcard domains starting from the longest suffix, i.e. ``www.example.com`` input will be first matched against ``www.example.com``, then ``*.example.com``, then ``*.com``, then ``*``, until the associated matcher action accepts the input. Note that wildcards must be on a dot border, and values like ``*w.example.com`` are invalid.
repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;- Specified by:
getDomainMatchersin interfaceServerNameMatcherOrBuilder
-
setDomainMatchers
public ServerNameMatcher.Builder setDomainMatchers(int index, ServerNameMatcher.DomainMatcher value)
Match a server name by multiple domain matchers. Each domain, exact or wildcard, must appear at most once across all the domain matchers. The server name will be matched against all wildcard domains starting from the longest suffix, i.e. ``www.example.com`` input will be first matched against ``www.example.com``, then ``*.example.com``, then ``*.com``, then ``*``, until the associated matcher action accepts the input. Note that wildcards must be on a dot border, and values like ``*w.example.com`` are invalid.
repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
-
setDomainMatchers
public ServerNameMatcher.Builder setDomainMatchers(int index, ServerNameMatcher.DomainMatcher.Builder builderForValue)
Match a server name by multiple domain matchers. Each domain, exact or wildcard, must appear at most once across all the domain matchers. The server name will be matched against all wildcard domains starting from the longest suffix, i.e. ``www.example.com`` input will be first matched against ``www.example.com``, then ``*.example.com``, then ``*.com``, then ``*``, until the associated matcher action accepts the input. Note that wildcards must be on a dot border, and values like ``*w.example.com`` are invalid.
repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
-
addDomainMatchers
public ServerNameMatcher.Builder addDomainMatchers(ServerNameMatcher.DomainMatcher value)
Match a server name by multiple domain matchers. Each domain, exact or wildcard, must appear at most once across all the domain matchers. The server name will be matched against all wildcard domains starting from the longest suffix, i.e. ``www.example.com`` input will be first matched against ``www.example.com``, then ``*.example.com``, then ``*.com``, then ``*``, until the associated matcher action accepts the input. Note that wildcards must be on a dot border, and values like ``*w.example.com`` are invalid.
repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
-
addDomainMatchers
public ServerNameMatcher.Builder addDomainMatchers(int index, ServerNameMatcher.DomainMatcher value)
Match a server name by multiple domain matchers. Each domain, exact or wildcard, must appear at most once across all the domain matchers. The server name will be matched against all wildcard domains starting from the longest suffix, i.e. ``www.example.com`` input will be first matched against ``www.example.com``, then ``*.example.com``, then ``*.com``, then ``*``, until the associated matcher action accepts the input. Note that wildcards must be on a dot border, and values like ``*w.example.com`` are invalid.
repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
-
addDomainMatchers
public ServerNameMatcher.Builder addDomainMatchers(ServerNameMatcher.DomainMatcher.Builder builderForValue)
Match a server name by multiple domain matchers. Each domain, exact or wildcard, must appear at most once across all the domain matchers. The server name will be matched against all wildcard domains starting from the longest suffix, i.e. ``www.example.com`` input will be first matched against ``www.example.com``, then ``*.example.com``, then ``*.com``, then ``*``, until the associated matcher action accepts the input. Note that wildcards must be on a dot border, and values like ``*w.example.com`` are invalid.
repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
-
addDomainMatchers
public ServerNameMatcher.Builder addDomainMatchers(int index, ServerNameMatcher.DomainMatcher.Builder builderForValue)
Match a server name by multiple domain matchers. Each domain, exact or wildcard, must appear at most once across all the domain matchers. The server name will be matched against all wildcard domains starting from the longest suffix, i.e. ``www.example.com`` input will be first matched against ``www.example.com``, then ``*.example.com``, then ``*.com``, then ``*``, until the associated matcher action accepts the input. Note that wildcards must be on a dot border, and values like ``*w.example.com`` are invalid.
repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
-
addAllDomainMatchers
public ServerNameMatcher.Builder addAllDomainMatchers(Iterable<? extends ServerNameMatcher.DomainMatcher> values)
Match a server name by multiple domain matchers. Each domain, exact or wildcard, must appear at most once across all the domain matchers. The server name will be matched against all wildcard domains starting from the longest suffix, i.e. ``www.example.com`` input will be first matched against ``www.example.com``, then ``*.example.com``, then ``*.com``, then ``*``, until the associated matcher action accepts the input. Note that wildcards must be on a dot border, and values like ``*w.example.com`` are invalid.
repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
-
clearDomainMatchers
public ServerNameMatcher.Builder clearDomainMatchers()
Match a server name by multiple domain matchers. Each domain, exact or wildcard, must appear at most once across all the domain matchers. The server name will be matched against all wildcard domains starting from the longest suffix, i.e. ``www.example.com`` input will be first matched against ``www.example.com``, then ``*.example.com``, then ``*.com``, then ``*``, until the associated matcher action accepts the input. Note that wildcards must be on a dot border, and values like ``*w.example.com`` are invalid.
repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
-
removeDomainMatchers
public ServerNameMatcher.Builder removeDomainMatchers(int index)
Match a server name by multiple domain matchers. Each domain, exact or wildcard, must appear at most once across all the domain matchers. The server name will be matched against all wildcard domains starting from the longest suffix, i.e. ``www.example.com`` input will be first matched against ``www.example.com``, then ``*.example.com``, then ``*.com``, then ``*``, until the associated matcher action accepts the input. Note that wildcards must be on a dot border, and values like ``*w.example.com`` are invalid.
repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
-
getDomainMatchersBuilder
public ServerNameMatcher.DomainMatcher.Builder getDomainMatchersBuilder(int index)
Match a server name by multiple domain matchers. Each domain, exact or wildcard, must appear at most once across all the domain matchers. The server name will be matched against all wildcard domains starting from the longest suffix, i.e. ``www.example.com`` input will be first matched against ``www.example.com``, then ``*.example.com``, then ``*.com``, then ``*``, until the associated matcher action accepts the input. Note that wildcards must be on a dot border, and values like ``*w.example.com`` are invalid.
repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
-
getDomainMatchersOrBuilder
public ServerNameMatcher.DomainMatcherOrBuilder getDomainMatchersOrBuilder(int index)
Match a server name by multiple domain matchers. Each domain, exact or wildcard, must appear at most once across all the domain matchers. The server name will be matched against all wildcard domains starting from the longest suffix, i.e. ``www.example.com`` input will be first matched against ``www.example.com``, then ``*.example.com``, then ``*.com``, then ``*``, until the associated matcher action accepts the input. Note that wildcards must be on a dot border, and values like ``*w.example.com`` are invalid.
repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;- Specified by:
getDomainMatchersOrBuilderin interfaceServerNameMatcherOrBuilder
-
getDomainMatchersOrBuilderList
public List<? extends ServerNameMatcher.DomainMatcherOrBuilder> getDomainMatchersOrBuilderList()
Match a server name by multiple domain matchers. Each domain, exact or wildcard, must appear at most once across all the domain matchers. The server name will be matched against all wildcard domains starting from the longest suffix, i.e. ``www.example.com`` input will be first matched against ``www.example.com``, then ``*.example.com``, then ``*.com``, then ``*``, until the associated matcher action accepts the input. Note that wildcards must be on a dot border, and values like ``*w.example.com`` are invalid.
repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;- Specified by:
getDomainMatchersOrBuilderListin interfaceServerNameMatcherOrBuilder
-
addDomainMatchersBuilder
public ServerNameMatcher.DomainMatcher.Builder addDomainMatchersBuilder()
Match a server name by multiple domain matchers. Each domain, exact or wildcard, must appear at most once across all the domain matchers. The server name will be matched against all wildcard domains starting from the longest suffix, i.e. ``www.example.com`` input will be first matched against ``www.example.com``, then ``*.example.com``, then ``*.com``, then ``*``, until the associated matcher action accepts the input. Note that wildcards must be on a dot border, and values like ``*w.example.com`` are invalid.
repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
-
addDomainMatchersBuilder
public ServerNameMatcher.DomainMatcher.Builder addDomainMatchersBuilder(int index)
Match a server name by multiple domain matchers. Each domain, exact or wildcard, must appear at most once across all the domain matchers. The server name will be matched against all wildcard domains starting from the longest suffix, i.e. ``www.example.com`` input will be first matched against ``www.example.com``, then ``*.example.com``, then ``*.com``, then ``*``, until the associated matcher action accepts the input. Note that wildcards must be on a dot border, and values like ``*w.example.com`` are invalid.
repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
-
getDomainMatchersBuilderList
public List<ServerNameMatcher.DomainMatcher.Builder> getDomainMatchersBuilderList()
Match a server name by multiple domain matchers. Each domain, exact or wildcard, must appear at most once across all the domain matchers. The server name will be matched against all wildcard domains starting from the longest suffix, i.e. ``www.example.com`` input will be first matched against ``www.example.com``, then ``*.example.com``, then ``*.com``, then ``*``, until the associated matcher action accepts the input. Note that wildcards must be on a dot border, and values like ``*w.example.com`` are invalid.
repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
-
setUnknownFields
public final ServerNameMatcher.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerNameMatcher.Builder>
-
mergeUnknownFields
public final ServerNameMatcher.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerNameMatcher.Builder>
-
-