Class NatIpInfoNatIpInfoMapping.Builder (1.62.0)

public static final class NatIpInfoNatIpInfoMapping.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NatIpInfoNatIpInfoMapping.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NatIpInfoNatIpInfoMapping.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public NatIpInfoNatIpInfoMapping.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NatIpInfoNatIpInfoMapping.Builder
Overrides

clearMode()

public NatIpInfoNatIpInfoMapping.Builder clearMode()

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()

NAT IP address. For example: 203.0.113.11.

optional string nat_ip = 21113093;

Returns
Type Description
NatIpInfoNatIpInfoMapping.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NatIpInfoNatIpInfoMapping.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NatIpInfoNatIpInfoMapping.Builder
Overrides

clearUsage()

public NatIpInfoNatIpInfoMapping.Builder clearUsage()

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.

clone()

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

getDefaultInstanceForType()

public NatIpInfoNatIpInfoMapping getDefaultInstanceForType()
Returns
Type Description
NatIpInfoNatIpInfoMapping

getDescriptorForType()

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

getMode()

public String getMode()

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()

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()

NAT IP address. For example: 203.0.113.11.

optional string nat_ip = 21113093;

Returns
Type Description
String

The natIp.

getNatIpBytes()

public ByteString getNatIpBytes()

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()

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()

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()

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()

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()

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NatIpInfoNatIpInfoMapping.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NatIpInfoNatIpInfoMapping.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public NatIpInfoNatIpInfoMapping.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NatIpInfoNatIpInfoMapping.Builder
Overrides

setMode(String value)

public NatIpInfoNatIpInfoMapping.Builder setMode(String value)

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)

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)

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)

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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NatIpInfoNatIpInfoMapping.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NatIpInfoNatIpInfoMapping.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NatIpInfoNatIpInfoMapping.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NatIpInfoNatIpInfoMapping.Builder
Overrides

setUsage(String value)

public NatIpInfoNatIpInfoMapping.Builder setUsage(String value)

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)

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.