Class NatIpInfoNatIpInfoMapping.Builder

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

public static final class NatIpInfoNatIpInfoMapping.Builder extends com.google.protobuf.GeneratedMessage.Builder<NatIpInfoNatIpInfoMapping.Builder> implements NatIpInfoNatIpInfoMappingOrBuilder
 Contains information of a NAT IP.
 
Protobuf type google.cloud.compute.v1.NatIpInfoNatIpInfoMapping
  • 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<NatIpInfoNatIpInfoMapping.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<NatIpInfoNatIpInfoMapping.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<NatIpInfoNatIpInfoMapping.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public NatIpInfoNatIpInfoMapping.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<NatIpInfoNatIpInfoMapping.Builder>
      Throws:
      IOException
    • hasMode

      public boolean hasMode()
       Output only. Specifies whether NAT IP is auto or manual.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Specified by:
      hasMode in interface NatIpInfoNatIpInfoMappingOrBuilder
      Returns:
      Whether the mode field is set.
    • getMode

      public String getMode()
       Output only. Specifies whether NAT IP is auto or manual.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Specified by:
      getMode in interface NatIpInfoNatIpInfoMappingOrBuilder
      Returns:
      The mode.
    • getModeBytes

      public com.google.protobuf.ByteString getModeBytes()
       Output only. Specifies whether NAT IP is auto or manual.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Specified by:
      getModeBytes in interface NatIpInfoNatIpInfoMappingOrBuilder
      Returns:
      The bytes for mode.
    • setMode

      public NatIpInfoNatIpInfoMapping.Builder setMode(String value)
       Output only. Specifies whether NAT IP is auto or manual.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Parameters:
      value - The mode to set.
      Returns:
      This builder for chaining.
    • clearMode

       Output only. Specifies whether NAT IP is auto or manual.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Returns:
      This builder for chaining.
    • setModeBytes

      public NatIpInfoNatIpInfoMapping.Builder setModeBytes(com.google.protobuf.ByteString value)
       Output only. Specifies whether NAT IP is auto or manual.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Parameters:
      value - The bytes for mode to set.
      Returns:
      This builder for chaining.
    • hasNatIp

      public boolean hasNatIp()
       Output only. NAT IP address. For example: 203.0.113.11.
       
      optional string nat_ip = 21113093;
      Specified by:
      hasNatIp in interface NatIpInfoNatIpInfoMappingOrBuilder
      Returns:
      Whether the natIp field is set.
    • getNatIp

      public String getNatIp()
       Output only. NAT IP address. For example: 203.0.113.11.
       
      optional string nat_ip = 21113093;
      Specified by:
      getNatIp in interface NatIpInfoNatIpInfoMappingOrBuilder
      Returns:
      The natIp.
    • getNatIpBytes

      public com.google.protobuf.ByteString getNatIpBytes()
       Output only. NAT IP address. For example: 203.0.113.11.
       
      optional string nat_ip = 21113093;
      Specified by:
      getNatIpBytes in interface NatIpInfoNatIpInfoMappingOrBuilder
      Returns:
      The bytes for natIp.
    • setNatIp

      public NatIpInfoNatIpInfoMapping.Builder setNatIp(String value)
       Output only. NAT IP address. For example: 203.0.113.11.
       
      optional string nat_ip = 21113093;
      Parameters:
      value - The natIp to set.
      Returns:
      This builder for chaining.
    • clearNatIp

      public NatIpInfoNatIpInfoMapping.Builder clearNatIp()
       Output only. NAT IP address. For example: 203.0.113.11.
       
      optional string nat_ip = 21113093;
      Returns:
      This builder for chaining.
    • setNatIpBytes

      public NatIpInfoNatIpInfoMapping.Builder setNatIpBytes(com.google.protobuf.ByteString value)
       Output only. NAT IP address. For example: 203.0.113.11.
       
      optional string nat_ip = 21113093;
      Parameters:
      value - The bytes for natIp to set.
      Returns:
      This builder for chaining.
    • hasUsage

      public boolean hasUsage()
       Output only. Specifies whether NAT IP is currently serving at least one endpoint or
       not.
       Check the Usage enum for the list of possible values.
       
      optional string usage = 111574433;
      Specified by:
      hasUsage in interface NatIpInfoNatIpInfoMappingOrBuilder
      Returns:
      Whether the usage field is set.
    • getUsage

      public String getUsage()
       Output only. Specifies whether NAT IP is currently serving at least one endpoint or
       not.
       Check the Usage enum for the list of possible values.
       
      optional string usage = 111574433;
      Specified by:
      getUsage in interface NatIpInfoNatIpInfoMappingOrBuilder
      Returns:
      The usage.
    • getUsageBytes

      public com.google.protobuf.ByteString getUsageBytes()
       Output only. Specifies whether NAT IP is currently serving at least one endpoint or
       not.
       Check the Usage enum for the list of possible values.
       
      optional string usage = 111574433;
      Specified by:
      getUsageBytes in interface NatIpInfoNatIpInfoMappingOrBuilder
      Returns:
      The bytes for usage.
    • setUsage

      public NatIpInfoNatIpInfoMapping.Builder setUsage(String value)
       Output only. Specifies whether NAT IP is currently serving at least one endpoint or
       not.
       Check the Usage enum for the list of possible values.
       
      optional string usage = 111574433;
      Parameters:
      value - The usage to set.
      Returns:
      This builder for chaining.
    • clearUsage

      public NatIpInfoNatIpInfoMapping.Builder clearUsage()
       Output only. Specifies whether NAT IP is currently serving at least one endpoint or
       not.
       Check the Usage enum for the list of possible values.
       
      optional string usage = 111574433;
      Returns:
      This builder for chaining.
    • setUsageBytes

      public NatIpInfoNatIpInfoMapping.Builder setUsageBytes(com.google.protobuf.ByteString value)
       Output only. Specifies whether NAT IP is currently serving at least one endpoint or
       not.
       Check the Usage enum for the list of possible values.
       
      optional string usage = 111574433;
      Parameters:
      value - The bytes for usage to set.
      Returns:
      This builder for chaining.