Class InterconnectRemoteLocationConstraints.Builder (1.51.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InterconnectRemoteLocationConstraints.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InterconnectRemoteLocationConstraints.Builder
Overrides

build()

public InterconnectRemoteLocationConstraints build()
Returns
TypeDescription
InterconnectRemoteLocationConstraints

buildPartial()

public InterconnectRemoteLocationConstraints buildPartial()
Returns
TypeDescription
InterconnectRemoteLocationConstraints

clear()

public InterconnectRemoteLocationConstraints.Builder clear()
Returns
TypeDescription
InterconnectRemoteLocationConstraints.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public InterconnectRemoteLocationConstraints.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
InterconnectRemoteLocationConstraints.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public InterconnectRemoteLocationConstraints.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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. GCP's 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
TypeDescription
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
TypeDescription
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
TypeDescription
InterconnectRemoteLocationConstraints.Builder

clone()

public InterconnectRemoteLocationConstraints.Builder clone()
Returns
TypeDescription
InterconnectRemoteLocationConstraints.Builder
Overrides

getDefaultInstanceForType()

public InterconnectRemoteLocationConstraints getDefaultInstanceForType()
Returns
TypeDescription
InterconnectRemoteLocationConstraints

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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. GCP's 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
TypeDescription
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. GCP's 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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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. GCP's 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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the subnetLengthRange field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InterconnectRemoteLocationConstraints other)

public InterconnectRemoteLocationConstraints.Builder mergeFrom(InterconnectRemoteLocationConstraints other)
Parameter
NameDescription
otherInterconnectRemoteLocationConstraints
Returns
TypeDescription
InterconnectRemoteLocationConstraints.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InterconnectRemoteLocationConstraints.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InterconnectRemoteLocationConstraints.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public InterconnectRemoteLocationConstraints.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueInterconnectRemoteLocationConstraintsSubnetLengthRange
Returns
TypeDescription
InterconnectRemoteLocationConstraints.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InterconnectRemoteLocationConstraints.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InterconnectRemoteLocationConstraints.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public InterconnectRemoteLocationConstraints.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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. GCP's 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
NameDescription
valueString

The portPairRemoteLocation to set.

Returns
TypeDescription
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. GCP's 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
NameDescription
valueByteString

The bytes for portPairRemoteLocation to set.

Returns
TypeDescription
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
NameDescription
valueString

The portPairVlan to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for portPairVlan to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueInterconnectRemoteLocationConstraintsSubnetLengthRange
Returns
TypeDescription
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
NameDescription
builderForValueInterconnectRemoteLocationConstraintsSubnetLengthRange.Builder
Returns
TypeDescription
InterconnectRemoteLocationConstraints.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final InterconnectRemoteLocationConstraints.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InterconnectRemoteLocationConstraints.Builder
Overrides