Class VmEndpointNatMappings (1.23.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
TypeDescription
int

INTERFACE_NAT_MAPPINGS_FIELD_NUMBER

public static final int INTERFACE_NAT_MAPPINGS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static VmEndpointNatMappings getDefaultInstance()
Returns
TypeDescription
VmEndpointNatMappings

getDescriptor()

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

newBuilder()

public static VmEndpointNatMappings.Builder newBuilder()
Returns
TypeDescription
VmEndpointNatMappings.Builder

newBuilder(VmEndpointNatMappings prototype)

public static VmEndpointNatMappings.Builder newBuilder(VmEndpointNatMappings prototype)
Parameter
NameDescription
prototypeVmEndpointNatMappings
Returns
TypeDescription
VmEndpointNatMappings.Builder

parseDelimitedFrom(InputStream input)

public static VmEndpointNatMappings parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VmEndpointNatMappings
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VmEndpointNatMappings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VmEndpointNatMappings
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static VmEndpointNatMappings parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
VmEndpointNatMappings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static VmEndpointNatMappings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VmEndpointNatMappings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static VmEndpointNatMappings parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
VmEndpointNatMappings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static VmEndpointNatMappings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VmEndpointNatMappings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static VmEndpointNatMappings parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
VmEndpointNatMappings
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static VmEndpointNatMappings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VmEndpointNatMappings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static VmEndpointNatMappings parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VmEndpointNatMappings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VmEndpointNatMappings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VmEndpointNatMappings
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static VmEndpointNatMappings parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
VmEndpointNatMappings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static VmEndpointNatMappings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VmEndpointNatMappings
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<VmEndpointNatMappings> parser()
Returns
TypeDescription
Parser<VmEndpointNatMappings>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public VmEndpointNatMappings getDefaultInstanceForType()
Returns
TypeDescription
VmEndpointNatMappings

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

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>

getParserForType()

public Parser<VmEndpointNatMappings> getParserForType()
Returns
TypeDescription
Parser<VmEndpointNatMappings>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public VmEndpointNatMappings.Builder newBuilderForType()
Returns
TypeDescription
VmEndpointNatMappings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected VmEndpointNatMappings.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
VmEndpointNatMappings.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public VmEndpointNatMappings.Builder toBuilder()
Returns
TypeDescription
VmEndpointNatMappings.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException