Class NatIpInfoNatIpInfoMapping.Builder (1.43.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NatIpInfoNatIpInfoMapping.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NatIpInfoNatIpInfoMapping.Builder
Overrides

build()

public NatIpInfoNatIpInfoMapping build()
Returns
TypeDescription
NatIpInfoNatIpInfoMapping

buildPartial()

public NatIpInfoNatIpInfoMapping buildPartial()
Returns
TypeDescription
NatIpInfoNatIpInfoMapping

clear()

public NatIpInfoNatIpInfoMapping.Builder clear()
Returns
TypeDescription
NatIpInfoNatIpInfoMapping.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public NatIpInfoNatIpInfoMapping.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
NatIpInfoNatIpInfoMapping.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NatIpInfoNatIpInfoMapping.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
NatIpInfoNatIpInfoMapping.Builder

This builder for chaining.

clone()

public NatIpInfoNatIpInfoMapping.Builder clone()
Returns
TypeDescription
NatIpInfoNatIpInfoMapping.Builder
Overrides

getDefaultInstanceForType()

public NatIpInfoNatIpInfoMapping getDefaultInstanceForType()
Returns
TypeDescription
NatIpInfoNatIpInfoMapping

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for mode.

getNatIp()

public String getNatIp()

NAT IP address. For example: 203.0.113.11.

optional string nat_ip = 21113093;

Returns
TypeDescription
String

The natIp.

getNatIpBytes()

public ByteString getNatIpBytes()

NAT IP address. For example: 203.0.113.11.

optional string nat_ip = 21113093;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the usage field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NatIpInfoNatIpInfoMapping other)

public NatIpInfoNatIpInfoMapping.Builder mergeFrom(NatIpInfoNatIpInfoMapping other)
Parameter
NameDescription
otherNatIpInfoNatIpInfoMapping
Returns
TypeDescription
NatIpInfoNatIpInfoMapping.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NatIpInfoNatIpInfoMapping.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NatIpInfoNatIpInfoMapping.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NatIpInfoNatIpInfoMapping.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NatIpInfoNatIpInfoMapping.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NatIpInfoNatIpInfoMapping.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NatIpInfoNatIpInfoMapping.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public NatIpInfoNatIpInfoMapping.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The mode to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for mode to set.

Returns
TypeDescription
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
NameDescription
valueString

The natIp to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for natIp to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NatIpInfoNatIpInfoMapping.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NatIpInfoNatIpInfoMapping.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The usage to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for usage to set.

Returns
TypeDescription
NatIpInfoNatIpInfoMapping.Builder

This builder for chaining.