Class NatIpInfo.Builder (1.50.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.NatIpInfoNatIpInfoMapping>
Returns
TypeDescription
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
NameDescription
valueNatIpInfoNatIpInfoMapping
Returns
TypeDescription
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
NameDescription
builderForValueNatIpInfoNatIpInfoMapping.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueNatIpInfoNatIpInfoMapping
Returns
TypeDescription
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
NameDescription
indexint
builderForValueNatIpInfoNatIpInfoMapping.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
NatIpInfoNatIpInfoMapping.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NatIpInfo build()
Returns
TypeDescription
NatIpInfo

buildPartial()

public NatIpInfo buildPartial()
Returns
TypeDescription
NatIpInfo

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNatName()

public NatIpInfo.Builder clearNatName()

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

optional string nat_name = 425596649;

Returns
TypeDescription
NatIpInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NatIpInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NatIpInfo.Builder
Overrides

clone()

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

getDefaultInstanceForType()

public NatIpInfo getDefaultInstanceForType()
Returns
TypeDescription
NatIpInfo

getDescriptorForType()

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

The natName.

getNatNameBytes()

public ByteString getNatNameBytes()

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

optional string nat_name = 425596649;

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

Whether the natName field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NatIpInfo other)

public NatIpInfo.Builder mergeFrom(NatIpInfo other)
Parameter
NameDescription
otherNatIpInfo
Returns
TypeDescription
NatIpInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NatIpInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
NatIpInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The natName to set.

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

The bytes for natName to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

public final NatIpInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NatIpInfo.Builder
Overrides