Package com.github.xds.type.matcher.v3
Class ServerNameMatcher.DomainMatcher.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
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 type
xds.type.matcher.v3.ServerNameMatcher.DomainMatcher-
Method Summary
Modifier and TypeMethodDescriptionaddAllDomains(Iterable<String> values) A non-empty set of domain names with optional wildcards, e.g.addDomains(String value) A non-empty set of domain names with optional wildcards, e.g.addDomainsBytes(com.google.protobuf.ByteString value) A non-empty set of domain names with optional wildcards, e.g.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()A non-empty set of domain names with optional wildcards, e.g.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Match action to apply when the server name matches any of the domain names in the matcher.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDomains(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.intA non-empty set of domain names with optional wildcards, e.g.com.google.protobuf.ProtocolStringListA non-empty set of domain names with optional wildcards, e.g.Match action to apply when the server name matches any of the domain names in the matcher.Match action to apply when the server name matches any of the domain names in the matcher.Match action to apply when the server name matches any of the domain names in the matcher.booleanMatch action to apply when the server name matches any of the domain names in the matcher.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeOnMatch(Matcher.OnMatch value) Match action to apply when the server name matches any of the domain names in the matcher.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setDomains(int index, String value) A non-empty set of domain names with optional wildcards, e.g.setOnMatch(Matcher.OnMatch value) Match action to apply when the server name matches any of the domain names in the matcher.setOnMatch(Matcher.OnMatch.Builder builderForValue) Match action to apply when the server name matches any of the domain names in the matcher.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ServerNameMatcher.DomainMatcher.Builder>
-
mergeFrom
-
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
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
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
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
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
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
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
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
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
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
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
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
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>
-