Class PolicyBasedRoute.Filter.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Filter.Builder>
com.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter.Builder
All Implemented Interfaces:
PolicyBasedRoute.FilterOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PolicyBasedRoute.Filter

public static final class PolicyBasedRoute.Filter.Builder extends com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.Filter.Builder> implements PolicyBasedRoute.FilterOrBuilder
 Filter matches L4 traffic.
 
Protobuf type google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter
  • 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<PolicyBasedRoute.Filter.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<PolicyBasedRoute.Filter.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<PolicyBasedRoute.Filter.Builder>
    • getDefaultInstanceForType

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

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

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

      public PolicyBasedRoute.Filter.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<PolicyBasedRoute.Filter.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<PolicyBasedRoute.Filter.Builder>
    • mergeFrom

      public PolicyBasedRoute.Filter.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<PolicyBasedRoute.Filter.Builder>
      Throws:
      IOException
    • getIpProtocol

      public String getIpProtocol()
       Optional. The IP protocol that this policy-based route applies to. Valid
       values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
       
      string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIpProtocol in interface PolicyBasedRoute.FilterOrBuilder
      Returns:
      The ipProtocol.
    • getIpProtocolBytes

      public com.google.protobuf.ByteString getIpProtocolBytes()
       Optional. The IP protocol that this policy-based route applies to. Valid
       values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
       
      string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIpProtocolBytes in interface PolicyBasedRoute.FilterOrBuilder
      Returns:
      The bytes for ipProtocol.
    • setIpProtocol

      public PolicyBasedRoute.Filter.Builder setIpProtocol(String value)
       Optional. The IP protocol that this policy-based route applies to. Valid
       values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
       
      string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The ipProtocol to set.
      Returns:
      This builder for chaining.
    • clearIpProtocol

      public PolicyBasedRoute.Filter.Builder clearIpProtocol()
       Optional. The IP protocol that this policy-based route applies to. Valid
       values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
       
      string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setIpProtocolBytes

      public PolicyBasedRoute.Filter.Builder setIpProtocolBytes(com.google.protobuf.ByteString value)
       Optional. The IP protocol that this policy-based route applies to. Valid
       values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
       
      string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for ipProtocol to set.
      Returns:
      This builder for chaining.
    • getSrcRange

      public String getSrcRange()
       Optional. The source IP range of outgoing packets that this policy-based
       route applies to. Default is "0.0.0.0/0" if protocol version is IPv4 and
       "::/0" if protocol version is IPv6.
       
      string src_range = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSrcRange in interface PolicyBasedRoute.FilterOrBuilder
      Returns:
      The srcRange.
    • getSrcRangeBytes

      public com.google.protobuf.ByteString getSrcRangeBytes()
       Optional. The source IP range of outgoing packets that this policy-based
       route applies to. Default is "0.0.0.0/0" if protocol version is IPv4 and
       "::/0" if protocol version is IPv6.
       
      string src_range = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSrcRangeBytes in interface PolicyBasedRoute.FilterOrBuilder
      Returns:
      The bytes for srcRange.
    • setSrcRange

      public PolicyBasedRoute.Filter.Builder setSrcRange(String value)
       Optional. The source IP range of outgoing packets that this policy-based
       route applies to. Default is "0.0.0.0/0" if protocol version is IPv4 and
       "::/0" if protocol version is IPv6.
       
      string src_range = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The srcRange to set.
      Returns:
      This builder for chaining.
    • clearSrcRange

      public PolicyBasedRoute.Filter.Builder clearSrcRange()
       Optional. The source IP range of outgoing packets that this policy-based
       route applies to. Default is "0.0.0.0/0" if protocol version is IPv4 and
       "::/0" if protocol version is IPv6.
       
      string src_range = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setSrcRangeBytes

      public PolicyBasedRoute.Filter.Builder setSrcRangeBytes(com.google.protobuf.ByteString value)
       Optional. The source IP range of outgoing packets that this policy-based
       route applies to. Default is "0.0.0.0/0" if protocol version is IPv4 and
       "::/0" if protocol version is IPv6.
       
      string src_range = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for srcRange to set.
      Returns:
      This builder for chaining.
    • getDestRange

      public String getDestRange()
       Optional. The destination IP range of outgoing packets that this
       policy-based route applies to. Default is "0.0.0.0/0" if protocol version
       is IPv4 and "::/0" if protocol version is IPv6.
       
      string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestRange in interface PolicyBasedRoute.FilterOrBuilder
      Returns:
      The destRange.
    • getDestRangeBytes

      public com.google.protobuf.ByteString getDestRangeBytes()
       Optional. The destination IP range of outgoing packets that this
       policy-based route applies to. Default is "0.0.0.0/0" if protocol version
       is IPv4 and "::/0" if protocol version is IPv6.
       
      string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestRangeBytes in interface PolicyBasedRoute.FilterOrBuilder
      Returns:
      The bytes for destRange.
    • setDestRange

      public PolicyBasedRoute.Filter.Builder setDestRange(String value)
       Optional. The destination IP range of outgoing packets that this
       policy-based route applies to. Default is "0.0.0.0/0" if protocol version
       is IPv4 and "::/0" if protocol version is IPv6.
       
      string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The destRange to set.
      Returns:
      This builder for chaining.
    • clearDestRange

      public PolicyBasedRoute.Filter.Builder clearDestRange()
       Optional. The destination IP range of outgoing packets that this
       policy-based route applies to. Default is "0.0.0.0/0" if protocol version
       is IPv4 and "::/0" if protocol version is IPv6.
       
      string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDestRangeBytes

      public PolicyBasedRoute.Filter.Builder setDestRangeBytes(com.google.protobuf.ByteString value)
       Optional. The destination IP range of outgoing packets that this
       policy-based route applies to. Default is "0.0.0.0/0" if protocol version
       is IPv4 and "::/0" if protocol version is IPv6.
       
      string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for destRange to set.
      Returns:
      This builder for chaining.
    • getProtocolVersionValue

      public int getProtocolVersionValue()
       Required. Internet protocol versions this policy-based route applies to.
       IPV4 and IPV6 is supported.
       
      .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProtocolVersionValue in interface PolicyBasedRoute.FilterOrBuilder
      Returns:
      The enum numeric value on the wire for protocolVersion.
    • setProtocolVersionValue

      public PolicyBasedRoute.Filter.Builder setProtocolVersionValue(int value)
       Required. Internet protocol versions this policy-based route applies to.
       IPV4 and IPV6 is supported.
       
      .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for protocolVersion to set.
      Returns:
      This builder for chaining.
    • getProtocolVersion

      public PolicyBasedRoute.Filter.ProtocolVersion getProtocolVersion()
       Required. Internet protocol versions this policy-based route applies to.
       IPV4 and IPV6 is supported.
       
      .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProtocolVersion in interface PolicyBasedRoute.FilterOrBuilder
      Returns:
      The protocolVersion.
    • setProtocolVersion

       Required. Internet protocol versions this policy-based route applies to.
       IPV4 and IPV6 is supported.
       
      .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The protocolVersion to set.
      Returns:
      This builder for chaining.
    • clearProtocolVersion

      public PolicyBasedRoute.Filter.Builder clearProtocolVersion()
       Required. Internet protocol versions this policy-based route applies to.
       IPV4 and IPV6 is supported.
       
      .google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.