Class NatIpInfo.Builder (1.52.0)

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

Implements

NatIpInfoOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllNatIpInfoMappings(Iterable<? extends NatIpInfoNatIpInfoMapping> values)

public NatIpInfo.Builder addAllNatIpInfoMappings(Iterable<? extends NatIpInfoNatIpInfoMapping> values)

A list of all NAT IPs assigned to this NAT config.

repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.NatIpInfoNatIpInfoMapping>
Returns
Type Description
NatIpInfo.Builder

addNatIpInfoMappings(NatIpInfoNatIpInfoMapping value)

public NatIpInfo.Builder addNatIpInfoMappings(NatIpInfoNatIpInfoMapping value)

A list of all NAT IPs assigned to this NAT config.

repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;

Parameter
Name Description
value NatIpInfoNatIpInfoMapping
Returns
Type Description
NatIpInfo.Builder

addNatIpInfoMappings(NatIpInfoNatIpInfoMapping.Builder builderForValue)

public NatIpInfo.Builder addNatIpInfoMappings(NatIpInfoNatIpInfoMapping.Builder builderForValue)

A list of all NAT IPs assigned to this NAT config.

repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;

Parameter
Name Description
builderForValue NatIpInfoNatIpInfoMapping.Builder
Returns
Type Description
NatIpInfo.Builder

addNatIpInfoMappings(int index, NatIpInfoNatIpInfoMapping value)

public NatIpInfo.Builder addNatIpInfoMappings(int index, NatIpInfoNatIpInfoMapping value)

A list of all NAT IPs assigned to this NAT config.

repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;

Parameters
Name Description
index int
value NatIpInfoNatIpInfoMapping
Returns
Type Description
NatIpInfo.Builder

addNatIpInfoMappings(int index, NatIpInfoNatIpInfoMapping.Builder builderForValue)

public NatIpInfo.Builder addNatIpInfoMappings(int index, NatIpInfoNatIpInfoMapping.Builder builderForValue)

A list of all NAT IPs assigned to this NAT config.

repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;

Parameters
Name Description
index int
builderForValue NatIpInfoNatIpInfoMapping.Builder
Returns
Type Description
NatIpInfo.Builder

addNatIpInfoMappingsBuilder()

public NatIpInfoNatIpInfoMapping.Builder addNatIpInfoMappingsBuilder()

A list of all NAT IPs assigned to this NAT config.

repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;

Returns
Type Description
NatIpInfoNatIpInfoMapping.Builder

addNatIpInfoMappingsBuilder(int index)

public NatIpInfoNatIpInfoMapping.Builder addNatIpInfoMappingsBuilder(int index)

A list of all NAT IPs assigned to this NAT config.

repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;

Parameter
Name Description
index int
Returns
Type Description
NatIpInfoNatIpInfoMapping.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NatIpInfo build()
Returns
Type Description
NatIpInfo

buildPartial()

public NatIpInfo buildPartial()
Returns
Type Description
NatIpInfo

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNatIpInfoMappings()

public NatIpInfo.Builder clearNatIpInfoMappings()

A list of all NAT IPs assigned to this NAT config.

repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;

Returns
Type Description
NatIpInfo.Builder

clearNatName()

public NatIpInfo.Builder clearNatName()

Name of the NAT config which the NAT IP belongs to.

optional string nat_name = 425596649;

Returns
Type Description
NatIpInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public NatIpInfo getDefaultInstanceForType()
Returns
Type Description
NatIpInfo

getDescriptorForType()

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

getNatIpInfoMappings(int index)

public NatIpInfoNatIpInfoMapping getNatIpInfoMappings(int index)

A list of all NAT IPs assigned to this NAT config.

repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;

Parameter
Name Description
index int
Returns
Type Description
NatIpInfoNatIpInfoMapping

getNatIpInfoMappingsBuilder(int index)

public NatIpInfoNatIpInfoMapping.Builder getNatIpInfoMappingsBuilder(int index)

A list of all NAT IPs assigned to this NAT config.

repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;

Parameter
Name Description
index int
Returns
Type Description
NatIpInfoNatIpInfoMapping.Builder

getNatIpInfoMappingsBuilderList()

public List<NatIpInfoNatIpInfoMapping.Builder> getNatIpInfoMappingsBuilderList()

A list of all NAT IPs assigned to this NAT config.

repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;

Returns
Type Description
List<Builder>

getNatIpInfoMappingsCount()

public int getNatIpInfoMappingsCount()

A list of all NAT IPs assigned to this NAT config.

repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;

Returns
Type Description
int

getNatIpInfoMappingsList()

public List<NatIpInfoNatIpInfoMapping> getNatIpInfoMappingsList()

A list of all NAT IPs assigned to this NAT config.

repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;

Returns
Type Description
List<NatIpInfoNatIpInfoMapping>

getNatIpInfoMappingsOrBuilder(int index)

public NatIpInfoNatIpInfoMappingOrBuilder getNatIpInfoMappingsOrBuilder(int index)

A list of all NAT IPs assigned to this NAT config.

repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;

Parameter
Name Description
index int
Returns
Type Description
NatIpInfoNatIpInfoMappingOrBuilder

getNatIpInfoMappingsOrBuilderList()

public List<? extends NatIpInfoNatIpInfoMappingOrBuilder> getNatIpInfoMappingsOrBuilderList()

A list of all NAT IPs assigned to this NAT config.

repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.NatIpInfoNatIpInfoMappingOrBuilder>

getNatName()

public String getNatName()

Name of the NAT config which the NAT IP belongs to.

optional string nat_name = 425596649;

Returns
Type Description
String

The natName.

getNatNameBytes()

public ByteString getNatNameBytes()

Name of the NAT config which the NAT IP belongs to.

optional string nat_name = 425596649;

Returns
Type Description
ByteString

The bytes for natName.

hasNatName()

public boolean hasNatName()

Name of the NAT config which the NAT IP belongs to.

optional string nat_name = 425596649;

Returns
Type Description
boolean

Whether the natName field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NatIpInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeNatIpInfoMappings(int index)

public NatIpInfo.Builder removeNatIpInfoMappings(int index)

A list of all NAT IPs assigned to this NAT config.

repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;

Parameter
Name Description
index int
Returns
Type Description
NatIpInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNatIpInfoMappings(int index, NatIpInfoNatIpInfoMapping value)

public NatIpInfo.Builder setNatIpInfoMappings(int index, NatIpInfoNatIpInfoMapping value)

A list of all NAT IPs assigned to this NAT config.

repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;

Parameters
Name Description
index int
value NatIpInfoNatIpInfoMapping
Returns
Type Description
NatIpInfo.Builder

setNatIpInfoMappings(int index, NatIpInfoNatIpInfoMapping.Builder builderForValue)

public NatIpInfo.Builder setNatIpInfoMappings(int index, NatIpInfoNatIpInfoMapping.Builder builderForValue)

A list of all NAT IPs assigned to this NAT config.

repeated .google.cloud.compute.v1.NatIpInfoNatIpInfoMapping nat_ip_info_mappings = 241401884;

Parameters
Name Description
index int
builderForValue NatIpInfoNatIpInfoMapping.Builder
Returns
Type Description
NatIpInfo.Builder

setNatName(String value)

public NatIpInfo.Builder setNatName(String value)

Name of the NAT config which the NAT IP belongs to.

optional string nat_name = 425596649;

Parameter
Name Description
value String

The natName to set.

Returns
Type Description
NatIpInfo.Builder

This builder for chaining.

setNatNameBytes(ByteString value)

public NatIpInfo.Builder setNatNameBytes(ByteString value)

Name of the NAT config which the NAT IP belongs to.

optional string nat_name = 425596649;

Parameter
Name Description
value ByteString

The bytes for natName to set.

Returns
Type Description
NatIpInfo.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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