Class VmEndpointNatMappings (1.65.0)

public final class VmEndpointNatMappings extends GeneratedMessageV3 implements VmEndpointNatMappingsOrBuilder

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

Protobuf type google.cloud.compute.v1.VmEndpointNatMappings

Static Fields

INSTANCE_NAME_FIELD_NUMBER

public static final int INSTANCE_NAME_FIELD_NUMBER
Field Value
Type Description
int

INTERFACE_NAT_MAPPINGS_FIELD_NUMBER

public static final int INTERFACE_NAT_MAPPINGS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static VmEndpointNatMappings getDefaultInstance()
Returns
Type Description
VmEndpointNatMappings

getDescriptor()

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

newBuilder()

public static VmEndpointNatMappings.Builder newBuilder()
Returns
Type Description
VmEndpointNatMappings.Builder

newBuilder(VmEndpointNatMappings prototype)

public static VmEndpointNatMappings.Builder newBuilder(VmEndpointNatMappings prototype)
Parameter
Name Description
prototype VmEndpointNatMappings
Returns
Type Description
VmEndpointNatMappings.Builder

parseDelimitedFrom(InputStream input)

public static VmEndpointNatMappings parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
VmEndpointNatMappings
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VmEndpointNatMappings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VmEndpointNatMappings
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static VmEndpointNatMappings parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
VmEndpointNatMappings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static VmEndpointNatMappings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VmEndpointNatMappings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static VmEndpointNatMappings parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
VmEndpointNatMappings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static VmEndpointNatMappings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VmEndpointNatMappings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static VmEndpointNatMappings parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
VmEndpointNatMappings
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static VmEndpointNatMappings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VmEndpointNatMappings
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static VmEndpointNatMappings parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
VmEndpointNatMappings
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VmEndpointNatMappings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VmEndpointNatMappings
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static VmEndpointNatMappings parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
VmEndpointNatMappings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static VmEndpointNatMappings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VmEndpointNatMappings
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<VmEndpointNatMappings> parser()
Returns
Type Description
Parser<VmEndpointNatMappings>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public VmEndpointNatMappings getDefaultInstanceForType()
Returns
Type Description
VmEndpointNatMappings

getInstanceName()

public String getInstanceName()

Name of the VM instance which the endpoint belongs to

optional string instance_name = 227947509;

Returns
Type Description
String

The instanceName.

getInstanceNameBytes()

public ByteString getInstanceNameBytes()

Name of the VM instance which the endpoint belongs to

optional string instance_name = 227947509;

Returns
Type Description
ByteString

The bytes for instanceName.

getInterfaceNatMappings(int index)

public VmEndpointNatMappingsInterfaceNatMappings getInterfaceNatMappings(int index)

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

Parameter
Name Description
index int
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappings

getInterfaceNatMappingsCount()

public int getInterfaceNatMappingsCount()

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

Returns
Type Description
int

getInterfaceNatMappingsList()

public List<VmEndpointNatMappingsInterfaceNatMappings> getInterfaceNatMappingsList()

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

Returns
Type Description
List<VmEndpointNatMappingsInterfaceNatMappings>

getInterfaceNatMappingsOrBuilder(int index)

public VmEndpointNatMappingsInterfaceNatMappingsOrBuilder getInterfaceNatMappingsOrBuilder(int index)

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

Parameter
Name Description
index int
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappingsOrBuilder

getInterfaceNatMappingsOrBuilderList()

public List<? extends VmEndpointNatMappingsInterfaceNatMappingsOrBuilder> getInterfaceNatMappingsOrBuilderList()

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

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

getParserForType()

public Parser<VmEndpointNatMappings> getParserForType()
Returns
Type Description
Parser<VmEndpointNatMappings>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasInstanceName()

public boolean hasInstanceName()

Name of the VM instance which the endpoint belongs to

optional string instance_name = 227947509;

Returns
Type Description
boolean

Whether the instanceName field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public VmEndpointNatMappings.Builder newBuilderForType()
Returns
Type Description
VmEndpointNatMappings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected VmEndpointNatMappings.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
VmEndpointNatMappings.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public VmEndpointNatMappings.Builder toBuilder()
Returns
Type Description
VmEndpointNatMappings.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException