Interface TlsRoute.RouteMatchOrBuilder (0.4.0)

public static interface TlsRoute.RouteMatchOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAlpn(int index)

public abstract 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 abstract 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 abstract 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 abstract List<String> 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
List<String>

A list containing the alpn.

getSniHost(int index)

public abstract 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 abstract 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 abstract 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 abstract List<String> 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
List<String>

A list containing the sniHost.