Class TlsRoute.RouteMatch (0.2.0)

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

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()
Returns
Type Description
TlsRoute.RouteMatch

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static TlsRoute.RouteMatch.Builder newBuilder()
Returns
Type Description
TlsRoute.RouteMatch.Builder

newBuilder(TlsRoute.RouteMatch prototype)

public static TlsRoute.RouteMatch.Builder newBuilder(TlsRoute.RouteMatch prototype)
Parameter
Name Description
prototype TlsRoute.RouteMatch
Returns
Type Description
TlsRoute.RouteMatch.Builder

parseDelimitedFrom(InputStream input)

public static TlsRoute.RouteMatch parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TlsRoute.RouteMatch
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TlsRoute.RouteMatch parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TlsRoute.RouteMatch
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static TlsRoute.RouteMatch parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
TlsRoute.RouteMatch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TlsRoute.RouteMatch parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TlsRoute.RouteMatch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TlsRoute.RouteMatch parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
TlsRoute.RouteMatch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TlsRoute.RouteMatch parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TlsRoute.RouteMatch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TlsRoute.RouteMatch parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TlsRoute.RouteMatch
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TlsRoute.RouteMatch parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TlsRoute.RouteMatch
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static TlsRoute.RouteMatch parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TlsRoute.RouteMatch
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TlsRoute.RouteMatch parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TlsRoute.RouteMatch
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static TlsRoute.RouteMatch parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TlsRoute.RouteMatch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TlsRoute.RouteMatch parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TlsRoute.RouteMatch
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<TlsRoute.RouteMatch> parser()
Returns
Type Description
Parser<RouteMatch>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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];

Returns
Type Description
ProtocolStringList

A list containing the alpn.

getDefaultInstanceForType()

public TlsRoute.RouteMatch getDefaultInstanceForType()
Returns
Type Description
TlsRoute.RouteMatch

getParserForType()

public Parser<TlsRoute.RouteMatch> getParserForType()
Returns
Type Description
Parser<RouteMatch>
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];

Returns
Type Description
ProtocolStringList

A list containing the sniHost.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public TlsRoute.RouteMatch.Builder newBuilderForType()
Returns
Type Description
TlsRoute.RouteMatch.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TlsRoute.RouteMatch.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TlsRoute.RouteMatch.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public TlsRoute.RouteMatch.Builder toBuilder()
Returns
Type Description
TlsRoute.RouteMatch.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException