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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TlsRoute.RouteMatch.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TlsRoute.RouteMatch.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TlsRoute.RouteMatch.Builder>
    • getDefaultInstanceForType

      public TlsRoute.RouteMatch getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TlsRoute.RouteMatch build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TlsRoute.RouteMatch buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TlsRoute.RouteMatch.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TlsRoute.RouteMatch.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getSniHostList in interface TlsRoute.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:
      getSniHostCount in interface TlsRoute.RouteMatchOrBuilder
      Returns:
      The count of sniHost.
    • getSniHost

      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 100 sni hosts across all matches can be set.
       
      repeated string sni_host = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSniHost in interface TlsRoute.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:
      getSniHostBytes in interface TlsRoute.RouteMatchOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the sniHost at the given index.
    • setSniHost

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

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

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

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

      public TlsRoute.RouteMatch.Builder addSniHostBytes(com.google.protobuf.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 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:
      getAlpnList in interface TlsRoute.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:
      getAlpnCount in interface TlsRoute.RouteMatchOrBuilder
      Returns:
      The count of alpn.
    • getAlpn

      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];
      Specified by:
      getAlpn in interface TlsRoute.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:
      getAlpnBytes in interface TlsRoute.RouteMatchOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the alpn at the given index.
    • setAlpn

      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:
      index - The index to set the value at.
      value - The alpn to set.
      Returns:
      This builder for chaining.
    • addAlpn

      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];
      Parameters:
      value - The alpn to add.
      Returns:
      This builder for chaining.
    • addAllAlpn

      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];
      Parameters:
      values - The alpn to add.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • addAlpnBytes

      public TlsRoute.RouteMatch.Builder addAlpnBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes of the alpn to add.
      Returns:
      This builder for chaining.