public static final class NatIpInfo.Builder extends GeneratedMessage.Builder<NatIpInfo.Builder> implements NatIpInfoOrBuilderContains NAT IP information of a NAT config (i.e. usage status, mode).
Protobuf type google.cloud.compute.v1.NatIpInfo
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > NatIpInfo.BuilderImplements
NatIpInfoOrBuilderStatic 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)Output only. 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)Output only. 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)Output only. 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)Output only. 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)Output only. 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()Output only. 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)Output only. 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 |
|
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 |
|
clearNatIpInfoMappings()
public NatIpInfo.Builder clearNatIpInfoMappings()Output only. 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()Output only. 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. |
getDefaultInstanceForType()
public NatIpInfo getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
NatIpInfo |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getNatIpInfoMappings(int index)
public NatIpInfoNatIpInfoMapping getNatIpInfoMappings(int index)Output only. 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)Output only. 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()Output only. 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()Output only. 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()Output only. 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)Output only. 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()Output only. 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()Output only. 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()Output only. 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()Output only. 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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public NatIpInfo.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
NatIpInfo.Builder |
|
removeNatIpInfoMappings(int index)
public NatIpInfo.Builder removeNatIpInfoMappings(int index)Output only. 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 |
|
setNatIpInfoMappings(int index, NatIpInfoNatIpInfoMapping value)
public NatIpInfo.Builder setNatIpInfoMappings(int index, NatIpInfoNatIpInfoMapping value)Output only. 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)Output only. 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)Output only. Name of the NAT config which the NAT IP belongs to.
optional string nat_name = 425596649;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe natName to set. |
| Returns | |
|---|---|
| Type | Description |
NatIpInfo.Builder |
This builder for chaining. |
setNatNameBytes(ByteString value)
public NatIpInfo.Builder setNatNameBytes(ByteString value)Output only. Name of the NAT config which the NAT IP belongs to.
optional string nat_name = 425596649;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for natName to set. |
| Returns | |
|---|---|
| Type | Description |
NatIpInfo.Builder |
This builder for chaining. |