Class InterconnectAttachmentL2Forwarding (1.91.0)

public final class InterconnectAttachmentL2Forwarding extends GeneratedMessageV3 implements InterconnectAttachmentL2ForwardingOrBuilder

L2 Interconnect Attachment related configuration.

Protobuf type google.cloud.compute.v1.InterconnectAttachmentL2Forwarding

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > InterconnectAttachmentL2Forwarding

Static Fields

APPLIANCE_MAPPINGS_FIELD_NUMBER

public static final int APPLIANCE_MAPPINGS_FIELD_NUMBER
Field Value
Type Description
int

DEFAULT_APPLIANCE_IP_ADDRESS_FIELD_NUMBER

public static final int DEFAULT_APPLIANCE_IP_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

GENEVE_HEADER_FIELD_NUMBER

public static final int GENEVE_HEADER_FIELD_NUMBER
Field Value
Type Description
int

NETWORK_FIELD_NUMBER

public static final int NETWORK_FIELD_NUMBER
Field Value
Type Description
int

TUNNEL_ENDPOINT_IP_ADDRESS_FIELD_NUMBER

public static final int TUNNEL_ENDPOINT_IP_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static InterconnectAttachmentL2Forwarding getDefaultInstance()
Returns
Type Description
InterconnectAttachmentL2Forwarding

getDescriptor()

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

newBuilder()

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

newBuilder(InterconnectAttachmentL2Forwarding prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

containsApplianceMappings(String key)

public boolean containsApplianceMappings(String key)

Optional. A map of VLAN tags to appliances and optional inner mapping rules. If VLANs are not explicitly mapped to any appliance, the defaultApplianceIpAddress is used.

Each VLAN tag can be a single number or a range of numbers in the range of 1 to 4094, e.g., "1" or "4001-4094". Non-empty and non-overlapping VLAN tag ranges are enforced, and violating operations will be rejected.

The VLAN tags in the Ethernet header must use an ethertype value of 0x88A8 or 0x8100.

map<string, .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingApplianceMapping> appliance_mappings = 374529975;

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

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

getApplianceMappings() (deprecated)

public Map<String,InterconnectAttachmentL2ForwardingApplianceMapping> getApplianceMappings()
Returns
Type Description
Map<String,InterconnectAttachmentL2ForwardingApplianceMapping>

getApplianceMappingsCount()

public int getApplianceMappingsCount()

Optional. A map of VLAN tags to appliances and optional inner mapping rules. If VLANs are not explicitly mapped to any appliance, the defaultApplianceIpAddress is used.

Each VLAN tag can be a single number or a range of numbers in the range of 1 to 4094, e.g., "1" or "4001-4094". Non-empty and non-overlapping VLAN tag ranges are enforced, and violating operations will be rejected.

The VLAN tags in the Ethernet header must use an ethertype value of 0x88A8 or 0x8100.

map<string, .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingApplianceMapping> appliance_mappings = 374529975;

Returns
Type Description
int

getApplianceMappingsMap()

public Map<String,InterconnectAttachmentL2ForwardingApplianceMapping> getApplianceMappingsMap()

Optional. A map of VLAN tags to appliances and optional inner mapping rules. If VLANs are not explicitly mapped to any appliance, the defaultApplianceIpAddress is used.

Each VLAN tag can be a single number or a range of numbers in the range of 1 to 4094, e.g., "1" or "4001-4094". Non-empty and non-overlapping VLAN tag ranges are enforced, and violating operations will be rejected.

The VLAN tags in the Ethernet header must use an ethertype value of 0x88A8 or 0x8100.

map<string, .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingApplianceMapping> appliance_mappings = 374529975;

Returns
Type Description
Map<String,InterconnectAttachmentL2ForwardingApplianceMapping>

getApplianceMappingsOrDefault(String key, InterconnectAttachmentL2ForwardingApplianceMapping defaultValue)

public InterconnectAttachmentL2ForwardingApplianceMapping getApplianceMappingsOrDefault(String key, InterconnectAttachmentL2ForwardingApplianceMapping defaultValue)

Optional. A map of VLAN tags to appliances and optional inner mapping rules. If VLANs are not explicitly mapped to any appliance, the defaultApplianceIpAddress is used.

Each VLAN tag can be a single number or a range of numbers in the range of 1 to 4094, e.g., "1" or "4001-4094". Non-empty and non-overlapping VLAN tag ranges are enforced, and violating operations will be rejected.

The VLAN tags in the Ethernet header must use an ethertype value of 0x88A8 or 0x8100.

map<string, .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingApplianceMapping> appliance_mappings = 374529975;

Parameters
Name Description
key String
defaultValue InterconnectAttachmentL2ForwardingApplianceMapping
Returns
Type Description
InterconnectAttachmentL2ForwardingApplianceMapping

getApplianceMappingsOrThrow(String key)

public InterconnectAttachmentL2ForwardingApplianceMapping getApplianceMappingsOrThrow(String key)

Optional. A map of VLAN tags to appliances and optional inner mapping rules. If VLANs are not explicitly mapped to any appliance, the defaultApplianceIpAddress is used.

Each VLAN tag can be a single number or a range of numbers in the range of 1 to 4094, e.g., "1" or "4001-4094". Non-empty and non-overlapping VLAN tag ranges are enforced, and violating operations will be rejected.

The VLAN tags in the Ethernet header must use an ethertype value of 0x88A8 or 0x8100.

map<string, .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingApplianceMapping> appliance_mappings = 374529975;

Parameter
Name Description
key String
Returns
Type Description
InterconnectAttachmentL2ForwardingApplianceMapping

getDefaultApplianceIpAddress()

public String getDefaultApplianceIpAddress()

Optional. A single IPv4 or IPv6 address used as the default destination IP when there is no VLAN mapping result found.

Unset field (null-value) indicates the unmatched packet should be dropped.

optional string default_appliance_ip_address = 536490476;

Returns
Type Description
String

The defaultApplianceIpAddress.

getDefaultApplianceIpAddressBytes()

public ByteString getDefaultApplianceIpAddressBytes()

Optional. A single IPv4 or IPv6 address used as the default destination IP when there is no VLAN mapping result found.

Unset field (null-value) indicates the unmatched packet should be dropped.

optional string default_appliance_ip_address = 536490476;

Returns
Type Description
ByteString

The bytes for defaultApplianceIpAddress.

getDefaultInstanceForType()

public InterconnectAttachmentL2Forwarding getDefaultInstanceForType()
Returns
Type Description
InterconnectAttachmentL2Forwarding

getGeneveHeader()

public InterconnectAttachmentL2ForwardingGeneveHeader getGeneveHeader()

Optional. It represents the structure of a Geneve (Generic Network Virtualization Encapsulation) header, as defined in RFC8926. It encapsulates packets from various protocols (e.g., Ethernet, IPv4, IPv6) for use in network virtualization environments.

optional .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingGeneveHeader geneve_header = 118688424;

Returns
Type Description
InterconnectAttachmentL2ForwardingGeneveHeader

The geneveHeader.

getGeneveHeaderOrBuilder()

public InterconnectAttachmentL2ForwardingGeneveHeaderOrBuilder getGeneveHeaderOrBuilder()

Optional. It represents the structure of a Geneve (Generic Network Virtualization Encapsulation) header, as defined in RFC8926. It encapsulates packets from various protocols (e.g., Ethernet, IPv4, IPv6) for use in network virtualization environments.

optional .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingGeneveHeader geneve_header = 118688424;

Returns
Type Description
InterconnectAttachmentL2ForwardingGeneveHeaderOrBuilder

getNetwork()

public String getNetwork()

Required. Resource URL of the network to which this attachment belongs.

optional string network = 232872494;

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Required. Resource URL of the network to which this attachment belongs.

optional string network = 232872494;

Returns
Type Description
ByteString

The bytes for network.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTunnelEndpointIpAddress()

public String getTunnelEndpointIpAddress()

Required. A single IPv4 or IPv6 address. This address will be used as the source IP address for packets sent to the appliances, and must be used as the destination IP address for packets that should be sent out through this attachment.

optional string tunnel_endpoint_ip_address = 468740975;

Returns
Type Description
String

The tunnelEndpointIpAddress.

getTunnelEndpointIpAddressBytes()

public ByteString getTunnelEndpointIpAddressBytes()

Required. A single IPv4 or IPv6 address. This address will be used as the source IP address for packets sent to the appliances, and must be used as the destination IP address for packets that should be sent out through this attachment.

optional string tunnel_endpoint_ip_address = 468740975;

Returns
Type Description
ByteString

The bytes for tunnelEndpointIpAddress.

hasDefaultApplianceIpAddress()

public boolean hasDefaultApplianceIpAddress()

Optional. A single IPv4 or IPv6 address used as the default destination IP when there is no VLAN mapping result found.

Unset field (null-value) indicates the unmatched packet should be dropped.

optional string default_appliance_ip_address = 536490476;

Returns
Type Description
boolean

Whether the defaultApplianceIpAddress field is set.

hasGeneveHeader()

public boolean hasGeneveHeader()

Optional. It represents the structure of a Geneve (Generic Network Virtualization Encapsulation) header, as defined in RFC8926. It encapsulates packets from various protocols (e.g., Ethernet, IPv4, IPv6) for use in network virtualization environments.

optional .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingGeneveHeader geneve_header = 118688424;

Returns
Type Description
boolean

Whether the geneveHeader field is set.

hasNetwork()

public boolean hasNetwork()

Required. Resource URL of the network to which this attachment belongs.

optional string network = 232872494;

Returns
Type Description
boolean

Whether the network field is set.

hasTunnelEndpointIpAddress()

public boolean hasTunnelEndpointIpAddress()

Required. A single IPv4 or IPv6 address. This address will be used as the source IP address for packets sent to the appliances, and must be used as the destination IP address for packets that should be sent out through this attachment.

optional string tunnel_endpoint_ip_address = 468740975;

Returns
Type Description
boolean

Whether the tunnelEndpointIpAddress field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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