Class RouterNatRuleAction.Builder

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

public static final class RouterNatRuleAction.Builder extends com.google.protobuf.GeneratedMessage.Builder<RouterNatRuleAction.Builder> implements RouterNatRuleActionOrBuilder
 
Protobuf type google.cloud.compute.v1.RouterNatRuleAction
  • 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<RouterNatRuleAction.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<RouterNatRuleAction.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<RouterNatRuleAction.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public RouterNatRuleAction.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<RouterNatRuleAction.Builder>
      Throws:
      IOException
    • getSourceNatActiveIpsList

      public com.google.protobuf.ProtocolStringList getSourceNatActiveIpsList()
       A list of URLs of the IP resources used for this NAT rule. These IP
       addresses must be valid static external IP addresses assigned to the
       project.
       This field is used for public NAT.
       
      repeated string source_nat_active_ips = 210378229;
      Specified by:
      getSourceNatActiveIpsList in interface RouterNatRuleActionOrBuilder
      Returns:
      A list containing the sourceNatActiveIps.
    • getSourceNatActiveIpsCount

      public int getSourceNatActiveIpsCount()
       A list of URLs of the IP resources used for this NAT rule. These IP
       addresses must be valid static external IP addresses assigned to the
       project.
       This field is used for public NAT.
       
      repeated string source_nat_active_ips = 210378229;
      Specified by:
      getSourceNatActiveIpsCount in interface RouterNatRuleActionOrBuilder
      Returns:
      The count of sourceNatActiveIps.
    • getSourceNatActiveIps

      public String getSourceNatActiveIps(int index)
       A list of URLs of the IP resources used for this NAT rule. These IP
       addresses must be valid static external IP addresses assigned to the
       project.
       This field is used for public NAT.
       
      repeated string source_nat_active_ips = 210378229;
      Specified by:
      getSourceNatActiveIps in interface RouterNatRuleActionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The sourceNatActiveIps at the given index.
    • getSourceNatActiveIpsBytes

      public com.google.protobuf.ByteString getSourceNatActiveIpsBytes(int index)
       A list of URLs of the IP resources used for this NAT rule. These IP
       addresses must be valid static external IP addresses assigned to the
       project.
       This field is used for public NAT.
       
      repeated string source_nat_active_ips = 210378229;
      Specified by:
      getSourceNatActiveIpsBytes in interface RouterNatRuleActionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the sourceNatActiveIps at the given index.
    • setSourceNatActiveIps

      public RouterNatRuleAction.Builder setSourceNatActiveIps(int index, String value)
       A list of URLs of the IP resources used for this NAT rule. These IP
       addresses must be valid static external IP addresses assigned to the
       project.
       This field is used for public NAT.
       
      repeated string source_nat_active_ips = 210378229;
      Parameters:
      index - The index to set the value at.
      value - The sourceNatActiveIps to set.
      Returns:
      This builder for chaining.
    • addSourceNatActiveIps

      public RouterNatRuleAction.Builder addSourceNatActiveIps(String value)
       A list of URLs of the IP resources used for this NAT rule. These IP
       addresses must be valid static external IP addresses assigned to the
       project.
       This field is used for public NAT.
       
      repeated string source_nat_active_ips = 210378229;
      Parameters:
      value - The sourceNatActiveIps to add.
      Returns:
      This builder for chaining.
    • addAllSourceNatActiveIps

      public RouterNatRuleAction.Builder addAllSourceNatActiveIps(Iterable<String> values)
       A list of URLs of the IP resources used for this NAT rule. These IP
       addresses must be valid static external IP addresses assigned to the
       project.
       This field is used for public NAT.
       
      repeated string source_nat_active_ips = 210378229;
      Parameters:
      values - The sourceNatActiveIps to add.
      Returns:
      This builder for chaining.
    • clearSourceNatActiveIps

      public RouterNatRuleAction.Builder clearSourceNatActiveIps()
       A list of URLs of the IP resources used for this NAT rule. These IP
       addresses must be valid static external IP addresses assigned to the
       project.
       This field is used for public NAT.
       
      repeated string source_nat_active_ips = 210378229;
      Returns:
      This builder for chaining.
    • addSourceNatActiveIpsBytes

      public RouterNatRuleAction.Builder addSourceNatActiveIpsBytes(com.google.protobuf.ByteString value)
       A list of URLs of the IP resources used for this NAT rule. These IP
       addresses must be valid static external IP addresses assigned to the
       project.
       This field is used for public NAT.
       
      repeated string source_nat_active_ips = 210378229;
      Parameters:
      value - The bytes of the sourceNatActiveIps to add.
      Returns:
      This builder for chaining.
    • getSourceNatActiveRangesList

      public com.google.protobuf.ProtocolStringList getSourceNatActiveRangesList()
       A list of URLs of the subnetworks used as source ranges for this
       NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT.
       This field is used for private NAT.
       
      repeated string source_nat_active_ranges = 190556269;
      Specified by:
      getSourceNatActiveRangesList in interface RouterNatRuleActionOrBuilder
      Returns:
      A list containing the sourceNatActiveRanges.
    • getSourceNatActiveRangesCount

      public int getSourceNatActiveRangesCount()
       A list of URLs of the subnetworks used as source ranges for this
       NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT.
       This field is used for private NAT.
       
      repeated string source_nat_active_ranges = 190556269;
      Specified by:
      getSourceNatActiveRangesCount in interface RouterNatRuleActionOrBuilder
      Returns:
      The count of sourceNatActiveRanges.
    • getSourceNatActiveRanges

      public String getSourceNatActiveRanges(int index)
       A list of URLs of the subnetworks used as source ranges for this
       NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT.
       This field is used for private NAT.
       
      repeated string source_nat_active_ranges = 190556269;
      Specified by:
      getSourceNatActiveRanges in interface RouterNatRuleActionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The sourceNatActiveRanges at the given index.
    • getSourceNatActiveRangesBytes

      public com.google.protobuf.ByteString getSourceNatActiveRangesBytes(int index)
       A list of URLs of the subnetworks used as source ranges for this
       NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT.
       This field is used for private NAT.
       
      repeated string source_nat_active_ranges = 190556269;
      Specified by:
      getSourceNatActiveRangesBytes in interface RouterNatRuleActionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the sourceNatActiveRanges at the given index.
    • setSourceNatActiveRanges

      public RouterNatRuleAction.Builder setSourceNatActiveRanges(int index, String value)
       A list of URLs of the subnetworks used as source ranges for this
       NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT.
       This field is used for private NAT.
       
      repeated string source_nat_active_ranges = 190556269;
      Parameters:
      index - The index to set the value at.
      value - The sourceNatActiveRanges to set.
      Returns:
      This builder for chaining.
    • addSourceNatActiveRanges

      public RouterNatRuleAction.Builder addSourceNatActiveRanges(String value)
       A list of URLs of the subnetworks used as source ranges for this
       NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT.
       This field is used for private NAT.
       
      repeated string source_nat_active_ranges = 190556269;
      Parameters:
      value - The sourceNatActiveRanges to add.
      Returns:
      This builder for chaining.
    • addAllSourceNatActiveRanges

      public RouterNatRuleAction.Builder addAllSourceNatActiveRanges(Iterable<String> values)
       A list of URLs of the subnetworks used as source ranges for this
       NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT.
       This field is used for private NAT.
       
      repeated string source_nat_active_ranges = 190556269;
      Parameters:
      values - The sourceNatActiveRanges to add.
      Returns:
      This builder for chaining.
    • clearSourceNatActiveRanges

      public RouterNatRuleAction.Builder clearSourceNatActiveRanges()
       A list of URLs of the subnetworks used as source ranges for this
       NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT.
       This field is used for private NAT.
       
      repeated string source_nat_active_ranges = 190556269;
      Returns:
      This builder for chaining.
    • addSourceNatActiveRangesBytes

      public RouterNatRuleAction.Builder addSourceNatActiveRangesBytes(com.google.protobuf.ByteString value)
       A list of URLs of the subnetworks used as source ranges for this
       NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT.
       This field is used for private NAT.
       
      repeated string source_nat_active_ranges = 190556269;
      Parameters:
      value - The bytes of the sourceNatActiveRanges to add.
      Returns:
      This builder for chaining.
    • getSourceNatDrainIpsList

      public com.google.protobuf.ProtocolStringList getSourceNatDrainIpsList()
       A list of URLs of the IP resources to be drained. These IPs
       must be valid static external IPs that have been assigned to the NAT.
       These IPs should be used for updating/patching a NAT rule only.
       This field is used for public NAT.
       
      repeated string source_nat_drain_ips = 340812451;
      Specified by:
      getSourceNatDrainIpsList in interface RouterNatRuleActionOrBuilder
      Returns:
      A list containing the sourceNatDrainIps.
    • getSourceNatDrainIpsCount

      public int getSourceNatDrainIpsCount()
       A list of URLs of the IP resources to be drained. These IPs
       must be valid static external IPs that have been assigned to the NAT.
       These IPs should be used for updating/patching a NAT rule only.
       This field is used for public NAT.
       
      repeated string source_nat_drain_ips = 340812451;
      Specified by:
      getSourceNatDrainIpsCount in interface RouterNatRuleActionOrBuilder
      Returns:
      The count of sourceNatDrainIps.
    • getSourceNatDrainIps

      public String getSourceNatDrainIps(int index)
       A list of URLs of the IP resources to be drained. These IPs
       must be valid static external IPs that have been assigned to the NAT.
       These IPs should be used for updating/patching a NAT rule only.
       This field is used for public NAT.
       
      repeated string source_nat_drain_ips = 340812451;
      Specified by:
      getSourceNatDrainIps in interface RouterNatRuleActionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The sourceNatDrainIps at the given index.
    • getSourceNatDrainIpsBytes

      public com.google.protobuf.ByteString getSourceNatDrainIpsBytes(int index)
       A list of URLs of the IP resources to be drained. These IPs
       must be valid static external IPs that have been assigned to the NAT.
       These IPs should be used for updating/patching a NAT rule only.
       This field is used for public NAT.
       
      repeated string source_nat_drain_ips = 340812451;
      Specified by:
      getSourceNatDrainIpsBytes in interface RouterNatRuleActionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the sourceNatDrainIps at the given index.
    • setSourceNatDrainIps

      public RouterNatRuleAction.Builder setSourceNatDrainIps(int index, String value)
       A list of URLs of the IP resources to be drained. These IPs
       must be valid static external IPs that have been assigned to the NAT.
       These IPs should be used for updating/patching a NAT rule only.
       This field is used for public NAT.
       
      repeated string source_nat_drain_ips = 340812451;
      Parameters:
      index - The index to set the value at.
      value - The sourceNatDrainIps to set.
      Returns:
      This builder for chaining.
    • addSourceNatDrainIps

      public RouterNatRuleAction.Builder addSourceNatDrainIps(String value)
       A list of URLs of the IP resources to be drained. These IPs
       must be valid static external IPs that have been assigned to the NAT.
       These IPs should be used for updating/patching a NAT rule only.
       This field is used for public NAT.
       
      repeated string source_nat_drain_ips = 340812451;
      Parameters:
      value - The sourceNatDrainIps to add.
      Returns:
      This builder for chaining.
    • addAllSourceNatDrainIps

      public RouterNatRuleAction.Builder addAllSourceNatDrainIps(Iterable<String> values)
       A list of URLs of the IP resources to be drained. These IPs
       must be valid static external IPs that have been assigned to the NAT.
       These IPs should be used for updating/patching a NAT rule only.
       This field is used for public NAT.
       
      repeated string source_nat_drain_ips = 340812451;
      Parameters:
      values - The sourceNatDrainIps to add.
      Returns:
      This builder for chaining.
    • clearSourceNatDrainIps

      public RouterNatRuleAction.Builder clearSourceNatDrainIps()
       A list of URLs of the IP resources to be drained. These IPs
       must be valid static external IPs that have been assigned to the NAT.
       These IPs should be used for updating/patching a NAT rule only.
       This field is used for public NAT.
       
      repeated string source_nat_drain_ips = 340812451;
      Returns:
      This builder for chaining.
    • addSourceNatDrainIpsBytes

      public RouterNatRuleAction.Builder addSourceNatDrainIpsBytes(com.google.protobuf.ByteString value)
       A list of URLs of the IP resources to be drained. These IPs
       must be valid static external IPs that have been assigned to the NAT.
       These IPs should be used for updating/patching a NAT rule only.
       This field is used for public NAT.
       
      repeated string source_nat_drain_ips = 340812451;
      Parameters:
      value - The bytes of the sourceNatDrainIps to add.
      Returns:
      This builder for chaining.
    • getSourceNatDrainRangesList

      public com.google.protobuf.ProtocolStringList getSourceNatDrainRangesList()
       A list of URLs of subnetworks representing source ranges to be
       drained. This is only supported on patch/update, and these
       subnetworks must have previously been used as active ranges in this
       NAT Rule.
       This field is used for private NAT.
       
      repeated string source_nat_drain_ranges = 84802815;
      Specified by:
      getSourceNatDrainRangesList in interface RouterNatRuleActionOrBuilder
      Returns:
      A list containing the sourceNatDrainRanges.
    • getSourceNatDrainRangesCount

      public int getSourceNatDrainRangesCount()
       A list of URLs of subnetworks representing source ranges to be
       drained. This is only supported on patch/update, and these
       subnetworks must have previously been used as active ranges in this
       NAT Rule.
       This field is used for private NAT.
       
      repeated string source_nat_drain_ranges = 84802815;
      Specified by:
      getSourceNatDrainRangesCount in interface RouterNatRuleActionOrBuilder
      Returns:
      The count of sourceNatDrainRanges.
    • getSourceNatDrainRanges

      public String getSourceNatDrainRanges(int index)
       A list of URLs of subnetworks representing source ranges to be
       drained. This is only supported on patch/update, and these
       subnetworks must have previously been used as active ranges in this
       NAT Rule.
       This field is used for private NAT.
       
      repeated string source_nat_drain_ranges = 84802815;
      Specified by:
      getSourceNatDrainRanges in interface RouterNatRuleActionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The sourceNatDrainRanges at the given index.
    • getSourceNatDrainRangesBytes

      public com.google.protobuf.ByteString getSourceNatDrainRangesBytes(int index)
       A list of URLs of subnetworks representing source ranges to be
       drained. This is only supported on patch/update, and these
       subnetworks must have previously been used as active ranges in this
       NAT Rule.
       This field is used for private NAT.
       
      repeated string source_nat_drain_ranges = 84802815;
      Specified by:
      getSourceNatDrainRangesBytes in interface RouterNatRuleActionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the sourceNatDrainRanges at the given index.
    • setSourceNatDrainRanges

      public RouterNatRuleAction.Builder setSourceNatDrainRanges(int index, String value)
       A list of URLs of subnetworks representing source ranges to be
       drained. This is only supported on patch/update, and these
       subnetworks must have previously been used as active ranges in this
       NAT Rule.
       This field is used for private NAT.
       
      repeated string source_nat_drain_ranges = 84802815;
      Parameters:
      index - The index to set the value at.
      value - The sourceNatDrainRanges to set.
      Returns:
      This builder for chaining.
    • addSourceNatDrainRanges

      public RouterNatRuleAction.Builder addSourceNatDrainRanges(String value)
       A list of URLs of subnetworks representing source ranges to be
       drained. This is only supported on patch/update, and these
       subnetworks must have previously been used as active ranges in this
       NAT Rule.
       This field is used for private NAT.
       
      repeated string source_nat_drain_ranges = 84802815;
      Parameters:
      value - The sourceNatDrainRanges to add.
      Returns:
      This builder for chaining.
    • addAllSourceNatDrainRanges

      public RouterNatRuleAction.Builder addAllSourceNatDrainRanges(Iterable<String> values)
       A list of URLs of subnetworks representing source ranges to be
       drained. This is only supported on patch/update, and these
       subnetworks must have previously been used as active ranges in this
       NAT Rule.
       This field is used for private NAT.
       
      repeated string source_nat_drain_ranges = 84802815;
      Parameters:
      values - The sourceNatDrainRanges to add.
      Returns:
      This builder for chaining.
    • clearSourceNatDrainRanges

      public RouterNatRuleAction.Builder clearSourceNatDrainRanges()
       A list of URLs of subnetworks representing source ranges to be
       drained. This is only supported on patch/update, and these
       subnetworks must have previously been used as active ranges in this
       NAT Rule.
       This field is used for private NAT.
       
      repeated string source_nat_drain_ranges = 84802815;
      Returns:
      This builder for chaining.
    • addSourceNatDrainRangesBytes

      public RouterNatRuleAction.Builder addSourceNatDrainRangesBytes(com.google.protobuf.ByteString value)
       A list of URLs of subnetworks representing source ranges to be
       drained. This is only supported on patch/update, and these
       subnetworks must have previously been used as active ranges in this
       NAT Rule.
       This field is used for private NAT.
       
      repeated string source_nat_drain_ranges = 84802815;
      Parameters:
      value - The bytes of the sourceNatDrainRanges to add.
      Returns:
      This builder for chaining.