Class InterconnectRemoteLocationConstraints.Builder (1.56.0)

public static final class InterconnectRemoteLocationConstraints.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InterconnectRemoteLocationConstraints.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InterconnectRemoteLocationConstraints.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public InterconnectRemoteLocationConstraints.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
InterconnectRemoteLocationConstraints.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public InterconnectRemoteLocationConstraints.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
InterconnectRemoteLocationConstraints.Builder
Overrides

clearPortPairRemoteLocation()

public InterconnectRemoteLocationConstraints.Builder clearPortPairRemoteLocation()

[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] 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] [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

clone()

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

getDefaultInstanceForType()

public InterconnectRemoteLocationConstraints getDefaultInstanceForType()
Returns
Type Description
InterconnectRemoteLocationConstraints

getDescriptorForType()

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

getPortPairRemoteLocation()

public String getPortPairRemoteLocation()

[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] 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] 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] 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] [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] [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] [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] 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] 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] [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 GeneratedMessageV3.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] [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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InterconnectRemoteLocationConstraints.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InterconnectRemoteLocationConstraints.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public InterconnectRemoteLocationConstraints.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InterconnectRemoteLocationConstraints.Builder
Overrides

setPortPairRemoteLocation(String value)

public InterconnectRemoteLocationConstraints.Builder setPortPairRemoteLocation(String value)

[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] 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] 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] 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.

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

public InterconnectRemoteLocationConstraints.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
InterconnectRemoteLocationConstraints.Builder
Overrides

setSubnetLengthRange(InterconnectRemoteLocationConstraintsSubnetLengthRange value)

public InterconnectRemoteLocationConstraints.Builder setSubnetLengthRange(InterconnectRemoteLocationConstraintsSubnetLengthRange value)

[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] [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

setUnknownFields(UnknownFieldSet unknownFields)

public final InterconnectRemoteLocationConstraints.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InterconnectRemoteLocationConstraints.Builder
Overrides