Class InterconnectRemoteLocationConstraints.Builder (1.93.0)

public static final class InterconnectRemoteLocationConstraints.Builder extends GeneratedMessage.Builder<InterconnectRemoteLocationConstraints.Builder> implements InterconnectRemoteLocationConstraintsOrBuilder

Protobuf type google.cloud.compute.v1.InterconnectRemoteLocationConstraints

Static Methods

getDescriptor()

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

Methods

build()

public InterconnectRemoteLocationConstraints build()
Returns
Type Description
InterconnectRemoteLocationConstraints

buildPartial()

public InterconnectRemoteLocationConstraints buildPartial()
Returns
Type Description
InterconnectRemoteLocationConstraints

clear()

public InterconnectRemoteLocationConstraints.Builder clear()
Returns
Type Description
InterconnectRemoteLocationConstraints.Builder
Overrides

clearPortPairRemoteLocation()

public InterconnectRemoteLocationConstraints.Builder clearPortPairRemoteLocation()

Output only. [Output Only] Port pair remote location constraints, which can take one of the following values: PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, PORT_PAIR_MATCHING_REMOTE_LOCATION.

Google Cloud API refers only to individual ports, but the UI uses this field when ordering a pair of ports, to prevent users from accidentally ordering something that is incompatible with their cloud provider. Specifically, when ordering a redundant pair of Cross-Cloud Interconnect ports, and one of them uses a remote location with portPairMatchingRemoteLocation set to matching, the UI requires that both ports use the same remote location. Check the PortPairRemoteLocation enum for the list of possible values.

optional string port_pair_remote_location = 495917351;

Returns
Type Description
InterconnectRemoteLocationConstraints.Builder

This builder for chaining.

clearPortPairVlan()

public InterconnectRemoteLocationConstraints.Builder clearPortPairVlan()

Output only. [Output Only] Port pair VLAN constraints, which can take one of the following values: PORT_PAIR_UNCONSTRAINED_VLAN, PORT_PAIR_MATCHING_VLAN Check the PortPairVlan enum for the list of possible values.

optional string port_pair_vlan = 478214506;

Returns
Type Description
InterconnectRemoteLocationConstraints.Builder

This builder for chaining.

clearSubnetLengthRange()

public InterconnectRemoteLocationConstraints.Builder clearSubnetLengthRange()

Output only. [Output Only]

[min-length, max-length]

The minimum and maximum value (inclusive) for the IPv4 subnet length.

For example, an interconnectRemoteLocation for Azure has {min: 30, max: 30} because Azure requires /30 subnets.

This range specifies the values supported by both cloud providers. Interconnect currently supports /29 and /30 IPv4 subnet lengths. If a remote cloud has no constraint on IPv4 subnet length, the range would thus be {min: 29, max: 30}.

optional .google.cloud.compute.v1.InterconnectRemoteLocationConstraintsSubnetLengthRange subnet_length_range = 184473670;

Returns
Type Description
InterconnectRemoteLocationConstraints.Builder

getDefaultInstanceForType()

public InterconnectRemoteLocationConstraints getDefaultInstanceForType()
Returns
Type Description
InterconnectRemoteLocationConstraints

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPortPairRemoteLocation()

public String getPortPairRemoteLocation()

Output only. [Output Only] Port pair remote location constraints, which can take one of the following values: PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, PORT_PAIR_MATCHING_REMOTE_LOCATION.

Google Cloud API refers only to individual ports, but the UI uses this field when ordering a pair of ports, to prevent users from accidentally ordering something that is incompatible with their cloud provider. Specifically, when ordering a redundant pair of Cross-Cloud Interconnect ports, and one of them uses a remote location with portPairMatchingRemoteLocation set to matching, the UI requires that both ports use the same remote location. Check the PortPairRemoteLocation enum for the list of possible values.

optional string port_pair_remote_location = 495917351;

Returns
Type Description
String

The portPairRemoteLocation.

getPortPairRemoteLocationBytes()

public ByteString getPortPairRemoteLocationBytes()

Output only. [Output Only] Port pair remote location constraints, which can take one of the following values: PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, PORT_PAIR_MATCHING_REMOTE_LOCATION.

Google Cloud API refers only to individual ports, but the UI uses this field when ordering a pair of ports, to prevent users from accidentally ordering something that is incompatible with their cloud provider. Specifically, when ordering a redundant pair of Cross-Cloud Interconnect ports, and one of them uses a remote location with portPairMatchingRemoteLocation set to matching, the UI requires that both ports use the same remote location. Check the PortPairRemoteLocation enum for the list of possible values.

optional string port_pair_remote_location = 495917351;

Returns
Type Description
ByteString

The bytes for portPairRemoteLocation.

getPortPairVlan()

public String getPortPairVlan()

Output only. [Output Only] Port pair VLAN constraints, which can take one of the following values: PORT_PAIR_UNCONSTRAINED_VLAN, PORT_PAIR_MATCHING_VLAN Check the PortPairVlan enum for the list of possible values.

optional string port_pair_vlan = 478214506;

Returns
Type Description
String

The portPairVlan.

getPortPairVlanBytes()

public ByteString getPortPairVlanBytes()

Output only. [Output Only] Port pair VLAN constraints, which can take one of the following values: PORT_PAIR_UNCONSTRAINED_VLAN, PORT_PAIR_MATCHING_VLAN Check the PortPairVlan enum for the list of possible values.

optional string port_pair_vlan = 478214506;

Returns
Type Description
ByteString

The bytes for portPairVlan.

getSubnetLengthRange()

public InterconnectRemoteLocationConstraintsSubnetLengthRange getSubnetLengthRange()

Output only. [Output Only]

[min-length, max-length]

The minimum and maximum value (inclusive) for the IPv4 subnet length.

For example, an interconnectRemoteLocation for Azure has {min: 30, max: 30} because Azure requires /30 subnets.

This range specifies the values supported by both cloud providers. Interconnect currently supports /29 and /30 IPv4 subnet lengths. If a remote cloud has no constraint on IPv4 subnet length, the range would thus be {min: 29, max: 30}.

optional .google.cloud.compute.v1.InterconnectRemoteLocationConstraintsSubnetLengthRange subnet_length_range = 184473670;

Returns
Type Description
InterconnectRemoteLocationConstraintsSubnetLengthRange

The subnetLengthRange.

getSubnetLengthRangeBuilder()

public InterconnectRemoteLocationConstraintsSubnetLengthRange.Builder getSubnetLengthRangeBuilder()

Output only. [Output Only]

[min-length, max-length]

The minimum and maximum value (inclusive) for the IPv4 subnet length.

For example, an interconnectRemoteLocation for Azure has {min: 30, max: 30} because Azure requires /30 subnets.

This range specifies the values supported by both cloud providers. Interconnect currently supports /29 and /30 IPv4 subnet lengths. If a remote cloud has no constraint on IPv4 subnet length, the range would thus be {min: 29, max: 30}.

optional .google.cloud.compute.v1.InterconnectRemoteLocationConstraintsSubnetLengthRange subnet_length_range = 184473670;

Returns
Type Description
InterconnectRemoteLocationConstraintsSubnetLengthRange.Builder

getSubnetLengthRangeOrBuilder()

public InterconnectRemoteLocationConstraintsSubnetLengthRangeOrBuilder getSubnetLengthRangeOrBuilder()

Output only. [Output Only]

[min-length, max-length]

The minimum and maximum value (inclusive) for the IPv4 subnet length.

For example, an interconnectRemoteLocation for Azure has {min: 30, max: 30} because Azure requires /30 subnets.

This range specifies the values supported by both cloud providers. Interconnect currently supports /29 and /30 IPv4 subnet lengths. If a remote cloud has no constraint on IPv4 subnet length, the range would thus be {min: 29, max: 30}.

optional .google.cloud.compute.v1.InterconnectRemoteLocationConstraintsSubnetLengthRange subnet_length_range = 184473670;

Returns
Type Description
InterconnectRemoteLocationConstraintsSubnetLengthRangeOrBuilder

hasPortPairRemoteLocation()

public boolean hasPortPairRemoteLocation()

Output only. [Output Only] Port pair remote location constraints, which can take one of the following values: PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, PORT_PAIR_MATCHING_REMOTE_LOCATION.

Google Cloud API refers only to individual ports, but the UI uses this field when ordering a pair of ports, to prevent users from accidentally ordering something that is incompatible with their cloud provider. Specifically, when ordering a redundant pair of Cross-Cloud Interconnect ports, and one of them uses a remote location with portPairMatchingRemoteLocation set to matching, the UI requires that both ports use the same remote location. Check the PortPairRemoteLocation enum for the list of possible values.

optional string port_pair_remote_location = 495917351;

Returns
Type Description
boolean

Whether the portPairRemoteLocation field is set.

hasPortPairVlan()

public boolean hasPortPairVlan()

Output only. [Output Only] Port pair VLAN constraints, which can take one of the following values: PORT_PAIR_UNCONSTRAINED_VLAN, PORT_PAIR_MATCHING_VLAN Check the PortPairVlan enum for the list of possible values.

optional string port_pair_vlan = 478214506;

Returns
Type Description
boolean

Whether the portPairVlan field is set.

hasSubnetLengthRange()

public boolean hasSubnetLengthRange()

Output only. [Output Only]

[min-length, max-length]

The minimum and maximum value (inclusive) for the IPv4 subnet length.

For example, an interconnectRemoteLocation for Azure has {min: 30, max: 30} because Azure requires /30 subnets.

This range specifies the values supported by both cloud providers. Interconnect currently supports /29 and /30 IPv4 subnet lengths. If a remote cloud has no constraint on IPv4 subnet length, the range would thus be {min: 29, max: 30}.

optional .google.cloud.compute.v1.InterconnectRemoteLocationConstraintsSubnetLengthRange subnet_length_range = 184473670;

Returns
Type Description
boolean

Whether the subnetLengthRange field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InterconnectRemoteLocationConstraints other)

public InterconnectRemoteLocationConstraints.Builder mergeFrom(InterconnectRemoteLocationConstraints other)
Parameter
Name Description
other InterconnectRemoteLocationConstraints
Returns
Type Description
InterconnectRemoteLocationConstraints.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InterconnectRemoteLocationConstraints.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InterconnectRemoteLocationConstraints.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InterconnectRemoteLocationConstraints.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InterconnectRemoteLocationConstraints.Builder
Overrides

mergeSubnetLengthRange(InterconnectRemoteLocationConstraintsSubnetLengthRange value)

public InterconnectRemoteLocationConstraints.Builder mergeSubnetLengthRange(InterconnectRemoteLocationConstraintsSubnetLengthRange value)

Output only. [Output Only]

[min-length, max-length]

The minimum and maximum value (inclusive) for the IPv4 subnet length.

For example, an interconnectRemoteLocation for Azure has {min: 30, max: 30} because Azure requires /30 subnets.

This range specifies the values supported by both cloud providers. Interconnect currently supports /29 and /30 IPv4 subnet lengths. If a remote cloud has no constraint on IPv4 subnet length, the range would thus be {min: 29, max: 30}.

optional .google.cloud.compute.v1.InterconnectRemoteLocationConstraintsSubnetLengthRange subnet_length_range = 184473670;

Parameter
Name Description
value InterconnectRemoteLocationConstraintsSubnetLengthRange
Returns
Type Description
InterconnectRemoteLocationConstraints.Builder

setPortPairRemoteLocation(String value)

public InterconnectRemoteLocationConstraints.Builder setPortPairRemoteLocation(String value)

Output only. [Output Only] Port pair remote location constraints, which can take one of the following values: PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, PORT_PAIR_MATCHING_REMOTE_LOCATION.

Google Cloud API refers only to individual ports, but the UI uses this field when ordering a pair of ports, to prevent users from accidentally ordering something that is incompatible with their cloud provider. Specifically, when ordering a redundant pair of Cross-Cloud Interconnect ports, and one of them uses a remote location with portPairMatchingRemoteLocation set to matching, the UI requires that both ports use the same remote location. Check the PortPairRemoteLocation enum for the list of possible values.

optional string port_pair_remote_location = 495917351;

Parameter
Name Description
value String

The portPairRemoteLocation to set.

Returns
Type Description
InterconnectRemoteLocationConstraints.Builder

This builder for chaining.

setPortPairRemoteLocationBytes(ByteString value)

public InterconnectRemoteLocationConstraints.Builder setPortPairRemoteLocationBytes(ByteString value)

Output only. [Output Only] Port pair remote location constraints, which can take one of the following values: PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, PORT_PAIR_MATCHING_REMOTE_LOCATION.

Google Cloud API refers only to individual ports, but the UI uses this field when ordering a pair of ports, to prevent users from accidentally ordering something that is incompatible with their cloud provider. Specifically, when ordering a redundant pair of Cross-Cloud Interconnect ports, and one of them uses a remote location with portPairMatchingRemoteLocation set to matching, the UI requires that both ports use the same remote location. Check the PortPairRemoteLocation enum for the list of possible values.

optional string port_pair_remote_location = 495917351;

Parameter
Name Description
value ByteString

The bytes for portPairRemoteLocation to set.

Returns
Type Description
InterconnectRemoteLocationConstraints.Builder

This builder for chaining.

setPortPairVlan(String value)

public InterconnectRemoteLocationConstraints.Builder setPortPairVlan(String value)

Output only. [Output Only] Port pair VLAN constraints, which can take one of the following values: PORT_PAIR_UNCONSTRAINED_VLAN, PORT_PAIR_MATCHING_VLAN Check the PortPairVlan enum for the list of possible values.

optional string port_pair_vlan = 478214506;

Parameter
Name Description
value String

The portPairVlan to set.

Returns
Type Description
InterconnectRemoteLocationConstraints.Builder

This builder for chaining.

setPortPairVlanBytes(ByteString value)

public InterconnectRemoteLocationConstraints.Builder setPortPairVlanBytes(ByteString value)

Output only. [Output Only] Port pair VLAN constraints, which can take one of the following values: PORT_PAIR_UNCONSTRAINED_VLAN, PORT_PAIR_MATCHING_VLAN Check the PortPairVlan enum for the list of possible values.

optional string port_pair_vlan = 478214506;

Parameter
Name Description
value ByteString

The bytes for portPairVlan to set.

Returns
Type Description
InterconnectRemoteLocationConstraints.Builder

This builder for chaining.

setSubnetLengthRange(InterconnectRemoteLocationConstraintsSubnetLengthRange value)

public InterconnectRemoteLocationConstraints.Builder setSubnetLengthRange(InterconnectRemoteLocationConstraintsSubnetLengthRange value)

Output only. [Output Only]

[min-length, max-length]

The minimum and maximum value (inclusive) for the IPv4 subnet length.

For example, an interconnectRemoteLocation for Azure has {min: 30, max: 30} because Azure requires /30 subnets.

This range specifies the values supported by both cloud providers. Interconnect currently supports /29 and /30 IPv4 subnet lengths. If a remote cloud has no constraint on IPv4 subnet length, the range would thus be {min: 29, max: 30}.

optional .google.cloud.compute.v1.InterconnectRemoteLocationConstraintsSubnetLengthRange subnet_length_range = 184473670;

Parameter
Name Description
value InterconnectRemoteLocationConstraintsSubnetLengthRange
Returns
Type Description
InterconnectRemoteLocationConstraints.Builder

setSubnetLengthRange(InterconnectRemoteLocationConstraintsSubnetLengthRange.Builder builderForValue)

public InterconnectRemoteLocationConstraints.Builder setSubnetLengthRange(InterconnectRemoteLocationConstraintsSubnetLengthRange.Builder builderForValue)

Output only. [Output Only]

[min-length, max-length]

The minimum and maximum value (inclusive) for the IPv4 subnet length.

For example, an interconnectRemoteLocation for Azure has {min: 30, max: 30} because Azure requires /30 subnets.

This range specifies the values supported by both cloud providers. Interconnect currently supports /29 and /30 IPv4 subnet lengths. If a remote cloud has no constraint on IPv4 subnet length, the range would thus be {min: 29, max: 30}.

optional .google.cloud.compute.v1.InterconnectRemoteLocationConstraintsSubnetLengthRange subnet_length_range = 184473670;

Parameter
Name Description
builderForValue InterconnectRemoteLocationConstraintsSubnetLengthRange.Builder
Returns
Type Description
InterconnectRemoteLocationConstraints.Builder