Class TcpRoute.RouteMatch.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TcpRoute.RouteMatch.Builder>
com.google.cloud.networkservices.v1.TcpRoute.RouteMatch.Builder
All Implemented Interfaces:
TcpRoute.RouteMatchOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TcpRoute.RouteMatch

public static final class TcpRoute.RouteMatch.Builder extends com.google.protobuf.GeneratedMessage.Builder<TcpRoute.RouteMatch.Builder> implements TcpRoute.RouteMatchOrBuilder
 RouteMatch defines the predicate used to match requests to a given action.
 Multiple match types are "OR"ed for evaluation.
 If no routeMatch field is specified, this rule will unconditionally match
 traffic.
 
Protobuf type google.cloud.networkservices.v1.TcpRoute.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<TcpRoute.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<TcpRoute.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<TcpRoute.RouteMatch.Builder>
    • getDefaultInstanceForType

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

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

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

      public TcpRoute.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<TcpRoute.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<TcpRoute.RouteMatch.Builder>
    • mergeFrom

      public TcpRoute.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<TcpRoute.RouteMatch.Builder>
      Throws:
      IOException
    • getAddress

      public String getAddress()
       Required. Must be specified in the CIDR range format. A CIDR range
       consists of an IP Address and a prefix length to construct the subnet
       mask. By default, the prefix length is 32 (i.e. matches a single IP
       address). Only IPV4 addresses are supported. Examples: "10.0.0.1" -
       matches against this exact IP address. "10.0.0.0/8" - matches against any
       IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0"
       - matches against any IP address'.
       
      string address = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAddress in interface TcpRoute.RouteMatchOrBuilder
      Returns:
      The address.
    • getAddressBytes

      public com.google.protobuf.ByteString getAddressBytes()
       Required. Must be specified in the CIDR range format. A CIDR range
       consists of an IP Address and a prefix length to construct the subnet
       mask. By default, the prefix length is 32 (i.e. matches a single IP
       address). Only IPV4 addresses are supported. Examples: "10.0.0.1" -
       matches against this exact IP address. "10.0.0.0/8" - matches against any
       IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0"
       - matches against any IP address'.
       
      string address = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAddressBytes in interface TcpRoute.RouteMatchOrBuilder
      Returns:
      The bytes for address.
    • setAddress

      public TcpRoute.RouteMatch.Builder setAddress(String value)
       Required. Must be specified in the CIDR range format. A CIDR range
       consists of an IP Address and a prefix length to construct the subnet
       mask. By default, the prefix length is 32 (i.e. matches a single IP
       address). Only IPV4 addresses are supported. Examples: "10.0.0.1" -
       matches against this exact IP address. "10.0.0.0/8" - matches against any
       IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0"
       - matches against any IP address'.
       
      string address = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The address to set.
      Returns:
      This builder for chaining.
    • clearAddress

      public TcpRoute.RouteMatch.Builder clearAddress()
       Required. Must be specified in the CIDR range format. A CIDR range
       consists of an IP Address and a prefix length to construct the subnet
       mask. By default, the prefix length is 32 (i.e. matches a single IP
       address). Only IPV4 addresses are supported. Examples: "10.0.0.1" -
       matches against this exact IP address. "10.0.0.0/8" - matches against any
       IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0"
       - matches against any IP address'.
       
      string address = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setAddressBytes

      public TcpRoute.RouteMatch.Builder setAddressBytes(com.google.protobuf.ByteString value)
       Required. Must be specified in the CIDR range format. A CIDR range
       consists of an IP Address and a prefix length to construct the subnet
       mask. By default, the prefix length is 32 (i.e. matches a single IP
       address). Only IPV4 addresses are supported. Examples: "10.0.0.1" -
       matches against this exact IP address. "10.0.0.0/8" - matches against any
       IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0"
       - matches against any IP address'.
       
      string address = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for address to set.
      Returns:
      This builder for chaining.
    • getPort

      public String getPort()
       Required. Specifies the destination port to match against.
       
      string port = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPort in interface TcpRoute.RouteMatchOrBuilder
      Returns:
      The port.
    • getPortBytes

      public com.google.protobuf.ByteString getPortBytes()
       Required. Specifies the destination port to match against.
       
      string port = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPortBytes in interface TcpRoute.RouteMatchOrBuilder
      Returns:
      The bytes for port.
    • setPort

      public TcpRoute.RouteMatch.Builder setPort(String value)
       Required. Specifies the destination port to match against.
       
      string port = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The port to set.
      Returns:
      This builder for chaining.
    • clearPort

      public TcpRoute.RouteMatch.Builder clearPort()
       Required. Specifies the destination port to match against.
       
      string port = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setPortBytes

      public TcpRoute.RouteMatch.Builder setPortBytes(com.google.protobuf.ByteString value)
       Required. Specifies the destination port to match against.
       
      string port = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for port to set.
      Returns:
      This builder for chaining.