Package com.github.xds.type.matcher.v3
Interface ServerNameMatcher.DomainMatcherOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ServerNameMatcher.DomainMatcher,ServerNameMatcher.DomainMatcher.Builder
- Enclosing class:
- ServerNameMatcher
public static interface ServerNameMatcher.DomainMatcherOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.List<String>getDomainsList()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.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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getDomainsList
List<String> getDomainsList()
A non-empty set of domain names with optional wildcards, e.g. ``www.example.com``, ``*.com``, or ``*``.
repeated string domains = 1 [(.validate.rules) = { ... }- Returns:
- A list containing the domains.
-
getDomainsCount
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) = { ... }- Returns:
- The count of domains.
-
getDomains
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) = { ... }- Parameters:
index- The index of the element to return.- Returns:
- The domains at the given index.
-
getDomainsBytes
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) = { ... }- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the domains at the given index.
-
hasOnMatch
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;- Returns:
- Whether the onMatch field is set.
-
getOnMatch
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;- Returns:
- The onMatch.
-
getOnMatchOrBuilder
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;
-
-