Class TlsRoute.RouteMatch.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TlsRoute.RouteMatch.Builder>
com.google.cloud.networkservices.v1.TlsRoute.RouteMatch.Builder
- All Implemented Interfaces:
TlsRoute.RouteMatchOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TlsRoute.RouteMatch
public static final class TlsRoute.RouteMatch.Builder
extends com.google.protobuf.GeneratedMessage.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.Protobuf type
google.cloud.networkservices.v1.TlsRoute.RouteMatch-
Method Summary
Modifier and TypeMethodDescriptionaddAllAlpn(Iterable<String> values) Optional.addAllSniHost(Iterable<String> values) Optional.Optional.addAlpnBytes(com.google.protobuf.ByteString value) Optional.addSniHost(String value) Optional.addSniHostBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Optional.getAlpn(int index) Optional.com.google.protobuf.ByteStringgetAlpnBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetSniHost(int index) Optional.com.google.protobuf.ByteStringgetSniHostBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(TlsRoute.RouteMatch other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setSniHost(int index, String value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TlsRoute.RouteMatch.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TlsRoute.RouteMatch.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TlsRoute.RouteMatch.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TlsRoute.RouteMatch.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TlsRoute.RouteMatch.Builder>
-
mergeFrom
public TlsRoute.RouteMatch.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TlsRoute.RouteMatch.Builder>- Throws:
IOException
-
getSniHostList
public com.google.protobuf.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 100 sni hosts across all matches can be set.
repeated string sni_host = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSniHostListin interfaceTlsRoute.RouteMatchOrBuilder- Returns:
- A list containing the sniHost.
-
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 100 sni hosts across all matches can be set.
repeated string sni_host = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSniHostCountin interfaceTlsRoute.RouteMatchOrBuilder- Returns:
- The count of sniHost.
-
getSniHost
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 100 sni hosts across all matches can be set.
repeated string sni_host = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSniHostin interfaceTlsRoute.RouteMatchOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The sniHost at the given index.
-
getSniHostBytes
public com.google.protobuf.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 100 sni hosts across all matches can be set.
repeated string sni_host = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSniHostBytesin interfaceTlsRoute.RouteMatchOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the sniHost at the given index.
-
setSniHost
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 100 sni hosts across all matches can be set.
repeated string sni_host = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The sniHost to set.- Returns:
- This builder for chaining.
-
addSniHost
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 100 sni hosts across all matches can be set.
repeated string sni_host = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The sniHost to add.- Returns:
- This builder for chaining.
-
addAllSniHost
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 100 sni hosts across all matches can be set.
repeated string sni_host = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The sniHost to add.- Returns:
- This builder for chaining.
-
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 100 sni hosts across all matches can be set.
repeated string sni_host = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addSniHostBytes
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 100 sni hosts across all matches can be set.
repeated string sni_host = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the sniHost to add.- Returns:
- This builder for chaining.
-
getAlpnList
public com.google.protobuf.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];- Specified by:
getAlpnListin interfaceTlsRoute.RouteMatchOrBuilder- Returns:
- A list containing the alpn.
-
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];- Specified by:
getAlpnCountin interfaceTlsRoute.RouteMatchOrBuilder- Returns:
- The count of alpn.
-
getAlpn
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];- Specified by:
getAlpnin interfaceTlsRoute.RouteMatchOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The alpn at the given index.
-
getAlpnBytes
public com.google.protobuf.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];- Specified by:
getAlpnBytesin interfaceTlsRoute.RouteMatchOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the alpn at the given index.
-
setAlpn
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:
index- The index to set the value at.value- The alpn to set.- Returns:
- This builder for chaining.
-
addAlpn
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:
value- The alpn to add.- Returns:
- This builder for chaining.
-
addAllAlpn
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:
values- The alpn to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addAlpnBytes
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:
value- The bytes of the alpn to add.- Returns:
- This builder for chaining.
-