Package com.github.xds.type.matcher.v3
Class ServerNameMatcher.DomainMatcher.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ServerNameMatcher.DomainMatcher.Builder>
-
- com.github.xds.type.matcher.v3.ServerNameMatcher.DomainMatcher.Builder
-
- All Implemented Interfaces:
ServerNameMatcher.DomainMatcherOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ServerNameMatcher.DomainMatcher
public static final class ServerNameMatcher.DomainMatcher.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ServerNameMatcher.DomainMatcher.Builder> implements ServerNameMatcher.DomainMatcherOrBuilder
Specifies a set of exact and wildcard domains and a match action. The wildcard symbol ``*`` must appear at most once as the left-most part of the domain on a dot border. The wildcard matches one or more non-empty domain parts.
Protobuf typexds.type.matcher.v3.ServerNameMatcher.DomainMatcher
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerNameMatcher.DomainMatcher.BuilderaddAllDomains(Iterable<String> values)A non-empty set of domain names with optional wildcards, e.g.ServerNameMatcher.DomainMatcher.BuilderaddDomains(String value)A non-empty set of domain names with optional wildcards, e.g.ServerNameMatcher.DomainMatcher.BuilderaddDomainsBytes(com.google.protobuf.ByteString value)A non-empty set of domain names with optional wildcards, e.g.ServerNameMatcher.DomainMatcher.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ServerNameMatcher.DomainMatcherbuild()ServerNameMatcher.DomainMatcherbuildPartial()ServerNameMatcher.DomainMatcher.Builderclear()ServerNameMatcher.DomainMatcher.BuilderclearDomains()A non-empty set of domain names with optional wildcards, e.g.ServerNameMatcher.DomainMatcher.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ServerNameMatcher.DomainMatcher.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ServerNameMatcher.DomainMatcher.BuilderclearOnMatch()Match action to apply when the server name matches any of the domain names in the matcher.ServerNameMatcher.DomainMatcher.Builderclone()ServerNameMatcher.DomainMatchergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDomains(int index)A non-empty set of domain names with optional wildcards, e.g.com.google.protobuf.ByteStringgetDomainsBytes(int index)A non-empty set of domain names with optional wildcards, e.g.intgetDomainsCount()A non-empty set of domain names with optional wildcards, e.g.com.google.protobuf.ProtocolStringListgetDomainsList()A non-empty set of domain names with optional wildcards, e.g.Matcher.OnMatchgetOnMatch()Match action to apply when the server name matches any of the domain names in the matcher.Matcher.OnMatch.BuildergetOnMatchBuilder()Match action to apply when the server name matches any of the domain names in the matcher.Matcher.OnMatchOrBuildergetOnMatchOrBuilder()Match action to apply when the server name matches any of the domain names in the matcher.booleanhasOnMatch()Match action to apply when the server name matches any of the domain names in the matcher.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ServerNameMatcher.DomainMatcher.BuildermergeFrom(ServerNameMatcher.DomainMatcher other)ServerNameMatcher.DomainMatcher.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ServerNameMatcher.DomainMatcher.BuildermergeFrom(com.google.protobuf.Message other)ServerNameMatcher.DomainMatcher.BuildermergeOnMatch(Matcher.OnMatch value)Match action to apply when the server name matches any of the domain names in the matcher.ServerNameMatcher.DomainMatcher.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ServerNameMatcher.DomainMatcher.BuildersetDomains(int index, String value)A non-empty set of domain names with optional wildcards, e.g.ServerNameMatcher.DomainMatcher.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ServerNameMatcher.DomainMatcher.BuildersetOnMatch(Matcher.OnMatch value)Match action to apply when the server name matches any of the domain names in the matcher.ServerNameMatcher.DomainMatcher.BuildersetOnMatch(Matcher.OnMatch.Builder builderForValue)Match action to apply when the server name matches any of the domain names in the matcher.ServerNameMatcher.DomainMatcher.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ServerNameMatcher.DomainMatcher.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.DomainMatcher.Builder>
-
clear
public ServerNameMatcher.DomainMatcher.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.DomainMatcher.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.DomainMatcher.Builder>
-
getDefaultInstanceForType
public ServerNameMatcher.DomainMatcher getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ServerNameMatcher.DomainMatcher build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ServerNameMatcher.DomainMatcher buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ServerNameMatcher.DomainMatcher.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.DomainMatcher.Builder>
-
setField
public ServerNameMatcher.DomainMatcher.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.DomainMatcher.Builder>
-
clearField
public ServerNameMatcher.DomainMatcher.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerNameMatcher.DomainMatcher.Builder>
-
clearOneof
public ServerNameMatcher.DomainMatcher.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerNameMatcher.DomainMatcher.Builder>
-
setRepeatedField
public ServerNameMatcher.DomainMatcher.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.DomainMatcher.Builder>
-
addRepeatedField
public ServerNameMatcher.DomainMatcher.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.DomainMatcher.Builder>
-
mergeFrom
public ServerNameMatcher.DomainMatcher.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ServerNameMatcher.DomainMatcher.Builder>
-
mergeFrom
public ServerNameMatcher.DomainMatcher.Builder mergeFrom(ServerNameMatcher.DomainMatcher other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerNameMatcher.DomainMatcher.Builder>
-
mergeFrom
public ServerNameMatcher.DomainMatcher.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.DomainMatcher.Builder>- Throws:
IOException
-
getDomainsList
public com.google.protobuf.ProtocolStringList getDomainsList()
A non-empty set of domain names with optional wildcards, e.g. ``www.example.com``, ``*.com``, or ``*``.
repeated string domains = 1 [(.validate.rules) = { ... }- Specified by:
getDomainsListin interfaceServerNameMatcher.DomainMatcherOrBuilder- Returns:
- A list containing the domains.
-
getDomainsCount
public int getDomainsCount()
A non-empty set of domain names with optional wildcards, e.g. ``www.example.com``, ``*.com``, or ``*``.
repeated string domains = 1 [(.validate.rules) = { ... }- Specified by:
getDomainsCountin interfaceServerNameMatcher.DomainMatcherOrBuilder- Returns:
- The count of domains.
-
getDomains
public String getDomains(int index)
A non-empty set of domain names with optional wildcards, e.g. ``www.example.com``, ``*.com``, or ``*``.
repeated string domains = 1 [(.validate.rules) = { ... }- Specified by:
getDomainsin interfaceServerNameMatcher.DomainMatcherOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The domains at the given index.
-
getDomainsBytes
public com.google.protobuf.ByteString getDomainsBytes(int index)
A non-empty set of domain names with optional wildcards, e.g. ``www.example.com``, ``*.com``, or ``*``.
repeated string domains = 1 [(.validate.rules) = { ... }- Specified by:
getDomainsBytesin interfaceServerNameMatcher.DomainMatcherOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the domains at the given index.
-
setDomains
public ServerNameMatcher.DomainMatcher.Builder setDomains(int index, String value)
A non-empty set of domain names with optional wildcards, e.g. ``www.example.com``, ``*.com``, or ``*``.
repeated string domains = 1 [(.validate.rules) = { ... }- Parameters:
index- The index to set the value at.value- The domains to set.- Returns:
- This builder for chaining.
-
addDomains
public ServerNameMatcher.DomainMatcher.Builder addDomains(String value)
A non-empty set of domain names with optional wildcards, e.g. ``www.example.com``, ``*.com``, or ``*``.
repeated string domains = 1 [(.validate.rules) = { ... }- Parameters:
value- The domains to add.- Returns:
- This builder for chaining.
-
addAllDomains
public ServerNameMatcher.DomainMatcher.Builder addAllDomains(Iterable<String> values)
A non-empty set of domain names with optional wildcards, e.g. ``www.example.com``, ``*.com``, or ``*``.
repeated string domains = 1 [(.validate.rules) = { ... }- Parameters:
values- The domains to add.- Returns:
- This builder for chaining.
-
clearDomains
public ServerNameMatcher.DomainMatcher.Builder clearDomains()
A non-empty set of domain names with optional wildcards, e.g. ``www.example.com``, ``*.com``, or ``*``.
repeated string domains = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
addDomainsBytes
public ServerNameMatcher.DomainMatcher.Builder addDomainsBytes(com.google.protobuf.ByteString value)
A non-empty set of domain names with optional wildcards, e.g. ``www.example.com``, ``*.com``, or ``*``.
repeated string domains = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes of the domains to add.- Returns:
- This builder for chaining.
-
hasOnMatch
public boolean hasOnMatch()
Match action to apply when the server name matches any of the domain names in the matcher.
.xds.type.matcher.v3.Matcher.OnMatch on_match = 2;- Specified by:
hasOnMatchin interfaceServerNameMatcher.DomainMatcherOrBuilder- Returns:
- Whether the onMatch field is set.
-
getOnMatch
public Matcher.OnMatch getOnMatch()
Match action to apply when the server name matches any of the domain names in the matcher.
.xds.type.matcher.v3.Matcher.OnMatch on_match = 2;- Specified by:
getOnMatchin interfaceServerNameMatcher.DomainMatcherOrBuilder- Returns:
- The onMatch.
-
setOnMatch
public ServerNameMatcher.DomainMatcher.Builder setOnMatch(Matcher.OnMatch value)
Match action to apply when the server name matches any of the domain names in the matcher.
.xds.type.matcher.v3.Matcher.OnMatch on_match = 2;
-
setOnMatch
public ServerNameMatcher.DomainMatcher.Builder setOnMatch(Matcher.OnMatch.Builder builderForValue)
Match action to apply when the server name matches any of the domain names in the matcher.
.xds.type.matcher.v3.Matcher.OnMatch on_match = 2;
-
mergeOnMatch
public ServerNameMatcher.DomainMatcher.Builder mergeOnMatch(Matcher.OnMatch value)
Match action to apply when the server name matches any of the domain names in the matcher.
.xds.type.matcher.v3.Matcher.OnMatch on_match = 2;
-
clearOnMatch
public ServerNameMatcher.DomainMatcher.Builder clearOnMatch()
Match action to apply when the server name matches any of the domain names in the matcher.
.xds.type.matcher.v3.Matcher.OnMatch on_match = 2;
-
getOnMatchBuilder
public Matcher.OnMatch.Builder getOnMatchBuilder()
Match action to apply when the server name matches any of the domain names in the matcher.
.xds.type.matcher.v3.Matcher.OnMatch on_match = 2;
-
getOnMatchOrBuilder
public Matcher.OnMatchOrBuilder getOnMatchOrBuilder()
Match action to apply when the server name matches any of the domain names in the matcher.
.xds.type.matcher.v3.Matcher.OnMatch on_match = 2;- Specified by:
getOnMatchOrBuilderin interfaceServerNameMatcher.DomainMatcherOrBuilder
-
setUnknownFields
public final ServerNameMatcher.DomainMatcher.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerNameMatcher.DomainMatcher.Builder>
-
mergeUnknownFields
public final ServerNameMatcher.DomainMatcher.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerNameMatcher.DomainMatcher.Builder>
-
-