Class NatIpInfo.Builder

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

public static final class NatIpInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<NatIpInfo.Builder> implements NatIpInfoOrBuilder
 Contains NAT IP information of a NAT config (i.e. usage status, mode).
 
Protobuf type google.cloud.compute.v1.NatIpInfo
  • 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<NatIpInfo.Builder>
    • clear

      public NatIpInfo.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<NatIpInfo.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<NatIpInfo.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public NatIpInfo.Builder mergeFrom(NatIpInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<NatIpInfo.Builder>
    • mergeFrom

      public NatIpInfo.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<NatIpInfo.Builder>
      Throws:
      IOException
    • getNatIpInfoMappingsList

      public List<NatIpInfoNatIpInfoMapping> getNatIpInfoMappingsList()
       Output only. A list of all NAT IPs assigned to this NAT config.
       
      repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;
      Specified by:
      getNatIpInfoMappingsList in interface NatIpInfoOrBuilder
    • getNatIpInfoMappingsCount

      public int getNatIpInfoMappingsCount()
       Output only. A list of all NAT IPs assigned to this NAT config.
       
      repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;
      Specified by:
      getNatIpInfoMappingsCount in interface NatIpInfoOrBuilder
    • getNatIpInfoMappings

      public NatIpInfoNatIpInfoMapping getNatIpInfoMappings(int index)
       Output only. A list of all NAT IPs assigned to this NAT config.
       
      repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;
      Specified by:
      getNatIpInfoMappings in interface NatIpInfoOrBuilder
    • setNatIpInfoMappings

      public NatIpInfo.Builder setNatIpInfoMappings(int index, NatIpInfoNatIpInfoMapping value)
       Output only. A list of all NAT IPs assigned to this NAT config.
       
      repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;
    • setNatIpInfoMappings

      public NatIpInfo.Builder setNatIpInfoMappings(int index, NatIpInfoNatIpInfoMapping.Builder builderForValue)
       Output only. A list of all NAT IPs assigned to this NAT config.
       
      repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;
    • addNatIpInfoMappings

      public NatIpInfo.Builder addNatIpInfoMappings(NatIpInfoNatIpInfoMapping value)
       Output only. A list of all NAT IPs assigned to this NAT config.
       
      repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;
    • addNatIpInfoMappings

      public NatIpInfo.Builder addNatIpInfoMappings(int index, NatIpInfoNatIpInfoMapping value)
       Output only. A list of all NAT IPs assigned to this NAT config.
       
      repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;
    • addNatIpInfoMappings

      public NatIpInfo.Builder addNatIpInfoMappings(NatIpInfoNatIpInfoMapping.Builder builderForValue)
       Output only. A list of all NAT IPs assigned to this NAT config.
       
      repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;
    • addNatIpInfoMappings

      public NatIpInfo.Builder addNatIpInfoMappings(int index, NatIpInfoNatIpInfoMapping.Builder builderForValue)
       Output only. A list of all NAT IPs assigned to this NAT config.
       
      repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;
    • addAllNatIpInfoMappings

      public NatIpInfo.Builder addAllNatIpInfoMappings(Iterable<? extends NatIpInfoNatIpInfoMapping> values)
       Output only. A list of all NAT IPs assigned to this NAT config.
       
      repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;
    • clearNatIpInfoMappings

      public NatIpInfo.Builder clearNatIpInfoMappings()
       Output only. A list of all NAT IPs assigned to this NAT config.
       
      repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;
    • removeNatIpInfoMappings

      public NatIpInfo.Builder removeNatIpInfoMappings(int index)
       Output only. A list of all NAT IPs assigned to this NAT config.
       
      repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;
    • getNatIpInfoMappingsBuilder

      public NatIpInfoNatIpInfoMapping.Builder getNatIpInfoMappingsBuilder(int index)
       Output only. A list of all NAT IPs assigned to this NAT config.
       
      repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;
    • getNatIpInfoMappingsOrBuilder

      public NatIpInfoNatIpInfoMappingOrBuilder getNatIpInfoMappingsOrBuilder(int index)
       Output only. A list of all NAT IPs assigned to this NAT config.
       
      repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;
      Specified by:
      getNatIpInfoMappingsOrBuilder in interface NatIpInfoOrBuilder
    • getNatIpInfoMappingsOrBuilderList

      public List<? extends NatIpInfoNatIpInfoMappingOrBuilder> getNatIpInfoMappingsOrBuilderList()
       Output only. A list of all NAT IPs assigned to this NAT config.
       
      repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;
      Specified by:
      getNatIpInfoMappingsOrBuilderList in interface NatIpInfoOrBuilder
    • addNatIpInfoMappingsBuilder

      public NatIpInfoNatIpInfoMapping.Builder addNatIpInfoMappingsBuilder()
       Output only. A list of all NAT IPs assigned to this NAT config.
       
      repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;
    • addNatIpInfoMappingsBuilder

      public NatIpInfoNatIpInfoMapping.Builder addNatIpInfoMappingsBuilder(int index)
       Output only. A list of all NAT IPs assigned to this NAT config.
       
      repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;
    • getNatIpInfoMappingsBuilderList

      public List<NatIpInfoNatIpInfoMapping.Builder> getNatIpInfoMappingsBuilderList()
       Output only. A list of all NAT IPs assigned to this NAT config.
       
      repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;
    • hasNatName

      public boolean hasNatName()
       Output only. Name of the NAT config which the NAT IP belongs to.
       
      optional string nat_name = 425596649;
      Specified by:
      hasNatName in interface NatIpInfoOrBuilder
      Returns:
      Whether the natName field is set.
    • getNatName

      public String getNatName()
       Output only. Name of the NAT config which the NAT IP belongs to.
       
      optional string nat_name = 425596649;
      Specified by:
      getNatName in interface NatIpInfoOrBuilder
      Returns:
      The natName.
    • getNatNameBytes

      public com.google.protobuf.ByteString getNatNameBytes()
       Output only. Name of the NAT config which the NAT IP belongs to.
       
      optional string nat_name = 425596649;
      Specified by:
      getNatNameBytes in interface NatIpInfoOrBuilder
      Returns:
      The bytes for natName.
    • setNatName

      public NatIpInfo.Builder setNatName(String value)
       Output only. Name of the NAT config which the NAT IP belongs to.
       
      optional string nat_name = 425596649;
      Parameters:
      value - The natName to set.
      Returns:
      This builder for chaining.
    • clearNatName

      public NatIpInfo.Builder clearNatName()
       Output only. Name of the NAT config which the NAT IP belongs to.
       
      optional string nat_name = 425596649;
      Returns:
      This builder for chaining.
    • setNatNameBytes

      public NatIpInfo.Builder setNatNameBytes(com.google.protobuf.ByteString value)
       Output only. Name of the NAT config which the NAT IP belongs to.
       
      optional string nat_name = 425596649;
      Parameters:
      value - The bytes for natName to set.
      Returns:
      This builder for chaining.