public static final class TlsRoute.RouteMatch extends GeneratedMessageV3 implements TlsRoute.RouteMatchOrBuilder
RouteMatch defines the predicate used to match requests to a given action.
Multiple match types are "AND"ed for evaluation.
If no routeMatch field is specified, this rule will unconditionally match
traffic.
Protobuf type google.cloud.networkservices.v1.TlsRoute.RouteMatch
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ALPN_FIELD_NUMBER
public static final int ALPN_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SNI_HOST_FIELD_NUMBER
public static final int SNI_HOST_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static TlsRoute.RouteMatch getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static TlsRoute.RouteMatch.Builder newBuilder()
newBuilder(TlsRoute.RouteMatch prototype)
public static TlsRoute.RouteMatch.Builder newBuilder(TlsRoute.RouteMatch prototype)
public static TlsRoute.RouteMatch parseDelimitedFrom(InputStream input)
public static TlsRoute.RouteMatch parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static TlsRoute.RouteMatch parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TlsRoute.RouteMatch parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static TlsRoute.RouteMatch parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TlsRoute.RouteMatch parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TlsRoute.RouteMatch parseFrom(CodedInputStream input)
public static TlsRoute.RouteMatch parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static TlsRoute.RouteMatch parseFrom(InputStream input)
public static TlsRoute.RouteMatch parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static TlsRoute.RouteMatch parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static TlsRoute.RouteMatch parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<TlsRoute.RouteMatch> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getAlpn(int index)
public String getAlpn(int index)
Optional. ALPN (Application-Layer Protocol Negotiation) to match against.
Examples: "http/1.1", "h2".
At least one of sni_host and alpn is required.
Up to 5 alpns across all matches can be set.
repeated string alpn = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The alpn at the given index.
|
getAlpnBytes(int index)
public ByteString getAlpnBytes(int index)
Optional. ALPN (Application-Layer Protocol Negotiation) to match against.
Examples: "http/1.1", "h2".
At least one of sni_host and alpn is required.
Up to 5 alpns across all matches can be set.
repeated string alpn = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the alpn at the given index.
|
getAlpnCount()
public int getAlpnCount()
Optional. ALPN (Application-Layer Protocol Negotiation) to match against.
Examples: "http/1.1", "h2".
At least one of sni_host and alpn is required.
Up to 5 alpns across all matches can be set.
repeated string alpn = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
The count of alpn.
|
getAlpnList()
public ProtocolStringList getAlpnList()
Optional. ALPN (Application-Layer Protocol Negotiation) to match against.
Examples: "http/1.1", "h2".
At least one of sni_host and alpn is required.
Up to 5 alpns across all matches can be set.
repeated string alpn = 2 [(.google.api.field_behavior) = OPTIONAL];
getDefaultInstanceForType()
public TlsRoute.RouteMatch getDefaultInstanceForType()
getParserForType()
public Parser<TlsRoute.RouteMatch> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getSniHost(int index)
public String getSniHost(int index)
Optional. SNI (server name indicator) to match against.
SNI will be matched against all wildcard domains, i.e. www.example.com
will be first matched against www.example.com
, then .example.com
,
then .com.
Partial wildcards are not supported, and values like *w.example.com are
invalid.
At least one of sni_host and alpn is required.
Up to 5 sni hosts across all matches can be set.
repeated string sni_host = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The sniHost at the given index.
|
getSniHostBytes(int index)
public ByteString getSniHostBytes(int index)
Optional. SNI (server name indicator) to match against.
SNI will be matched against all wildcard domains, i.e. www.example.com
will be first matched against www.example.com
, then .example.com
,
then .com.
Partial wildcards are not supported, and values like *w.example.com are
invalid.
At least one of sni_host and alpn is required.
Up to 5 sni hosts across all matches can be set.
repeated string sni_host = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the sniHost at the given index.
|
getSniHostCount()
public int getSniHostCount()
Optional. SNI (server name indicator) to match against.
SNI will be matched against all wildcard domains, i.e. www.example.com
will be first matched against www.example.com
, then .example.com
,
then .com.
Partial wildcards are not supported, and values like *w.example.com are
invalid.
At least one of sni_host and alpn is required.
Up to 5 sni hosts across all matches can be set.
repeated string sni_host = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
The count of sniHost.
|
getSniHostList()
public ProtocolStringList getSniHostList()
Optional. SNI (server name indicator) to match against.
SNI will be matched against all wildcard domains, i.e. www.example.com
will be first matched against www.example.com
, then .example.com
,
then .com.
Partial wildcards are not supported, and values like *w.example.com are
invalid.
At least one of sni_host and alpn is required.
Up to 5 sni hosts across all matches can be set.
repeated string sni_host = 1 [(.google.api.field_behavior) = OPTIONAL];
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public TlsRoute.RouteMatch.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected TlsRoute.RouteMatch.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public TlsRoute.RouteMatch.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides