Class NatIpInfoNatIpInfoMapping.Builder (1.93.0)

public static final class NatIpInfoNatIpInfoMapping.Builder extends GeneratedMessage.Builder<NatIpInfoNatIpInfoMapping.Builder> implements NatIpInfoNatIpInfoMappingOrBuilder

Contains information of a NAT IP.

Protobuf type google.cloud.compute.v1.NatIpInfoNatIpInfoMapping

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public NatIpInfoNatIpInfoMapping build()
Returns
Type Description
NatIpInfoNatIpInfoMapping

buildPartial()

public NatIpInfoNatIpInfoMapping buildPartial()
Returns
Type Description
NatIpInfoNatIpInfoMapping

clear()

public NatIpInfoNatIpInfoMapping.Builder clear()
Returns
Type Description
NatIpInfoNatIpInfoMapping.Builder
Overrides

clearMode()

public NatIpInfoNatIpInfoMapping.Builder 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
Type Description
NatIpInfoNatIpInfoMapping.Builder

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
Type Description
NatIpInfoNatIpInfoMapping.Builder

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
Type Description
NatIpInfoNatIpInfoMapping.Builder

This builder for chaining.

getDefaultInstanceForType()

public NatIpInfoNatIpInfoMapping getDefaultInstanceForType()
Returns
Type Description
NatIpInfoNatIpInfoMapping

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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;

Returns
Type Description
String

The mode.

getModeBytes()

public 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;

Returns
Type Description
ByteString

The bytes for mode.

getNatIp()

public String getNatIp()

Output only. NAT IP address. For example: 203.0.113.11.

optional string nat_ip = 21113093;

Returns
Type Description
String

The natIp.

getNatIpBytes()

public ByteString getNatIpBytes()

Output only. NAT IP address. For example: 203.0.113.11.

optional string nat_ip = 21113093;

Returns
Type Description
ByteString

The bytes for natIp.

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;

Returns
Type Description
String

The usage.

getUsageBytes()

public 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;

Returns
Type Description
ByteString

The bytes for usage.

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;

Returns
Type Description
boolean

Whether the mode field is set.

hasNatIp()

public boolean hasNatIp()

Output only. NAT IP address. For example: 203.0.113.11.

optional string nat_ip = 21113093;

Returns
Type Description
boolean

Whether the natIp field is set.

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;

Returns
Type Description
boolean

Whether the usage field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NatIpInfoNatIpInfoMapping other)

public NatIpInfoNatIpInfoMapping.Builder mergeFrom(NatIpInfoNatIpInfoMapping other)
Parameter
Name Description
other NatIpInfoNatIpInfoMapping
Returns
Type Description
NatIpInfoNatIpInfoMapping.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NatIpInfoNatIpInfoMapping.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NatIpInfoNatIpInfoMapping.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public NatIpInfoNatIpInfoMapping.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
NatIpInfoNatIpInfoMapping.Builder
Overrides

setMode(String value)

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;

Parameter
Name Description
value String

The mode to set.

Returns
Type Description
NatIpInfoNatIpInfoMapping.Builder

This builder for chaining.

setModeBytes(ByteString value)

public NatIpInfoNatIpInfoMapping.Builder setModeBytes(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;

Parameter
Name Description
value ByteString

The bytes for mode to set.

Returns
Type Description
NatIpInfoNatIpInfoMapping.Builder

This builder for chaining.

setNatIp(String value)

public NatIpInfoNatIpInfoMapping.Builder setNatIp(String value)

Output only. NAT IP address. For example: 203.0.113.11.

optional string nat_ip = 21113093;

Parameter
Name Description
value String

The natIp to set.

Returns
Type Description
NatIpInfoNatIpInfoMapping.Builder

This builder for chaining.

setNatIpBytes(ByteString value)

public NatIpInfoNatIpInfoMapping.Builder setNatIpBytes(ByteString value)

Output only. NAT IP address. For example: 203.0.113.11.

optional string nat_ip = 21113093;

Parameter
Name Description
value ByteString

The bytes for natIp to set.

Returns
Type Description
NatIpInfoNatIpInfoMapping.Builder

This builder for chaining.

setUsage(String value)

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;

Parameter
Name Description
value String

The usage to set.

Returns
Type Description
NatIpInfoNatIpInfoMapping.Builder

This builder for chaining.

setUsageBytes(ByteString value)

public NatIpInfoNatIpInfoMapping.Builder setUsageBytes(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;

Parameter
Name Description
value ByteString

The bytes for usage to set.

Returns
Type Description
NatIpInfoNatIpInfoMapping.Builder

This builder for chaining.