Class VmEndpointNatMappings.Builder (1.28.0)

public static final class VmEndpointNatMappings.Builder extends GeneratedMessageV3.Builder<VmEndpointNatMappings.Builder> implements VmEndpointNatMappingsOrBuilder

Contain information of Nat mapping for a VM endpoint (i.e., NIC).

Protobuf type google.cloud.compute.v1.VmEndpointNatMappings

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllInterfaceNatMappings(Iterable<? extends VmEndpointNatMappingsInterfaceNatMappings> values)

public VmEndpointNatMappings.Builder addAllInterfaceNatMappings(Iterable<? extends VmEndpointNatMappingsInterfaceNatMappings> values)

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings interface_nat_mappings = 256196617;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings>
Returns
TypeDescription
VmEndpointNatMappings.Builder

addInterfaceNatMappings(VmEndpointNatMappingsInterfaceNatMappings value)

public VmEndpointNatMappings.Builder addInterfaceNatMappings(VmEndpointNatMappingsInterfaceNatMappings value)

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings interface_nat_mappings = 256196617;

Parameter
NameDescription
valueVmEndpointNatMappingsInterfaceNatMappings
Returns
TypeDescription
VmEndpointNatMappings.Builder

addInterfaceNatMappings(VmEndpointNatMappingsInterfaceNatMappings.Builder builderForValue)

public VmEndpointNatMappings.Builder addInterfaceNatMappings(VmEndpointNatMappingsInterfaceNatMappings.Builder builderForValue)

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings interface_nat_mappings = 256196617;

Parameter
NameDescription
builderForValueVmEndpointNatMappingsInterfaceNatMappings.Builder
Returns
TypeDescription
VmEndpointNatMappings.Builder

addInterfaceNatMappings(int index, VmEndpointNatMappingsInterfaceNatMappings value)

public VmEndpointNatMappings.Builder addInterfaceNatMappings(int index, VmEndpointNatMappingsInterfaceNatMappings value)

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings interface_nat_mappings = 256196617;

Parameters
NameDescription
indexint
valueVmEndpointNatMappingsInterfaceNatMappings
Returns
TypeDescription
VmEndpointNatMappings.Builder

addInterfaceNatMappings(int index, VmEndpointNatMappingsInterfaceNatMappings.Builder builderForValue)

public VmEndpointNatMappings.Builder addInterfaceNatMappings(int index, VmEndpointNatMappingsInterfaceNatMappings.Builder builderForValue)

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings interface_nat_mappings = 256196617;

Parameters
NameDescription
indexint
builderForValueVmEndpointNatMappingsInterfaceNatMappings.Builder
Returns
TypeDescription
VmEndpointNatMappings.Builder

addInterfaceNatMappingsBuilder()

public VmEndpointNatMappingsInterfaceNatMappings.Builder addInterfaceNatMappingsBuilder()

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings interface_nat_mappings = 256196617;

Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappings.Builder

addInterfaceNatMappingsBuilder(int index)

public VmEndpointNatMappingsInterfaceNatMappings.Builder addInterfaceNatMappingsBuilder(int index)

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings interface_nat_mappings = 256196617;

Parameter
NameDescription
indexint
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappings.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VmEndpointNatMappings build()
Returns
TypeDescription
VmEndpointNatMappings

buildPartial()

public VmEndpointNatMappings buildPartial()
Returns
TypeDescription
VmEndpointNatMappings

clear()

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

clearField(Descriptors.FieldDescriptor field)

public VmEndpointNatMappings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
VmEndpointNatMappings.Builder
Overrides

clearInstanceName()

public VmEndpointNatMappings.Builder clearInstanceName()

Name of the VM instance which the endpoint belongs to

optional string instance_name = 227947509;

Returns
TypeDescription
VmEndpointNatMappings.Builder

This builder for chaining.

clearInterfaceNatMappings()

public VmEndpointNatMappings.Builder clearInterfaceNatMappings()

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings interface_nat_mappings = 256196617;

Returns
TypeDescription
VmEndpointNatMappings.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public VmEndpointNatMappings getDefaultInstanceForType()
Returns
TypeDescription
VmEndpointNatMappings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstanceName()

public String getInstanceName()

Name of the VM instance which the endpoint belongs to

optional string instance_name = 227947509;

Returns
TypeDescription
String

The instanceName.

getInstanceNameBytes()

public ByteString getInstanceNameBytes()

Name of the VM instance which the endpoint belongs to

optional string instance_name = 227947509;

Returns
TypeDescription
ByteString

The bytes for instanceName.

getInterfaceNatMappings(int index)

public VmEndpointNatMappingsInterfaceNatMappings getInterfaceNatMappings(int index)

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings interface_nat_mappings = 256196617;

Parameter
NameDescription
indexint
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappings

getInterfaceNatMappingsBuilder(int index)

public VmEndpointNatMappingsInterfaceNatMappings.Builder getInterfaceNatMappingsBuilder(int index)

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings interface_nat_mappings = 256196617;

Parameter
NameDescription
indexint
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappings.Builder

getInterfaceNatMappingsBuilderList()

public List<VmEndpointNatMappingsInterfaceNatMappings.Builder> getInterfaceNatMappingsBuilderList()

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings interface_nat_mappings = 256196617;

Returns
TypeDescription
List<Builder>

getInterfaceNatMappingsCount()

public int getInterfaceNatMappingsCount()

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings interface_nat_mappings = 256196617;

Returns
TypeDescription
int

getInterfaceNatMappingsList()

public List<VmEndpointNatMappingsInterfaceNatMappings> getInterfaceNatMappingsList()

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings interface_nat_mappings = 256196617;

Returns
TypeDescription
List<VmEndpointNatMappingsInterfaceNatMappings>

getInterfaceNatMappingsOrBuilder(int index)

public VmEndpointNatMappingsInterfaceNatMappingsOrBuilder getInterfaceNatMappingsOrBuilder(int index)

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings interface_nat_mappings = 256196617;

Parameter
NameDescription
indexint
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappingsOrBuilder

getInterfaceNatMappingsOrBuilderList()

public List<? extends VmEndpointNatMappingsInterfaceNatMappingsOrBuilder> getInterfaceNatMappingsOrBuilderList()

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings interface_nat_mappings = 256196617;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsOrBuilder>

hasInstanceName()

public boolean hasInstanceName()

Name of the VM instance which the endpoint belongs to

optional string instance_name = 227947509;

Returns
TypeDescription
boolean

Whether the instanceName field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VmEndpointNatMappings other)

public VmEndpointNatMappings.Builder mergeFrom(VmEndpointNatMappings other)
Parameter
NameDescription
otherVmEndpointNatMappings
Returns
TypeDescription
VmEndpointNatMappings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeInterfaceNatMappings(int index)

public VmEndpointNatMappings.Builder removeInterfaceNatMappings(int index)

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings interface_nat_mappings = 256196617;

Parameter
NameDescription
indexint
Returns
TypeDescription
VmEndpointNatMappings.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstanceName(String value)

public VmEndpointNatMappings.Builder setInstanceName(String value)

Name of the VM instance which the endpoint belongs to

optional string instance_name = 227947509;

Parameter
NameDescription
valueString

The instanceName to set.

Returns
TypeDescription
VmEndpointNatMappings.Builder

This builder for chaining.

setInstanceNameBytes(ByteString value)

public VmEndpointNatMappings.Builder setInstanceNameBytes(ByteString value)

Name of the VM instance which the endpoint belongs to

optional string instance_name = 227947509;

Parameter
NameDescription
valueByteString

The bytes for instanceName to set.

Returns
TypeDescription
VmEndpointNatMappings.Builder

This builder for chaining.

setInterfaceNatMappings(int index, VmEndpointNatMappingsInterfaceNatMappings value)

public VmEndpointNatMappings.Builder setInterfaceNatMappings(int index, VmEndpointNatMappingsInterfaceNatMappings value)

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings interface_nat_mappings = 256196617;

Parameters
NameDescription
indexint
valueVmEndpointNatMappingsInterfaceNatMappings
Returns
TypeDescription
VmEndpointNatMappings.Builder

setInterfaceNatMappings(int index, VmEndpointNatMappingsInterfaceNatMappings.Builder builderForValue)

public VmEndpointNatMappings.Builder setInterfaceNatMappings(int index, VmEndpointNatMappingsInterfaceNatMappings.Builder builderForValue)

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings interface_nat_mappings = 256196617;

Parameters
NameDescription
indexint
builderForValueVmEndpointNatMappingsInterfaceNatMappings.Builder
Returns
TypeDescription
VmEndpointNatMappings.Builder

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

public VmEndpointNatMappings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VmEndpointNatMappings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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