Class TlsRoute.RouteMatch (0.15.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.events.cloud.networkservices.v1.TlsRoute.RouteMatch

Static Fields

ALPN_FIELD_NUMBER

public static final int ALPN_FIELD_NUMBER
Field Value
TypeDescription
int

SNI_HOST_FIELD_NUMBER

public static final int SNI_HOST_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TlsRoute.RouteMatch getDefaultInstance()
Returns
TypeDescription
TlsRoute.RouteMatch

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static TlsRoute.RouteMatch.Builder newBuilder()
Returns
TypeDescription
TlsRoute.RouteMatch.Builder

newBuilder(TlsRoute.RouteMatch prototype)

public static TlsRoute.RouteMatch.Builder newBuilder(TlsRoute.RouteMatch prototype)
Parameter
NameDescription
prototypeTlsRoute.RouteMatch
Returns
TypeDescription
TlsRoute.RouteMatch.Builder

parseDelimitedFrom(InputStream input)

public static TlsRoute.RouteMatch parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TlsRoute.RouteMatch
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TlsRoute.RouteMatch parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TlsRoute.RouteMatch
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TlsRoute.RouteMatch parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TlsRoute.RouteMatch
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TlsRoute.RouteMatch parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TlsRoute.RouteMatch
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TlsRoute.RouteMatch parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TlsRoute.RouteMatch
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TlsRoute.RouteMatch parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TlsRoute.RouteMatch
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TlsRoute.RouteMatch parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TlsRoute.RouteMatch
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TlsRoute.RouteMatch parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TlsRoute.RouteMatch
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TlsRoute.RouteMatch parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TlsRoute.RouteMatch
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TlsRoute.RouteMatch parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TlsRoute.RouteMatch
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TlsRoute.RouteMatch parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TlsRoute.RouteMatch
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TlsRoute.RouteMatch parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TlsRoute.RouteMatch
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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;

Returns
TypeDescription
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;

Returns
TypeDescription
ProtocolStringList

A list containing the alpn.

getDefaultInstanceForType()

public TlsRoute.RouteMatch getDefaultInstanceForType()
Returns
TypeDescription
TlsRoute.RouteMatch

getParserForType()

public Parser<TlsRoute.RouteMatch> getParserForType()
Returns
TypeDescription
Parser<RouteMatch>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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;

Returns
TypeDescription
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;

Returns
TypeDescription
ProtocolStringList

A list containing the sniHost.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TlsRoute.RouteMatch.Builder newBuilderForType()
Returns
TypeDescription
TlsRoute.RouteMatch.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TlsRoute.RouteMatch.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TlsRoute.RouteMatch.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TlsRoute.RouteMatch.Builder toBuilder()
Returns
TypeDescription
TlsRoute.RouteMatch.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException