Class TlsRoute.RouteMatch.Builder (0.1.0)

public static final class TlsRoute.RouteMatch.Builder extends GeneratedMessageV3.Builder<TlsRoute.RouteMatch.Builder> 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 Methods

getDescriptor()

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

Methods

addAllAlpn(Iterable<String> values)

public TlsRoute.RouteMatch.Builder addAllAlpn(Iterable<String> values)

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
values Iterable<String>

The alpn to add.

Returns
Type Description
TlsRoute.RouteMatch.Builder

This builder for chaining.

addAllSniHost(Iterable<String> values)

public TlsRoute.RouteMatch.Builder addAllSniHost(Iterable<String> values)

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
values Iterable<String>

The sniHost to add.

Returns
Type Description
TlsRoute.RouteMatch.Builder

This builder for chaining.

addAlpn(String value)

public TlsRoute.RouteMatch.Builder addAlpn(String value)

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
value String

The alpn to add.

Returns
Type Description
TlsRoute.RouteMatch.Builder

This builder for chaining.

addAlpnBytes(ByteString value)

public TlsRoute.RouteMatch.Builder addAlpnBytes(ByteString value)

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
value ByteString

The bytes of the alpn to add.

Returns
Type Description
TlsRoute.RouteMatch.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TlsRoute.RouteMatch.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TlsRoute.RouteMatch.Builder
Overrides

addSniHost(String value)

public TlsRoute.RouteMatch.Builder addSniHost(String value)

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
value String

The sniHost to add.

Returns
Type Description
TlsRoute.RouteMatch.Builder

This builder for chaining.

addSniHostBytes(ByteString value)

public TlsRoute.RouteMatch.Builder addSniHostBytes(ByteString value)

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
value ByteString

The bytes of the sniHost to add.

Returns
Type Description
TlsRoute.RouteMatch.Builder

This builder for chaining.

build()

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

buildPartial()

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

clear()

public TlsRoute.RouteMatch.Builder clear()
Returns
Type Description
TlsRoute.RouteMatch.Builder
Overrides

clearAlpn()

public TlsRoute.RouteMatch.Builder clearAlpn()

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
TlsRoute.RouteMatch.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TlsRoute.RouteMatch.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TlsRoute.RouteMatch.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TlsRoute.RouteMatch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TlsRoute.RouteMatch.Builder
Overrides

clearSniHost()

public TlsRoute.RouteMatch.Builder clearSniHost()

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
TlsRoute.RouteMatch.Builder

This builder for chaining.

clone()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TlsRoute.RouteMatch other)

public TlsRoute.RouteMatch.Builder mergeFrom(TlsRoute.RouteMatch other)
Parameter
Name Description
other TlsRoute.RouteMatch
Returns
Type Description
TlsRoute.RouteMatch.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TlsRoute.RouteMatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TlsRoute.RouteMatch.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TlsRoute.RouteMatch.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TlsRoute.RouteMatch.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TlsRoute.RouteMatch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TlsRoute.RouteMatch.Builder
Overrides

setAlpn(int index, String value)

public TlsRoute.RouteMatch.Builder setAlpn(int index, String value)

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];

Parameters
Name Description
index int

The index to set the value at.

value String

The alpn to set.

Returns
Type Description
TlsRoute.RouteMatch.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TlsRoute.RouteMatch.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TlsRoute.RouteMatch.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TlsRoute.RouteMatch.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TlsRoute.RouteMatch.Builder
Overrides

setSniHost(int index, String value)

public TlsRoute.RouteMatch.Builder setSniHost(int index, String value)

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];

Parameters
Name Description
index int

The index to set the value at.

value String

The sniHost to set.

Returns
Type Description
TlsRoute.RouteMatch.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TlsRoute.RouteMatch.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TlsRoute.RouteMatch.Builder
Overrides