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.
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.
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.
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.
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.
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.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Interface TlsRoute.RouteMatchOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkservices.v1.TlsRoute.RouteMatchOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.networkservices.v1.TlsRoute.RouteMatchOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.networkservices.v1.TlsRoute.RouteMatchOrBuilder) \n\n public static interface TlsRoute.RouteMatchOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getAlpn(int index)\n\n public abstract String getAlpn(int index)\n\nOptional. ALPN (Application-Layer Protocol Negotiation) to match against.\nExamples: \"http/1.1\", \"h2\".\nAt least one of sni_host and alpn is required.\nUp to 5 alpns across all matches can be set.\n\n`repeated string alpn = 2;`\n\n### getAlpnBytes(int index)\n\n public abstract ByteString getAlpnBytes(int index)\n\nOptional. ALPN (Application-Layer Protocol Negotiation) to match against.\nExamples: \"http/1.1\", \"h2\".\nAt least one of sni_host and alpn is required.\nUp to 5 alpns across all matches can be set.\n\n`repeated string alpn = 2;`\n\n### getAlpnCount()\n\n public abstract int getAlpnCount()\n\nOptional. ALPN (Application-Layer Protocol Negotiation) to match against.\nExamples: \"http/1.1\", \"h2\".\nAt least one of sni_host and alpn is required.\nUp to 5 alpns across all matches can be set.\n\n`repeated string alpn = 2;`\n\n### getAlpnList()\n\n public abstract List\u003cString\u003e getAlpnList()\n\nOptional. ALPN (Application-Layer Protocol Negotiation) to match against.\nExamples: \"http/1.1\", \"h2\".\nAt least one of sni_host and alpn is required.\nUp to 5 alpns across all matches can be set.\n\n`repeated string alpn = 2;`\n\n### getSniHost(int index)\n\n public abstract String getSniHost(int index)\n\nOptional. SNI (server name indicator) to match against.\nSNI will be matched against all wildcard domains, i.e. `www.example.com`\nwill be first matched against `www.example.com`, then *.example.com*,\nthen `.com.`\nPartial wildcards are not supported, and values like \\*w.example.com are\ninvalid.\nAt least one of sni_host and alpn is required.\nUp to 5 sni hosts across all matches can be set.\n\n`repeated string sni_host = 1;`\n\n### getSniHostBytes(int index)\n\n public abstract ByteString getSniHostBytes(int index)\n\nOptional. SNI (server name indicator) to match against.\nSNI will be matched against all wildcard domains, i.e. `www.example.com`\nwill be first matched against `www.example.com`, then *.example.com*,\nthen `.com.`\nPartial wildcards are not supported, and values like \\*w.example.com are\ninvalid.\nAt least one of sni_host and alpn is required.\nUp to 5 sni hosts across all matches can be set.\n\n`repeated string sni_host = 1;`\n\n### getSniHostCount()\n\n public abstract int getSniHostCount()\n\nOptional. SNI (server name indicator) to match against.\nSNI will be matched against all wildcard domains, i.e. `www.example.com`\nwill be first matched against `www.example.com`, then *.example.com*,\nthen `.com.`\nPartial wildcards are not supported, and values like \\*w.example.com are\ninvalid.\nAt least one of sni_host and alpn is required.\nUp to 5 sni hosts across all matches can be set.\n\n`repeated string sni_host = 1;`\n\n### getSniHostList()\n\n public abstract List\u003cString\u003e getSniHostList()\n\nOptional. SNI (server name indicator) to match against.\nSNI will be matched against all wildcard domains, i.e. `www.example.com`\nwill be first matched against `www.example.com`, then *.example.com*,\nthen `.com.`\nPartial wildcards are not supported, and values like \\*w.example.com are\ninvalid.\nAt least one of sni_host and alpn is required.\nUp to 5 sni hosts across all matches can be set.\n\n`repeated string sni_host = 1;`"]]