# Class InterconnectAttachment.Builder (1.101.0)

1.103.0 (latest) 1.101.0 1.98.0 1.97.0 1.95.0 1.93.0 1.92.0 1.91.0 1.90.0 1.88.0 1.86.0 1.85.0 1.84.0 1.83.0 1.82.0 1.80.0 1.78.0 1.77.0 1.74.0 1.73.0 1.72.0 1.70.0 1.69.0 1.68.0 1.67.0 1.66.0 1.65.0 1.64.0 1.63.0 1.62.0 1.61.0 1.59.0 1.58.0 1.57.0 1.56.0 1.55.0 1.54.0 1.53.0 1.52.0 1.51.0 1.50.0 1.49.0 1.47.0 1.46.0 1.45.0 1.44.0 1.43.0 1.42.0 1.41.0 1.40.0 1.39.0 1.38.0 1.37.0 1.34.0 1.33.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.25.0 1.24.0 1.23.0 1.22.0 1.21.0 1.20.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.0 1.14.0 1.13.0 1.12.1 1.11.0 1.9.1 1.8.1 1.7.2 1.6.0-beta

    public static final class InterconnectAttachment.Builder extends GeneratedMessage.Builder<InterconnectAttachment.Builder> implements InterconnectAttachmentOrBuilder

Represents an Interconnect Attachment (VLAN) resource.

You can use Interconnect attachments (VLANS) to connect your Virtual Private
Cloud networks to your on-premises networks through an Interconnect.
For more information, read
Creating VLAN Attachments.

Protobuf type `google.cloud.compute.v1.InterconnectAttachment`

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> [AbstractMessageLite.Builder\<MessageType,BuilderType\>](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html) \> [AbstractMessage.Builder\<BuilderType\>](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html) \> [GeneratedMessage.Builder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html) \> InterconnectAttachment.Builder

## Implements

[InterconnectAttachmentOrBuilder](https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentOrBuilder)

## Inherited Members

[AbstractMessage.Builder.findInitializationErrors()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_findInitializationErrors__) [AbstractMessage.Builder.getInitializationErrorString()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_getInitializationErrorString__) [AbstractMessage.Builder.internalMergeFrom(AbstractMessageLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_internalMergeFrom_com_google_protobuf_AbstractMessageLite_) [AbstractMessage.Builder.mergeFrom(byte\[\])](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_byte___) [AbstractMessage.Builder.mergeFrom(byte\[\],ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_byte___com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.mergeFrom(byte\[\],int,int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_byte___int_int_) [AbstractMessage.Builder.mergeFrom(byte\[\],int,int,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_byte___int_int_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.mergeFrom(ByteString)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_ByteString_) [AbstractMessage.Builder.mergeFrom(ByteString,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_ByteString_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.mergeFrom(CodedInputStream)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_CodedInputStream_) [AbstractMessage.Builder.mergeFrom(CodedInputStream,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_CodedInputStream_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.mergeFrom(Message)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_Message_) [AbstractMessage.Builder.mergeFrom(InputStream)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_java_io_InputStream_) [AbstractMessage.Builder.mergeFrom(InputStream,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_java_io_InputStream_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.newUninitializedMessageException(Message)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_newUninitializedMessageException_com_google_protobuf_Message_) [AbstractMessage.Builder.toString()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_toString__) [AbstractMessageLite.Builder.\<T\>addAll(Iterable\<T\>,Collection\<? super T\>)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder__T_addAll_java_lang_Iterable_T__java_util_Collection___super_T__) [AbstractMessageLite.Builder.\<T\>addAll(Iterable\<T\>,List\<? super T\>)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder__T_addAll_java_lang_Iterable_T__java_util_List___super_T__) [AbstractMessageLite.Builder.internalMergeFrom(MessageType)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_internalMergeFrom_MessageType_) [AbstractMessageLite.Builder.mergeDelimitedFrom(InputStream)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_mergeDelimitedFrom_java_io_InputStream_) [AbstractMessageLite.Builder.mergeDelimitedFrom(InputStream,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_mergeDelimitedFrom_java_io_InputStream_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessageLite.Builder.mergeFrom(MessageLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_mergeFrom_com_google_protobuf_MessageLite_) [AbstractMessageLite.Builder.newUninitializedMessageException(MessageLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_newUninitializedMessageException_com_google_protobuf_MessageLite_) [GeneratedMessage.Builder.addRepeatedField(Descriptors.FieldDescriptor,Object)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_addRepeatedField_com_google_protobuf_Descriptors_FieldDescriptor_java_lang_Object_) [GeneratedMessage.Builder.clear()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_clear__) [GeneratedMessage.Builder.clearField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_clearField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessage.Builder.clearOneof(Descriptors.OneofDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_clearOneof_com_google_protobuf_Descriptors_OneofDescriptor_) [GeneratedMessage.Builder.clone()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_clone__) [GeneratedMessage.Builder.getAllFields()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getAllFields__) [GeneratedMessage.Builder.getDescriptorForType()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getDescriptorForType__) [GeneratedMessage.Builder.getField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessage.Builder.getFieldBuilder(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getFieldBuilder_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessage.Builder.getOneofFieldDescriptor(Descriptors.OneofDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getOneofFieldDescriptor_com_google_protobuf_Descriptors_OneofDescriptor_) [GeneratedMessage.Builder.getParentForChildren()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getParentForChildren__) [GeneratedMessage.Builder.getRepeatedField(Descriptors.FieldDescriptor,int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getRepeatedField_com_google_protobuf_Descriptors_FieldDescriptor_int_) [GeneratedMessage.Builder.getRepeatedFieldBuilder(Descriptors.FieldDescriptor,int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getRepeatedFieldBuilder_com_google_protobuf_Descriptors_FieldDescriptor_int_) [GeneratedMessage.Builder.getRepeatedFieldCount(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getRepeatedFieldCount_com_google_protobuf_Descriptors_FieldDescriptor_) com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder() [GeneratedMessage.Builder.getUnknownFields()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getUnknownFields__) [GeneratedMessage.Builder.hasField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_hasField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessage.Builder.hasOneof(Descriptors.OneofDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_hasOneof_com_google_protobuf_Descriptors_OneofDescriptor_) [GeneratedMessage.Builder.internalGetFieldAccessorTable()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_internalGetFieldAccessorTable__) [GeneratedMessage.Builder.internalGetMapField(int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_internalGetMapField_int_) com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int) [GeneratedMessage.Builder.internalGetMutableMapField(int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_internalGetMutableMapField_int_) com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int) [GeneratedMessage.Builder.isClean()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_isClean__) [GeneratedMessage.Builder.isInitialized()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_isInitialized__) [GeneratedMessage.Builder.markClean()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_markClean__) [GeneratedMessage.Builder.mergeUnknownFields(UnknownFieldSet)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_mergeUnknownFields_com_google_protobuf_UnknownFieldSet_) com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int) [GeneratedMessage.Builder.newBuilderForField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_newBuilderForField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessage.Builder.onBuilt()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_onBuilt__) [GeneratedMessage.Builder.onChanged()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_onChanged__) com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) [GeneratedMessage.Builder.setField(Descriptors.FieldDescriptor,Object)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_setField_com_google_protobuf_Descriptors_FieldDescriptor_java_lang_Object_) [GeneratedMessage.Builder.setRepeatedField(Descriptors.FieldDescriptor,int,Object)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_setRepeatedField_com_google_protobuf_Descriptors_FieldDescriptor_int_java_lang_Object_) com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) [GeneratedMessage.Builder.setUnknownFields(UnknownFieldSet)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_setUnknownFields_com_google_protobuf_UnknownFieldSet_) com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Static Methods

### getDescriptor()

    public static final Descriptors.Descriptor getDescriptor()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Descriptors.Descriptor.html` |   |

## Methods

### addAllCandidateIpv6Subnets(Iterable\<String\> values)

    public InterconnectAttachment.Builder addAllCandidateIpv6Subnets(Iterable<String> values)

This field is not available.

`repeated string candidate_ipv6_subnets = 70682522;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `values` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` The candidateIpv6Subnets to add. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### addAllCandidateSubnets(Iterable\<String\> values)

    public InterconnectAttachment.Builder addAllCandidateSubnets(Iterable<String> values)

Input only. Up to 16 candidate prefixes that can be used to restrict the allocation
of cloudRouterIpAddress and customerRouterIpAddress for this attachment.
All prefixes must be within link-local address space (169.254.0.0/16) and
must be /29 or shorter (/28, /27, etc). Google will attempt to select an
unused /29 from the supplied candidate prefix(es). The request will fail if
all possible /29s are in use on Google's edge. If not supplied, Google will
randomly select an unused /29 from all of link-local space.

`repeated string candidate_subnets = 237842938;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `values` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` The candidateSubnets to add. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### addAllIpsecInternalAddresses(Iterable\<String\> values)

    public InterconnectAttachment.Builder addAllIpsecInternalAddresses(Iterable<String> values)

A list of URLs of addresses that have been reserved for the VLAN
attachment. Used only for the VLAN attachment that has the encryption
option as IPSEC. The addresses must be regional internal IP address ranges.
When creating an HA VPN gateway over the VLAN attachment, if the attachment
is configured to use a regional internal IP address, then the VPN gateway's
IP address is allocated from the IP address range specified here. For
example, if the HA VPN gateway's interface 0 is paired to this VLAN
attachment, then a regional internal IP address for the VPN gateway
interface 0 will be allocated from the IP address specified for this
VLAN attachment.
If this field is not specified when creating the VLAN attachment, then
later on when creating an HA VPN gateway on this VLAN attachment, the HA
VPN gateway's IP address is allocated from the regional external IP address
pool.

`repeated string ipsec_internal_addresses = 407648565;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `values` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` The ipsecInternalAddresses to add. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### addCandidateIpv6Subnets(String value)

    public InterconnectAttachment.Builder addCandidateIpv6Subnets(String value)

This field is not available.

`repeated string candidate_ipv6_subnets = 70682522;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The candidateIpv6Subnets to add. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### addCandidateIpv6SubnetsBytes(ByteString value)

    public InterconnectAttachment.Builder addCandidateIpv6SubnetsBytes(ByteString value)

This field is not available.

`repeated string candidate_ipv6_subnets = 70682522;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes of the candidateIpv6Subnets to add. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### addCandidateSubnets(String value)

    public InterconnectAttachment.Builder addCandidateSubnets(String value)

Input only. Up to 16 candidate prefixes that can be used to restrict the allocation
of cloudRouterIpAddress and customerRouterIpAddress for this attachment.
All prefixes must be within link-local address space (169.254.0.0/16) and
must be /29 or shorter (/28, /27, etc). Google will attempt to select an
unused /29 from the supplied candidate prefix(es). The request will fail if
all possible /29s are in use on Google's edge. If not supplied, Google will
randomly select an unused /29 from all of link-local space.

`repeated string candidate_subnets = 237842938;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The candidateSubnets to add. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### addCandidateSubnetsBytes(ByteString value)

    public InterconnectAttachment.Builder addCandidateSubnetsBytes(ByteString value)

Input only. Up to 16 candidate prefixes that can be used to restrict the allocation
of cloudRouterIpAddress and customerRouterIpAddress for this attachment.
All prefixes must be within link-local address space (169.254.0.0/16) and
must be /29 or shorter (/28, /27, etc). Google will attempt to select an
unused /29 from the supplied candidate prefix(es). The request will fail if
all possible /29s are in use on Google's edge. If not supplied, Google will
randomly select an unused /29 from all of link-local space.

`repeated string candidate_subnets = 237842938;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes of the candidateSubnets to add. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### addIpsecInternalAddresses(String value)

    public InterconnectAttachment.Builder addIpsecInternalAddresses(String value)

A list of URLs of addresses that have been reserved for the VLAN
attachment. Used only for the VLAN attachment that has the encryption
option as IPSEC. The addresses must be regional internal IP address ranges.
When creating an HA VPN gateway over the VLAN attachment, if the attachment
is configured to use a regional internal IP address, then the VPN gateway's
IP address is allocated from the IP address range specified here. For
example, if the HA VPN gateway's interface 0 is paired to this VLAN
attachment, then a regional internal IP address for the VPN gateway
interface 0 will be allocated from the IP address specified for this
VLAN attachment.
If this field is not specified when creating the VLAN attachment, then
later on when creating an HA VPN gateway on this VLAN attachment, the HA
VPN gateway's IP address is allocated from the regional external IP address
pool.

`repeated string ipsec_internal_addresses = 407648565;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The ipsecInternalAddresses to add. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### addIpsecInternalAddressesBytes(ByteString value)

    public InterconnectAttachment.Builder addIpsecInternalAddressesBytes(ByteString value)

A list of URLs of addresses that have been reserved for the VLAN
attachment. Used only for the VLAN attachment that has the encryption
option as IPSEC. The addresses must be regional internal IP address ranges.
When creating an HA VPN gateway over the VLAN attachment, if the attachment
is configured to use a regional internal IP address, then the VPN gateway's
IP address is allocated from the IP address range specified here. For
example, if the HA VPN gateway's interface 0 is paired to this VLAN
attachment, then a regional internal IP address for the VPN gateway
interface 0 will be allocated from the IP address specified for this
VLAN attachment.
If this field is not specified when creating the VLAN attachment, then
later on when creating an HA VPN gateway on this VLAN attachment, the HA
VPN gateway's IP address is allocated from the regional external IP address
pool.

`repeated string ipsec_internal_addresses = 407648565;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes of the ipsecInternalAddresses to add. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### build()

    public InterconnectAttachment build()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment` |   |

### buildPartial()

    public InterconnectAttachment buildPartial()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment` |   |

### clear()

    public InterconnectAttachment.Builder clear()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

**Overrides** [GeneratedMessage.Builder\<BuilderType\>.clear()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_clear__)

### clearAdminEnabled()

    public InterconnectAttachment.Builder clearAdminEnabled()

Determines whether this Attachment will carry packets.
Not present for PARTNER_PROVIDER.

`optional bool admin_enabled = 445675089;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearAttachmentGroup()

    public InterconnectAttachment.Builder clearAttachmentGroup()

Output only. \[Output Only\] URL of the AttachmentGroup that includes this Attachment.

`optional string attachment_group = 63442019;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearBandwidth()

    public InterconnectAttachment.Builder clearBandwidth()

Provisioned bandwidth capacity for the interconnect attachment. For
attachments of type DEDICATED, the user can set the bandwidth.
For attachments of type PARTNER, the Google Partner that is operating
the interconnect must set the bandwidth.
Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED,
and can take one of the following values:

- BPS_50M: 50 Mbit/s
- BPS_100M: 100 Mbit/s
- BPS_200M: 200 Mbit/s
- BPS_300M: 300 Mbit/s
- BPS_400M: 400 Mbit/s
- BPS_500M: 500 Mbit/s
- BPS_1G: 1 Gbit/s
- BPS_2G: 2 Gbit/s
- BPS_5G: 5 Gbit/s
- BPS_10G: 10 Gbit/s
- BPS_20G: 20 Gbit/s
- BPS_50G: 50 Gbit/s
- BPS_100G: 100 Gbit/s
- BPS_400G: 400 Gbit/s Check the Bandwidth enum for the list of possible values.

`optional string bandwidth = 181715121;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearCandidateCloudRouterIpAddress()

    public InterconnectAttachment.Builder clearCandidateCloudRouterIpAddress()

Single IPv4 address + prefix length to be configured on the cloud router
interface for this interconnect attachment.

- Both candidate_cloud_router_ip_address and candidate_customer_router_ip_address fields must be set or both must be unset.
- Prefix length of both candidate_cloud_router_ip_address and candidate_customer_router_ip_address must be the same.
- Max prefix length is 31.

`optional string candidate_cloud_router_ip_address = 311379276;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearCandidateCloudRouterIpv6Address()

    public InterconnectAttachment.Builder clearCandidateCloudRouterIpv6Address()

Single IPv6 address + prefix length to be configured on the cloud router
interface for this interconnect attachment.

- Both candidate_cloud_router_ipv6_address and candidate_customer_router_ipv6_address fields must be set or both must be unset.
- Prefix length of both candidate_cloud_router_ipv6_address and candidate_customer_router_ipv6_address must be the same.
- Max prefix length is 126.

`optional string candidate_cloud_router_ipv6_address = 417499660;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearCandidateCustomerRouterIpAddress()

    public InterconnectAttachment.Builder clearCandidateCustomerRouterIpAddress()

Single IPv4 address + prefix length to be configured on the customer router
interface for this interconnect attachment.

`optional string candidate_customer_router_ip_address = 339113389;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearCandidateCustomerRouterIpv6Address()

    public InterconnectAttachment.Builder clearCandidateCustomerRouterIpv6Address()

Single IPv6 address + prefix length to be configured on the customer router
interface for this interconnect attachment.

`optional string candidate_customer_router_ipv6_address = 226436653;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearCandidateIpv6Subnets()

    public InterconnectAttachment.Builder clearCandidateIpv6Subnets()

This field is not available.

`repeated string candidate_ipv6_subnets = 70682522;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearCandidateSubnets()

    public InterconnectAttachment.Builder clearCandidateSubnets()

Input only. Up to 16 candidate prefixes that can be used to restrict the allocation
of cloudRouterIpAddress and customerRouterIpAddress for this attachment.
All prefixes must be within link-local address space (169.254.0.0/16) and
must be /29 or shorter (/28, /27, etc). Google will attempt to select an
unused /29 from the supplied candidate prefix(es). The request will fail if
all possible /29s are in use on Google's edge. If not supplied, Google will
randomly select an unused /29 from all of link-local space.

`repeated string candidate_subnets = 237842938;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearCloudRouterIpAddress()

    public InterconnectAttachment.Builder clearCloudRouterIpAddress()

Output only. \[Output Only\] IPv4 address + prefix length to be configured on Cloud Router
Interface for this interconnect attachment.

`optional string cloud_router_ip_address = 287392776;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearCloudRouterIpv6Address()

    public InterconnectAttachment.Builder clearCloudRouterIpv6Address()

Output only. \[Output Only\] IPv6 address + prefix length to be configured on Cloud
Router Interface for this interconnect attachment.

`optional string cloud_router_ipv6_address = 451922376;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearCloudRouterIpv6InterfaceId()

    public InterconnectAttachment.Builder clearCloudRouterIpv6InterfaceId()

This field is not available.

`optional string cloud_router_ipv6_interface_id = 521282701;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearConfigurationConstraints()

    public InterconnectAttachment.Builder clearConfigurationConstraints()

Output only. \[Output Only\] Constraints for this attachment, if any. The attachment does
not work if these constraints are not met.

`
optional .google.cloud.compute.v1.InterconnectAttachmentConfigurationConstraints configuration_constraints = 179681389;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### clearCreationTimestamp()

    public InterconnectAttachment.Builder clearCreationTimestamp()

Output only. \[Output Only\] Creation timestamp inRFC3339
text format.

`optional string creation_timestamp = 30525366;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearCustomerRouterIpAddress()

    public InterconnectAttachment.Builder clearCustomerRouterIpAddress()

Output only. \[Output Only\] IPv4 address + prefix length to be configured on the customer
router subinterface for this interconnect attachment.

`optional string customer_router_ip_address = 332475761;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearCustomerRouterIpv6Address()

    public InterconnectAttachment.Builder clearCustomerRouterIpv6Address()

Output only. \[Output Only\] IPv6 address + prefix length to be configured on the
customer router subinterface for this interconnect attachment.

`optional string customer_router_ipv6_address = 290127089;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearCustomerRouterIpv6InterfaceId()

    public InterconnectAttachment.Builder clearCustomerRouterIpv6InterfaceId()

This field is not available.

`optional string customer_router_ipv6_interface_id = 380994308;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearDataplaneVersion()

    public InterconnectAttachment.Builder clearDataplaneVersion()

Output only. \[Output Only\] Dataplane version for this InterconnectAttachment. This
field is only present for Dataplane version 2 and higher. Absence of this
field in the API output indicates that the Dataplane is version 1.

`optional int32 dataplane_version = 34920075;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearDescription()

    public InterconnectAttachment.Builder clearDescription()

An optional description of this resource.

`optional string description = 422937596;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearEdgeAvailabilityDomain()

    public InterconnectAttachment.Builder clearEdgeAvailabilityDomain()

Input only. Desired availability domain for the attachment. Only available for type
PARTNER, at creation time, and can take one of the following values:

- AVAILABILITY_DOMAIN_ANY
- AVAILABILITY_DOMAIN_1
- AVAILABILITY_DOMAIN_2

For improved reliability, customers should configure a pair of attachments,
one per availability domain. The selected availability domain will be
provided to the Partner via the pairing key, so that the provisioned
circuit will lie in the specified domain. If not specified, the value will
default to AVAILABILITY_DOMAIN_ANY.
Check the EdgeAvailabilityDomain enum for the list of possible values.

`optional string edge_availability_domain = 71289510;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearEncryption()

    public InterconnectAttachment.Builder clearEncryption()

Indicates the user-supplied encryption option of this VLAN attachment
(interconnectAttachment). Can only be specified at attachment creation
for PARTNER or DEDICATED attachments.
Possible values are:

- NONE - This is the default value, which means that the VLAN attachment carries unencrypted traffic. VMs are able to send traffic to, or receive traffic from, such a VLAN attachment.
- IPSEC - The VLAN attachment carries only encrypted traffic that is encrypted by an IPsec device, such as an HA VPN gateway or third-party IPsec VPN. VMs cannot directly send traffic to, or receive traffic from, such a VLAN attachment. To use *HA VPN over Cloud
  Interconnect*, the VLAN attachment must be created with this option. Check the Encryption enum for the list of possible values.

`optional string encryption = 97980291;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearGoogleReferenceId()

    public InterconnectAttachment.Builder clearGoogleReferenceId()

Output only. \[Output Only\] Google reference ID, to be used when raising support tickets
with Google or otherwise to debug backend connectivity issues.
\[Deprecated\] This field is not used.

`optional string google_reference_id = 534944469;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearId()

    public InterconnectAttachment.Builder clearId()

Output only. \[Output Only\] The unique identifier for the resource. This identifier is
defined by the server.

`optional uint64 id = 3355;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearInterconnect()

    public InterconnectAttachment.Builder clearInterconnect()

URL of the underlying Interconnect object that this attachment's traffic
will traverse through.

`optional string interconnect = 224601230;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearIpsecInternalAddresses()

    public InterconnectAttachment.Builder clearIpsecInternalAddresses()

A list of URLs of addresses that have been reserved for the VLAN
attachment. Used only for the VLAN attachment that has the encryption
option as IPSEC. The addresses must be regional internal IP address ranges.
When creating an HA VPN gateway over the VLAN attachment, if the attachment
is configured to use a regional internal IP address, then the VPN gateway's
IP address is allocated from the IP address range specified here. For
example, if the HA VPN gateway's interface 0 is paired to this VLAN
attachment, then a regional internal IP address for the VPN gateway
interface 0 will be allocated from the IP address specified for this
VLAN attachment.
If this field is not specified when creating the VLAN attachment, then
later on when creating an HA VPN gateway on this VLAN attachment, the HA
VPN gateway's IP address is allocated from the regional external IP address
pool.

`repeated string ipsec_internal_addresses = 407648565;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearKind()

    public InterconnectAttachment.Builder clearKind()

Output only. \[Output Only\] Type of the resource. Alwayscompute#interconnectAttachment for interconnect attachments.

`optional string kind = 3292052;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearL2Forwarding()

    public InterconnectAttachment.Builder clearL2Forwarding()

L2 Interconnect Attachment related config. This field is required if the
type is L2_DEDICATED.

The configuration specifies how VLAN tags (like dot1q, qinq, or dot1ad)
within L2 packets are mapped to the destination appliances IP addresses.
The packet is then encapsulated with the appliance IP address and sent to
the edge appliance.

`
optional .google.cloud.compute.v1.InterconnectAttachmentL2Forwarding l2_forwarding = 84784022;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### clearLabelFingerprint()

    public InterconnectAttachment.Builder clearLabelFingerprint()

A fingerprint for the labels being applied to this InterconnectAttachment,
which is essentially a hash of the labels set used for optimistic locking.
The fingerprint is initially generated by Compute Engine and changes after
every request to modify or update labels. You must always provide an
up-to-date fingerprint hash in order to update or change labels,
otherwise the request will fail with error412 conditionNotMet.

To see the latest fingerprint, make a get() request to
retrieve an InterconnectAttachment.

`optional string label_fingerprint = 178124825;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearLabels()

    public InterconnectAttachment.Builder clearLabels()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### clearMtu()

    public InterconnectAttachment.Builder clearMtu()

Maximum Transmission Unit (MTU), in bytes, of packets passing through this
interconnect attachment.
Valid values are 1440, 1460, 1500, and 8896. If not specified,
the value will default to 1440.

`optional int32 mtu = 108462;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearName()

    public InterconnectAttachment.Builder clearName()

Name of the resource. Provided by the client when the resource is created.
The name must be 1-63 characters long, and comply withRFC1035.
Specifically, the name must be 1-63 characters long and match the regular
expression `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/[-a-z0-9]*[a-z0-9]?` which means the first
character must be a lowercase letter, and all following characters must
be a dash, lowercase letter, or digit, except the last character, which
cannot be a dash.

`optional string name = 3373707;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearOperationalStatus()

    public InterconnectAttachment.Builder clearOperationalStatus()

Output only. \[Output Only\] The current status of whether or not this interconnect
attachment is functional, which can take one of the following values:

- OS_ACTIVE: The attachment has been turned up and is ready to use.
- OS_UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete. Check the OperationalStatus enum for the list of possible values.

`optional string operational_status = 201070847;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearPairingKey()

    public InterconnectAttachment.Builder clearPairingKey()

\[Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not
present for DEDICATED\].
The opaque identifier of a PARTNER attachment used to initiate
provisioning with a selected partner.
Of the form "XXXXX/region/domain"

`optional string pairing_key = 439695464;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearParams()

    public InterconnectAttachment.Builder clearParams()

Input only. \[Input Only\] Additional params passed with the request, but not persisted
as part of resource payload.

`optional .google.cloud.compute.v1.InterconnectAttachmentParams params = 78313862;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### clearPartnerAsn()

    public InterconnectAttachment.Builder clearPartnerAsn()

Optional BGP ASN for the router supplied by a Layer 3 Partner if they
configured BGP on behalf of the customer.
Output only for PARTNER type, input only for PARTNER_PROVIDER, not
available for DEDICATED.

`optional int64 partner_asn = 438166149;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearPartnerMetadata()

    public InterconnectAttachment.Builder clearPartnerMetadata()

Informational metadata about Partner attachments from Partners to display
to customers.
Output only for PARTNER type, mutable for PARTNER_PROVIDER, not
available for DEDICATED.

`
optional .google.cloud.compute.v1.InterconnectAttachmentPartnerMetadata partner_metadata = 65908934;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### clearPrivateInterconnectInfo()

    public InterconnectAttachment.Builder clearPrivateInterconnectInfo()

Output only. \[Output Only\] Information specific to an InterconnectAttachment.
This property is populated if the interconnect that
this is attached to is of type DEDICATED.

`
optional .google.cloud.compute.v1.InterconnectAttachmentPrivateInfo private_interconnect_info = 237270531;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### clearRegion()

    public InterconnectAttachment.Builder clearRegion()

Output only. \[Output Only\] URL of the region where the regional interconnect attachment
resides.
You must specify this field as part of the HTTP request URL. It is
not settable as a field in the request body.

`optional string region = 138946292;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearRemoteService()

    public InterconnectAttachment.Builder clearRemoteService()

Output only. \[Output Only\]
If the attachment is on a Cross-Cloud Interconnect connection, this field
contains the interconnect's remote location service provider. Example
values: "Amazon Web Services" "Microsoft Azure".

The field is set only for attachments on Cross-Cloud Interconnect
connections. Its value is copied from the InterconnectRemoteLocation
remoteService field.

`optional string remote_service = 391954364;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearRouter()

    public InterconnectAttachment.Builder clearRouter()

URL of the Cloud Router to be used for dynamic routing. This router must be
in the same region as this InterconnectAttachment. The
InterconnectAttachment will automatically connect the Interconnect to the
network \& region within which the Cloud Router is configured.

`optional string router = 148608841;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearSatisfiesPzs()

    public InterconnectAttachment.Builder clearSatisfiesPzs()

Output only. \[Output Only\] Reserved for future use.

`optional bool satisfies_pzs = 480964267;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearSelfLink()

    public InterconnectAttachment.Builder clearSelfLink()

Output only. \[Output Only\] Server-defined URL for the resource.

`optional string self_link = 456214797;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearStackType()

    public InterconnectAttachment.Builder clearStackType()

The stack type for this interconnect attachment to identify whether the
IPv6 feature is enabled or not. If not specified, IPV4_ONLY
will be used.

This field can be both set at interconnect attachments creation and
update interconnect attachment operations.
Check the StackType enum for the list of possible values.

`optional string stack_type = 425908881;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearState()

    public InterconnectAttachment.Builder clearState()

Output only. \[Output Only\] The current state of this attachment's functionality.
Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE,
PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values
PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used
for only PARTNER and PARTNER_PROVIDER interconnect attachments.
This state can take one of the following values:

- ACTIVE: The attachment has been turned up and is ready to use.
- UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete.
- PENDING_PARTNER: A newly-created PARTNER attachment that has not yet been configured on the Partner side.
- PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of provisioning after a PARTNER_PROVIDER attachment was created that references it.
- PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting for a customer to activate it.
- DEFUNCT: The attachment was deleted externally and is no longer functional. This could be because the associated Interconnect was removed, or because the other side of a Partner attachment was deleted. Check the State enum for the list of possible values.

`optional string state = 109757585;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearSubnetLength()

    public InterconnectAttachment.Builder clearSubnetLength()

Input only. Length of the IPv4 subnet mask.
Allowed values:

- 29 (default)
- 30

  The default value is 29, except for Cross-Cloud Interconnect
  connections that use an InterconnectRemoteLocation with a
  constraints.subnetLengthRange.min equal to 30. For example,
  connections that use an Azure remote location fall into this
  category. In these cases, the default value is 30, and requesting
  29 returns an error.

  Where both 29 and 30 are allowed, 29 is preferred, because it gives
  Google Cloud Support more debugging visibility.

`optional int32 subnet_length = 279831048;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearType()

    public InterconnectAttachment.Builder clearType()

The type of interconnect attachment this is, which can take one of the
following values:

- DEDICATED: an attachment to a Dedicated Interconnect.
- PARTNER: an attachment to a Partner Interconnect, created by the customer.
- PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by
  the partner.

- L2_DEDICATED: a L2 attachment to a Dedicated Interconnect.
  Check the Type enum for the list of possible values.

`optional string type = 3575610;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### clearVlanTag8021Q()

    public InterconnectAttachment.Builder clearVlanTag8021Q()

The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4093.
Only specified at creation time.

`optional int32 vlan_tag8021q = 119927836;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### containsLabels(String key)

    public boolean containsLabels(String key)

Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035.
Label values may be empty.

`map<string, string> labels = 500195327;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getAdminEnabled()

    public boolean getAdminEnabled()

Determines whether this Attachment will carry packets.
Not present for PARTNER_PROVIDER.

`optional bool admin_enabled = 445675089;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The adminEnabled. |

### getAttachmentGroup()

    public String getAttachmentGroup()

Output only. \[Output Only\] URL of the AttachmentGroup that includes this Attachment.

`optional string attachment_group = 63442019;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The attachmentGroup. |

### getAttachmentGroupBytes()

    public ByteString getAttachmentGroupBytes()

Output only. \[Output Only\] URL of the AttachmentGroup that includes this Attachment.

`optional string attachment_group = 63442019;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for attachmentGroup. |

### getBandwidth()

    public String getBandwidth()

Provisioned bandwidth capacity for the interconnect attachment. For
attachments of type DEDICATED, the user can set the bandwidth.
For attachments of type PARTNER, the Google Partner that is operating
the interconnect must set the bandwidth.
Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED,
and can take one of the following values:

- BPS_50M: 50 Mbit/s
- BPS_100M: 100 Mbit/s
- BPS_200M: 200 Mbit/s
- BPS_300M: 300 Mbit/s
- BPS_400M: 400 Mbit/s
- BPS_500M: 500 Mbit/s
- BPS_1G: 1 Gbit/s
- BPS_2G: 2 Gbit/s
- BPS_5G: 5 Gbit/s
- BPS_10G: 10 Gbit/s
- BPS_20G: 20 Gbit/s
- BPS_50G: 50 Gbit/s
- BPS_100G: 100 Gbit/s
- BPS_400G: 400 Gbit/s Check the Bandwidth enum for the list of possible values.

`optional string bandwidth = 181715121;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The bandwidth. |

### getBandwidthBytes()

    public ByteString getBandwidthBytes()

Provisioned bandwidth capacity for the interconnect attachment. For
attachments of type DEDICATED, the user can set the bandwidth.
For attachments of type PARTNER, the Google Partner that is operating
the interconnect must set the bandwidth.
Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED,
and can take one of the following values:

- BPS_50M: 50 Mbit/s
- BPS_100M: 100 Mbit/s
- BPS_200M: 200 Mbit/s
- BPS_300M: 300 Mbit/s
- BPS_400M: 400 Mbit/s
- BPS_500M: 500 Mbit/s
- BPS_1G: 1 Gbit/s
- BPS_2G: 2 Gbit/s
- BPS_5G: 5 Gbit/s
- BPS_10G: 10 Gbit/s
- BPS_20G: 20 Gbit/s
- BPS_50G: 50 Gbit/s
- BPS_100G: 100 Gbit/s
- BPS_400G: 400 Gbit/s Check the Bandwidth enum for the list of possible values.

`optional string bandwidth = 181715121;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for bandwidth. |

### getCandidateCloudRouterIpAddress()

    public String getCandidateCloudRouterIpAddress()

Single IPv4 address + prefix length to be configured on the cloud router
interface for this interconnect attachment.

- Both candidate_cloud_router_ip_address and candidate_customer_router_ip_address fields must be set or both must be unset.
- Prefix length of both candidate_cloud_router_ip_address and candidate_customer_router_ip_address must be the same.
- Max prefix length is 31.

`optional string candidate_cloud_router_ip_address = 311379276;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The candidateCloudRouterIpAddress. |

### getCandidateCloudRouterIpAddressBytes()

    public ByteString getCandidateCloudRouterIpAddressBytes()

Single IPv4 address + prefix length to be configured on the cloud router
interface for this interconnect attachment.

- Both candidate_cloud_router_ip_address and candidate_customer_router_ip_address fields must be set or both must be unset.
- Prefix length of both candidate_cloud_router_ip_address and candidate_customer_router_ip_address must be the same.
- Max prefix length is 31.

`optional string candidate_cloud_router_ip_address = 311379276;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for candidateCloudRouterIpAddress. |

### getCandidateCloudRouterIpv6Address()

    public String getCandidateCloudRouterIpv6Address()

Single IPv6 address + prefix length to be configured on the cloud router
interface for this interconnect attachment.

- Both candidate_cloud_router_ipv6_address and candidate_customer_router_ipv6_address fields must be set or both must be unset.
- Prefix length of both candidate_cloud_router_ipv6_address and candidate_customer_router_ipv6_address must be the same.
- Max prefix length is 126.

`optional string candidate_cloud_router_ipv6_address = 417499660;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The candidateCloudRouterIpv6Address. |

### getCandidateCloudRouterIpv6AddressBytes()

    public ByteString getCandidateCloudRouterIpv6AddressBytes()

Single IPv6 address + prefix length to be configured on the cloud router
interface for this interconnect attachment.

- Both candidate_cloud_router_ipv6_address and candidate_customer_router_ipv6_address fields must be set or both must be unset.
- Prefix length of both candidate_cloud_router_ipv6_address and candidate_customer_router_ipv6_address must be the same.
- Max prefix length is 126.

`optional string candidate_cloud_router_ipv6_address = 417499660;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for candidateCloudRouterIpv6Address. |

### getCandidateCustomerRouterIpAddress()

    public String getCandidateCustomerRouterIpAddress()

Single IPv4 address + prefix length to be configured on the customer router
interface for this interconnect attachment.

`optional string candidate_customer_router_ip_address = 339113389;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The candidateCustomerRouterIpAddress. |

### getCandidateCustomerRouterIpAddressBytes()

    public ByteString getCandidateCustomerRouterIpAddressBytes()

Single IPv4 address + prefix length to be configured on the customer router
interface for this interconnect attachment.

`optional string candidate_customer_router_ip_address = 339113389;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for candidateCustomerRouterIpAddress. |

### getCandidateCustomerRouterIpv6Address()

    public String getCandidateCustomerRouterIpv6Address()

Single IPv6 address + prefix length to be configured on the customer router
interface for this interconnect attachment.

`optional string candidate_customer_router_ipv6_address = 226436653;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The candidateCustomerRouterIpv6Address. |

### getCandidateCustomerRouterIpv6AddressBytes()

    public ByteString getCandidateCustomerRouterIpv6AddressBytes()

Single IPv6 address + prefix length to be configured on the customer router
interface for this interconnect attachment.

`optional string candidate_customer_router_ipv6_address = 226436653;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for candidateCustomerRouterIpv6Address. |

### getCandidateIpv6Subnets(int index)

    public String getCandidateIpv6Subnets(int index)

This field is not available.

`repeated string candidate_ipv6_subnets = 70682522;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The candidateIpv6Subnets at the given index. |

### getCandidateIpv6SubnetsBytes(int index)

    public ByteString getCandidateIpv6SubnetsBytes(int index)

This field is not available.

`repeated string candidate_ipv6_subnets = 70682522;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the candidateIpv6Subnets at the given index. |

### getCandidateIpv6SubnetsCount()

    public int getCandidateIpv6SubnetsCount()

This field is not available.

`repeated string candidate_ipv6_subnets = 70682522;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of candidateIpv6Subnets. |

### getCandidateIpv6SubnetsList()

    public ProtocolStringList getCandidateIpv6SubnetsList()

This field is not available.

`repeated string candidate_ipv6_subnets = 70682522;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ProtocolStringList.html` | A list containing the candidateIpv6Subnets. |

### getCandidateSubnets(int index)

    public String getCandidateSubnets(int index)

Input only. Up to 16 candidate prefixes that can be used to restrict the allocation
of cloudRouterIpAddress and customerRouterIpAddress for this attachment.
All prefixes must be within link-local address space (169.254.0.0/16) and
must be /29 or shorter (/28, /27, etc). Google will attempt to select an
unused /29 from the supplied candidate prefix(es). The request will fail if
all possible /29s are in use on Google's edge. If not supplied, Google will
randomly select an unused /29 from all of link-local space.

`repeated string candidate_subnets = 237842938;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The candidateSubnets at the given index. |

### getCandidateSubnetsBytes(int index)

    public ByteString getCandidateSubnetsBytes(int index)

Input only. Up to 16 candidate prefixes that can be used to restrict the allocation
of cloudRouterIpAddress and customerRouterIpAddress for this attachment.
All prefixes must be within link-local address space (169.254.0.0/16) and
must be /29 or shorter (/28, /27, etc). Google will attempt to select an
unused /29 from the supplied candidate prefix(es). The request will fail if
all possible /29s are in use on Google's edge. If not supplied, Google will
randomly select an unused /29 from all of link-local space.

`repeated string candidate_subnets = 237842938;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the candidateSubnets at the given index. |

### getCandidateSubnetsCount()

    public int getCandidateSubnetsCount()

Input only. Up to 16 candidate prefixes that can be used to restrict the allocation
of cloudRouterIpAddress and customerRouterIpAddress for this attachment.
All prefixes must be within link-local address space (169.254.0.0/16) and
must be /29 or shorter (/28, /27, etc). Google will attempt to select an
unused /29 from the supplied candidate prefix(es). The request will fail if
all possible /29s are in use on Google's edge. If not supplied, Google will
randomly select an unused /29 from all of link-local space.

`repeated string candidate_subnets = 237842938;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of candidateSubnets. |

### getCandidateSubnetsList()

    public ProtocolStringList getCandidateSubnetsList()

Input only. Up to 16 candidate prefixes that can be used to restrict the allocation
of cloudRouterIpAddress and customerRouterIpAddress for this attachment.
All prefixes must be within link-local address space (169.254.0.0/16) and
must be /29 or shorter (/28, /27, etc). Google will attempt to select an
unused /29 from the supplied candidate prefix(es). The request will fail if
all possible /29s are in use on Google's edge. If not supplied, Google will
randomly select an unused /29 from all of link-local space.

`repeated string candidate_subnets = 237842938;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ProtocolStringList.html` | A list containing the candidateSubnets. |

### getCloudRouterIpAddress()

    public String getCloudRouterIpAddress()

Output only. \[Output Only\] IPv4 address + prefix length to be configured on Cloud Router
Interface for this interconnect attachment.

`optional string cloud_router_ip_address = 287392776;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The cloudRouterIpAddress. |

### getCloudRouterIpAddressBytes()

    public ByteString getCloudRouterIpAddressBytes()

Output only. \[Output Only\] IPv4 address + prefix length to be configured on Cloud Router
Interface for this interconnect attachment.

`optional string cloud_router_ip_address = 287392776;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for cloudRouterIpAddress. |

### getCloudRouterIpv6Address()

    public String getCloudRouterIpv6Address()

Output only. \[Output Only\] IPv6 address + prefix length to be configured on Cloud
Router Interface for this interconnect attachment.

`optional string cloud_router_ipv6_address = 451922376;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The cloudRouterIpv6Address. |

### getCloudRouterIpv6AddressBytes()

    public ByteString getCloudRouterIpv6AddressBytes()

Output only. \[Output Only\] IPv6 address + prefix length to be configured on Cloud
Router Interface for this interconnect attachment.

`optional string cloud_router_ipv6_address = 451922376;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for cloudRouterIpv6Address. |

### getCloudRouterIpv6InterfaceId()

    public String getCloudRouterIpv6InterfaceId()

This field is not available.

`optional string cloud_router_ipv6_interface_id = 521282701;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The cloudRouterIpv6InterfaceId. |

### getCloudRouterIpv6InterfaceIdBytes()

    public ByteString getCloudRouterIpv6InterfaceIdBytes()

This field is not available.

`optional string cloud_router_ipv6_interface_id = 521282701;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for cloudRouterIpv6InterfaceId. |

### getConfigurationConstraints()

    public InterconnectAttachmentConfigurationConstraints getConfigurationConstraints()

Output only. \[Output Only\] Constraints for this attachment, if any. The attachment does
not work if these constraints are not met.

`
optional .google.cloud.compute.v1.InterconnectAttachmentConfigurationConstraints configuration_constraints = 179681389;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentConfigurationConstraints` | The configurationConstraints. |

### getConfigurationConstraintsBuilder()

    public InterconnectAttachmentConfigurationConstraints.Builder getConfigurationConstraintsBuilder()

Output only. \[Output Only\] Constraints for this attachment, if any. The attachment does
not work if these constraints are not met.

`
optional .google.cloud.compute.v1.InterconnectAttachmentConfigurationConstraints configuration_constraints = 179681389;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentConfigurationConstraints.Builder` |   |

### getConfigurationConstraintsOrBuilder()

    public InterconnectAttachmentConfigurationConstraintsOrBuilder getConfigurationConstraintsOrBuilder()

Output only. \[Output Only\] Constraints for this attachment, if any. The attachment does
not work if these constraints are not met.

`
optional .google.cloud.compute.v1.InterconnectAttachmentConfigurationConstraints configuration_constraints = 179681389;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentConfigurationConstraintsOrBuilder` |   |

### getCreationTimestamp()

    public String getCreationTimestamp()

Output only. \[Output Only\] Creation timestamp inRFC3339
text format.

`optional string creation_timestamp = 30525366;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The creationTimestamp. |

### getCreationTimestampBytes()

    public ByteString getCreationTimestampBytes()

Output only. \[Output Only\] Creation timestamp inRFC3339
text format.

`optional string creation_timestamp = 30525366;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for creationTimestamp. |

### getCustomerRouterIpAddress()

    public String getCustomerRouterIpAddress()

Output only. \[Output Only\] IPv4 address + prefix length to be configured on the customer
router subinterface for this interconnect attachment.

`optional string customer_router_ip_address = 332475761;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The customerRouterIpAddress. |

### getCustomerRouterIpAddressBytes()

    public ByteString getCustomerRouterIpAddressBytes()

Output only. \[Output Only\] IPv4 address + prefix length to be configured on the customer
router subinterface for this interconnect attachment.

`optional string customer_router_ip_address = 332475761;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for customerRouterIpAddress. |

### getCustomerRouterIpv6Address()

    public String getCustomerRouterIpv6Address()

Output only. \[Output Only\] IPv6 address + prefix length to be configured on the
customer router subinterface for this interconnect attachment.

`optional string customer_router_ipv6_address = 290127089;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The customerRouterIpv6Address. |

### getCustomerRouterIpv6AddressBytes()

    public ByteString getCustomerRouterIpv6AddressBytes()

Output only. \[Output Only\] IPv6 address + prefix length to be configured on the
customer router subinterface for this interconnect attachment.

`optional string customer_router_ipv6_address = 290127089;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for customerRouterIpv6Address. |

### getCustomerRouterIpv6InterfaceId()

    public String getCustomerRouterIpv6InterfaceId()

This field is not available.

`optional string customer_router_ipv6_interface_id = 380994308;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The customerRouterIpv6InterfaceId. |

### getCustomerRouterIpv6InterfaceIdBytes()

    public ByteString getCustomerRouterIpv6InterfaceIdBytes()

This field is not available.

`optional string customer_router_ipv6_interface_id = 380994308;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for customerRouterIpv6InterfaceId. |

### getDataplaneVersion()

    public int getDataplaneVersion()

Output only. \[Output Only\] Dataplane version for this InterconnectAttachment. This
field is only present for Dataplane version 2 and higher. Absence of this
field in the API output indicates that the Dataplane is version 1.

`optional int32 dataplane_version = 34920075;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The dataplaneVersion. |

### getDefaultInstanceForType()

    public InterconnectAttachment getDefaultInstanceForType()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment` |   |

### getDescription()

    public String getDescription()

An optional description of this resource.

`optional string description = 422937596;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The description. |

### getDescriptionBytes()

    public ByteString getDescriptionBytes()

An optional description of this resource.

`optional string description = 422937596;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for description. |

### getDescriptorForType()

    public Descriptors.Descriptor getDescriptorForType()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Descriptors.Descriptor.html` |   |

**Overrides** [GeneratedMessage.Builder\<BuilderType\>.getDescriptorForType()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getDescriptorForType__)

### getEdgeAvailabilityDomain()

    public String getEdgeAvailabilityDomain()

Input only. Desired availability domain for the attachment. Only available for type
PARTNER, at creation time, and can take one of the following values:

- AVAILABILITY_DOMAIN_ANY
- AVAILABILITY_DOMAIN_1
- AVAILABILITY_DOMAIN_2

For improved reliability, customers should configure a pair of attachments,
one per availability domain. The selected availability domain will be
provided to the Partner via the pairing key, so that the provisioned
circuit will lie in the specified domain. If not specified, the value will
default to AVAILABILITY_DOMAIN_ANY.
Check the EdgeAvailabilityDomain enum for the list of possible values.

`optional string edge_availability_domain = 71289510;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The edgeAvailabilityDomain. |

### getEdgeAvailabilityDomainBytes()

    public ByteString getEdgeAvailabilityDomainBytes()

Input only. Desired availability domain for the attachment. Only available for type
PARTNER, at creation time, and can take one of the following values:

- AVAILABILITY_DOMAIN_ANY
- AVAILABILITY_DOMAIN_1
- AVAILABILITY_DOMAIN_2

For improved reliability, customers should configure a pair of attachments,
one per availability domain. The selected availability domain will be
provided to the Partner via the pairing key, so that the provisioned
circuit will lie in the specified domain. If not specified, the value will
default to AVAILABILITY_DOMAIN_ANY.
Check the EdgeAvailabilityDomain enum for the list of possible values.

`optional string edge_availability_domain = 71289510;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for edgeAvailabilityDomain. |

### getEncryption()

    public String getEncryption()

Indicates the user-supplied encryption option of this VLAN attachment
(interconnectAttachment). Can only be specified at attachment creation
for PARTNER or DEDICATED attachments.
Possible values are:

- NONE - This is the default value, which means that the VLAN attachment carries unencrypted traffic. VMs are able to send traffic to, or receive traffic from, such a VLAN attachment.
- IPSEC - The VLAN attachment carries only encrypted traffic that is encrypted by an IPsec device, such as an HA VPN gateway or third-party IPsec VPN. VMs cannot directly send traffic to, or receive traffic from, such a VLAN attachment. To use *HA VPN over Cloud
  Interconnect*, the VLAN attachment must be created with this option. Check the Encryption enum for the list of possible values.

`optional string encryption = 97980291;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The encryption. |

### getEncryptionBytes()

    public ByteString getEncryptionBytes()

Indicates the user-supplied encryption option of this VLAN attachment
(interconnectAttachment). Can only be specified at attachment creation
for PARTNER or DEDICATED attachments.
Possible values are:

- NONE - This is the default value, which means that the VLAN attachment carries unencrypted traffic. VMs are able to send traffic to, or receive traffic from, such a VLAN attachment.
- IPSEC - The VLAN attachment carries only encrypted traffic that is encrypted by an IPsec device, such as an HA VPN gateway or third-party IPsec VPN. VMs cannot directly send traffic to, or receive traffic from, such a VLAN attachment. To use *HA VPN over Cloud
  Interconnect*, the VLAN attachment must be created with this option. Check the Encryption enum for the list of possible values.

`optional string encryption = 97980291;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for encryption. |

### getGoogleReferenceId()

    public String getGoogleReferenceId()

Output only. \[Output Only\] Google reference ID, to be used when raising support tickets
with Google or otherwise to debug backend connectivity issues.
\[Deprecated\] This field is not used.

`optional string google_reference_id = 534944469;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The googleReferenceId. |

### getGoogleReferenceIdBytes()

    public ByteString getGoogleReferenceIdBytes()

Output only. \[Output Only\] Google reference ID, to be used when raising support tickets
with Google or otherwise to debug backend connectivity issues.
\[Deprecated\] This field is not used.

`optional string google_reference_id = 534944469;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for googleReferenceId. |

### getId()

    public long getId()

Output only. \[Output Only\] The unique identifier for the resource. This identifier is
defined by the server.

`optional uint64 id = 3355;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The id. |

### getInterconnect()

    public String getInterconnect()

URL of the underlying Interconnect object that this attachment's traffic
will traverse through.

`optional string interconnect = 224601230;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The interconnect. |

### getInterconnectBytes()

    public ByteString getInterconnectBytes()

URL of the underlying Interconnect object that this attachment's traffic
will traverse through.

`optional string interconnect = 224601230;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for interconnect. |

### getIpsecInternalAddresses(int index)

    public String getIpsecInternalAddresses(int index)

A list of URLs of addresses that have been reserved for the VLAN
attachment. Used only for the VLAN attachment that has the encryption
option as IPSEC. The addresses must be regional internal IP address ranges.
When creating an HA VPN gateway over the VLAN attachment, if the attachment
is configured to use a regional internal IP address, then the VPN gateway's
IP address is allocated from the IP address range specified here. For
example, if the HA VPN gateway's interface 0 is paired to this VLAN
attachment, then a regional internal IP address for the VPN gateway
interface 0 will be allocated from the IP address specified for this
VLAN attachment.
If this field is not specified when creating the VLAN attachment, then
later on when creating an HA VPN gateway on this VLAN attachment, the HA
VPN gateway's IP address is allocated from the regional external IP address
pool.

`repeated string ipsec_internal_addresses = 407648565;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The ipsecInternalAddresses at the given index. |

### getIpsecInternalAddressesBytes(int index)

    public ByteString getIpsecInternalAddressesBytes(int index)

A list of URLs of addresses that have been reserved for the VLAN
attachment. Used only for the VLAN attachment that has the encryption
option as IPSEC. The addresses must be regional internal IP address ranges.
When creating an HA VPN gateway over the VLAN attachment, if the attachment
is configured to use a regional internal IP address, then the VPN gateway's
IP address is allocated from the IP address range specified here. For
example, if the HA VPN gateway's interface 0 is paired to this VLAN
attachment, then a regional internal IP address for the VPN gateway
interface 0 will be allocated from the IP address specified for this
VLAN attachment.
If this field is not specified when creating the VLAN attachment, then
later on when creating an HA VPN gateway on this VLAN attachment, the HA
VPN gateway's IP address is allocated from the regional external IP address
pool.

`repeated string ipsec_internal_addresses = 407648565;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the ipsecInternalAddresses at the given index. |

### getIpsecInternalAddressesCount()

    public int getIpsecInternalAddressesCount()

A list of URLs of addresses that have been reserved for the VLAN
attachment. Used only for the VLAN attachment that has the encryption
option as IPSEC. The addresses must be regional internal IP address ranges.
When creating an HA VPN gateway over the VLAN attachment, if the attachment
is configured to use a regional internal IP address, then the VPN gateway's
IP address is allocated from the IP address range specified here. For
example, if the HA VPN gateway's interface 0 is paired to this VLAN
attachment, then a regional internal IP address for the VPN gateway
interface 0 will be allocated from the IP address specified for this
VLAN attachment.
If this field is not specified when creating the VLAN attachment, then
later on when creating an HA VPN gateway on this VLAN attachment, the HA
VPN gateway's IP address is allocated from the regional external IP address
pool.

`repeated string ipsec_internal_addresses = 407648565;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of ipsecInternalAddresses. |

### getIpsecInternalAddressesList()

    public ProtocolStringList getIpsecInternalAddressesList()

A list of URLs of addresses that have been reserved for the VLAN
attachment. Used only for the VLAN attachment that has the encryption
option as IPSEC. The addresses must be regional internal IP address ranges.
When creating an HA VPN gateway over the VLAN attachment, if the attachment
is configured to use a regional internal IP address, then the VPN gateway's
IP address is allocated from the IP address range specified here. For
example, if the HA VPN gateway's interface 0 is paired to this VLAN
attachment, then a regional internal IP address for the VPN gateway
interface 0 will be allocated from the IP address specified for this
VLAN attachment.
If this field is not specified when creating the VLAN attachment, then
later on when creating an HA VPN gateway on this VLAN attachment, the HA
VPN gateway's IP address is allocated from the regional external IP address
pool.

`repeated string ipsec_internal_addresses = 407648565;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ProtocolStringList.html` | A list containing the ipsecInternalAddresses. |

### getKind()

    public String getKind()

Output only. \[Output Only\] Type of the resource. Alwayscompute#interconnectAttachment for interconnect attachments.

`optional string kind = 3292052;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The kind. |

### getKindBytes()

    public ByteString getKindBytes()

Output only. \[Output Only\] Type of the resource. Alwayscompute#interconnectAttachment for interconnect attachments.

`optional string kind = 3292052;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for kind. |

### getL2Forwarding()

    public InterconnectAttachmentL2Forwarding getL2Forwarding()

L2 Interconnect Attachment related config. This field is required if the
type is L2_DEDICATED.

The configuration specifies how VLAN tags (like dot1q, qinq, or dot1ad)
within L2 packets are mapped to the destination appliances IP addresses.
The packet is then encapsulated with the appliance IP address and sent to
the edge appliance.

`
optional .google.cloud.compute.v1.InterconnectAttachmentL2Forwarding l2_forwarding = 84784022;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentL2Forwarding` | The l2Forwarding. |

### getL2ForwardingBuilder()

    public InterconnectAttachmentL2Forwarding.Builder getL2ForwardingBuilder()

L2 Interconnect Attachment related config. This field is required if the
type is L2_DEDICATED.

The configuration specifies how VLAN tags (like dot1q, qinq, or dot1ad)
within L2 packets are mapped to the destination appliances IP addresses.
The packet is then encapsulated with the appliance IP address and sent to
the edge appliance.

`
optional .google.cloud.compute.v1.InterconnectAttachmentL2Forwarding l2_forwarding = 84784022;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentL2Forwarding.Builder` |   |

### getL2ForwardingOrBuilder()

    public InterconnectAttachmentL2ForwardingOrBuilder getL2ForwardingOrBuilder()

L2 Interconnect Attachment related config. This field is required if the
type is L2_DEDICATED.

The configuration specifies how VLAN tags (like dot1q, qinq, or dot1ad)
within L2 packets are mapped to the destination appliances IP addresses.
The packet is then encapsulated with the appliance IP address and sent to
the edge appliance.

`
optional .google.cloud.compute.v1.InterconnectAttachmentL2Forwarding l2_forwarding = 84784022;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentL2ForwardingOrBuilder` |   |

### getLabelFingerprint()

    public String getLabelFingerprint()

A fingerprint for the labels being applied to this InterconnectAttachment,
which is essentially a hash of the labels set used for optimistic locking.
The fingerprint is initially generated by Compute Engine and changes after
every request to modify or update labels. You must always provide an
up-to-date fingerprint hash in order to update or change labels,
otherwise the request will fail with error412 conditionNotMet.

To see the latest fingerprint, make a get() request to
retrieve an InterconnectAttachment.

`optional string label_fingerprint = 178124825;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The labelFingerprint. |

### getLabelFingerprintBytes()

    public ByteString getLabelFingerprintBytes()

A fingerprint for the labels being applied to this InterconnectAttachment,
which is essentially a hash of the labels set used for optimistic locking.
The fingerprint is initially generated by Compute Engine and changes after
every request to modify or update labels. You must always provide an
up-to-date fingerprint hash in order to update or change labels,
otherwise the request will fail with error412 conditionNotMet.

To see the latest fingerprint, make a get() request to
retrieve an InterconnectAttachment.

`optional string label_fingerprint = 178124825;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for labelFingerprint. |

### getLabels() (deprecated)

    public Map<String,String> getLabels()

Use [#getLabelsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder#com_google_cloud_compute_v1_InterconnectAttachment_Builder_getLabelsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getLabelsCount()

    public int getLabelsCount()

Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035.
Label values may be empty.

`map<string, string> labels = 500195327;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getLabelsMap()

    public Map<String,String> getLabelsMap()

Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035.
Label values may be empty.

`map<string, string> labels = 500195327;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getLabelsOrDefault(String key, String defaultValue)

    public String getLabelsOrDefault(String key, String defaultValue)

Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035.
Label values may be empty.

`map<string, string> labels = 500195327;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getLabelsOrThrow(String key)

    public String getLabelsOrThrow(String key)

Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035.
Label values may be empty.

`map<string, string> labels = 500195327;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getMtu()

    public int getMtu()

Maximum Transmission Unit (MTU), in bytes, of packets passing through this
interconnect attachment.
Valid values are 1440, 1460, 1500, and 8896. If not specified,
the value will default to 1440.

`optional int32 mtu = 108462;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The mtu. |

### getMutableLabels() (deprecated)

    public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getName()

    public String getName()

Name of the resource. Provided by the client when the resource is created.
The name must be 1-63 characters long, and comply withRFC1035.
Specifically, the name must be 1-63 characters long and match the regular
expression `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/[-a-z0-9]*[a-z0-9]?` which means the first
character must be a lowercase letter, and all following characters must
be a dash, lowercase letter, or digit, except the last character, which
cannot be a dash.

`optional string name = 3373707;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public ByteString getNameBytes()

Name of the resource. Provided by the client when the resource is created.
The name must be 1-63 characters long, and comply withRFC1035.
Specifically, the name must be 1-63 characters long and match the regular
expression `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/[-a-z0-9]*[a-z0-9]?` which means the first
character must be a lowercase letter, and all following characters must
be a dash, lowercase letter, or digit, except the last character, which
cannot be a dash.

`optional string name = 3373707;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getOperationalStatus()

    public String getOperationalStatus()

Output only. \[Output Only\] The current status of whether or not this interconnect
attachment is functional, which can take one of the following values:

- OS_ACTIVE: The attachment has been turned up and is ready to use.
- OS_UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete. Check the OperationalStatus enum for the list of possible values.

`optional string operational_status = 201070847;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The operationalStatus. |

### getOperationalStatusBytes()

    public ByteString getOperationalStatusBytes()

Output only. \[Output Only\] The current status of whether or not this interconnect
attachment is functional, which can take one of the following values:

- OS_ACTIVE: The attachment has been turned up and is ready to use.
- OS_UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete. Check the OperationalStatus enum for the list of possible values.

`optional string operational_status = 201070847;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for operationalStatus. |

### getPairingKey()

    public String getPairingKey()

\[Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not
present for DEDICATED\].
The opaque identifier of a PARTNER attachment used to initiate
provisioning with a selected partner.
Of the form "XXXXX/region/domain"

`optional string pairing_key = 439695464;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The pairingKey. |

### getPairingKeyBytes()

    public ByteString getPairingKeyBytes()

\[Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not
present for DEDICATED\].
The opaque identifier of a PARTNER attachment used to initiate
provisioning with a selected partner.
Of the form "XXXXX/region/domain"

`optional string pairing_key = 439695464;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for pairingKey. |

### getParams()

    public InterconnectAttachmentParams getParams()

Input only. \[Input Only\] Additional params passed with the request, but not persisted
as part of resource payload.

`optional .google.cloud.compute.v1.InterconnectAttachmentParams params = 78313862;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentParams` | The params. |

### getParamsBuilder()

    public InterconnectAttachmentParams.Builder getParamsBuilder()

Input only. \[Input Only\] Additional params passed with the request, but not persisted
as part of resource payload.

`optional .google.cloud.compute.v1.InterconnectAttachmentParams params = 78313862;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentParams.Builder` |   |

### getParamsOrBuilder()

    public InterconnectAttachmentParamsOrBuilder getParamsOrBuilder()

Input only. \[Input Only\] Additional params passed with the request, but not persisted
as part of resource payload.

`optional .google.cloud.compute.v1.InterconnectAttachmentParams params = 78313862;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentParamsOrBuilder` |   |

### getPartnerAsn()

    public long getPartnerAsn()

Optional BGP ASN for the router supplied by a Layer 3 Partner if they
configured BGP on behalf of the customer.
Output only for PARTNER type, input only for PARTNER_PROVIDER, not
available for DEDICATED.

`optional int64 partner_asn = 438166149;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The partnerAsn. |

### getPartnerMetadata()

    public InterconnectAttachmentPartnerMetadata getPartnerMetadata()

Informational metadata about Partner attachments from Partners to display
to customers.
Output only for PARTNER type, mutable for PARTNER_PROVIDER, not
available for DEDICATED.

`
optional .google.cloud.compute.v1.InterconnectAttachmentPartnerMetadata partner_metadata = 65908934;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentPartnerMetadata` | The partnerMetadata. |

### getPartnerMetadataBuilder()

    public InterconnectAttachmentPartnerMetadata.Builder getPartnerMetadataBuilder()

Informational metadata about Partner attachments from Partners to display
to customers.
Output only for PARTNER type, mutable for PARTNER_PROVIDER, not
available for DEDICATED.

`
optional .google.cloud.compute.v1.InterconnectAttachmentPartnerMetadata partner_metadata = 65908934;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentPartnerMetadata.Builder` |   |

### getPartnerMetadataOrBuilder()

    public InterconnectAttachmentPartnerMetadataOrBuilder getPartnerMetadataOrBuilder()

Informational metadata about Partner attachments from Partners to display
to customers.
Output only for PARTNER type, mutable for PARTNER_PROVIDER, not
available for DEDICATED.

`
optional .google.cloud.compute.v1.InterconnectAttachmentPartnerMetadata partner_metadata = 65908934;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentPartnerMetadataOrBuilder` |   |

### getPrivateInterconnectInfo()

    public InterconnectAttachmentPrivateInfo getPrivateInterconnectInfo()

Output only. \[Output Only\] Information specific to an InterconnectAttachment.
This property is populated if the interconnect that
this is attached to is of type DEDICATED.

`
optional .google.cloud.compute.v1.InterconnectAttachmentPrivateInfo private_interconnect_info = 237270531;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentPrivateInfo` | The privateInterconnectInfo. |

### getPrivateInterconnectInfoBuilder()

    public InterconnectAttachmentPrivateInfo.Builder getPrivateInterconnectInfoBuilder()

Output only. \[Output Only\] Information specific to an InterconnectAttachment.
This property is populated if the interconnect that
this is attached to is of type DEDICATED.

`
optional .google.cloud.compute.v1.InterconnectAttachmentPrivateInfo private_interconnect_info = 237270531;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentPrivateInfo.Builder` |   |

### getPrivateInterconnectInfoOrBuilder()

    public InterconnectAttachmentPrivateInfoOrBuilder getPrivateInterconnectInfoOrBuilder()

Output only. \[Output Only\] Information specific to an InterconnectAttachment.
This property is populated if the interconnect that
this is attached to is of type DEDICATED.

`
optional .google.cloud.compute.v1.InterconnectAttachmentPrivateInfo private_interconnect_info = 237270531;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentPrivateInfoOrBuilder` |   |

### getRegion()

    public String getRegion()

Output only. \[Output Only\] URL of the region where the regional interconnect attachment
resides.
You must specify this field as part of the HTTP request URL. It is
not settable as a field in the request body.

`optional string region = 138946292;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The region. |

### getRegionBytes()

    public ByteString getRegionBytes()

Output only. \[Output Only\] URL of the region where the regional interconnect attachment
resides.
You must specify this field as part of the HTTP request URL. It is
not settable as a field in the request body.

`optional string region = 138946292;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for region. |

### getRemoteService()

    public String getRemoteService()

Output only. \[Output Only\]
If the attachment is on a Cross-Cloud Interconnect connection, this field
contains the interconnect's remote location service provider. Example
values: "Amazon Web Services" "Microsoft Azure".

The field is set only for attachments on Cross-Cloud Interconnect
connections. Its value is copied from the InterconnectRemoteLocation
remoteService field.

`optional string remote_service = 391954364;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The remoteService. |

### getRemoteServiceBytes()

    public ByteString getRemoteServiceBytes()

Output only. \[Output Only\]
If the attachment is on a Cross-Cloud Interconnect connection, this field
contains the interconnect's remote location service provider. Example
values: "Amazon Web Services" "Microsoft Azure".

The field is set only for attachments on Cross-Cloud Interconnect
connections. Its value is copied from the InterconnectRemoteLocation
remoteService field.

`optional string remote_service = 391954364;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for remoteService. |

### getRouter()

    public String getRouter()

URL of the Cloud Router to be used for dynamic routing. This router must be
in the same region as this InterconnectAttachment. The
InterconnectAttachment will automatically connect the Interconnect to the
network \& region within which the Cloud Router is configured.

`optional string router = 148608841;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The router. |

### getRouterBytes()

    public ByteString getRouterBytes()

URL of the Cloud Router to be used for dynamic routing. This router must be
in the same region as this InterconnectAttachment. The
InterconnectAttachment will automatically connect the Interconnect to the
network \& region within which the Cloud Router is configured.

`optional string router = 148608841;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for router. |

### getSatisfiesPzs()

    public boolean getSatisfiesPzs()

Output only. \[Output Only\] Reserved for future use.

`optional bool satisfies_pzs = 480964267;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The satisfiesPzs. |

### getSelfLink()

    public String getSelfLink()

Output only. \[Output Only\] Server-defined URL for the resource.

`optional string self_link = 456214797;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The selfLink. |

### getSelfLinkBytes()

    public ByteString getSelfLinkBytes()

Output only. \[Output Only\] Server-defined URL for the resource.

`optional string self_link = 456214797;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for selfLink. |

### getStackType()

    public String getStackType()

The stack type for this interconnect attachment to identify whether the
IPv6 feature is enabled or not. If not specified, IPV4_ONLY
will be used.

This field can be both set at interconnect attachments creation and
update interconnect attachment operations.
Check the StackType enum for the list of possible values.

`optional string stack_type = 425908881;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The stackType. |

### getStackTypeBytes()

    public ByteString getStackTypeBytes()

The stack type for this interconnect attachment to identify whether the
IPv6 feature is enabled or not. If not specified, IPV4_ONLY
will be used.

This field can be both set at interconnect attachments creation and
update interconnect attachment operations.
Check the StackType enum for the list of possible values.

`optional string stack_type = 425908881;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for stackType. |

### getState()

    public String getState()

Output only. \[Output Only\] The current state of this attachment's functionality.
Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE,
PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values
PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used
for only PARTNER and PARTNER_PROVIDER interconnect attachments.
This state can take one of the following values:

- ACTIVE: The attachment has been turned up and is ready to use.
- UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete.
- PENDING_PARTNER: A newly-created PARTNER attachment that has not yet been configured on the Partner side.
- PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of provisioning after a PARTNER_PROVIDER attachment was created that references it.
- PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting for a customer to activate it.
- DEFUNCT: The attachment was deleted externally and is no longer functional. This could be because the associated Interconnect was removed, or because the other side of a Partner attachment was deleted. Check the State enum for the list of possible values.

`optional string state = 109757585;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The state. |

### getStateBytes()

    public ByteString getStateBytes()

Output only. \[Output Only\] The current state of this attachment's functionality.
Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE,
PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values
PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used
for only PARTNER and PARTNER_PROVIDER interconnect attachments.
This state can take one of the following values:

- ACTIVE: The attachment has been turned up and is ready to use.
- UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete.
- PENDING_PARTNER: A newly-created PARTNER attachment that has not yet been configured on the Partner side.
- PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of provisioning after a PARTNER_PROVIDER attachment was created that references it.
- PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting for a customer to activate it.
- DEFUNCT: The attachment was deleted externally and is no longer functional. This could be because the associated Interconnect was removed, or because the other side of a Partner attachment was deleted. Check the State enum for the list of possible values.

`optional string state = 109757585;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for state. |

### getSubnetLength()

    public int getSubnetLength()

Input only. Length of the IPv4 subnet mask.
Allowed values:

- 29 (default)
- 30

  The default value is 29, except for Cross-Cloud Interconnect
  connections that use an InterconnectRemoteLocation with a
  constraints.subnetLengthRange.min equal to 30. For example,
  connections that use an Azure remote location fall into this
  category. In these cases, the default value is 30, and requesting
  29 returns an error.

  Where both 29 and 30 are allowed, 29 is preferred, because it gives
  Google Cloud Support more debugging visibility.

`optional int32 subnet_length = 279831048;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The subnetLength. |

### getType()

    public String getType()

The type of interconnect attachment this is, which can take one of the
following values:

- DEDICATED: an attachment to a Dedicated Interconnect.
- PARTNER: an attachment to a Partner Interconnect, created by the customer.
- PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by
  the partner.

- L2_DEDICATED: a L2 attachment to a Dedicated Interconnect.
  Check the Type enum for the list of possible values.

`optional string type = 3575610;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The type. |

### getTypeBytes()

    public ByteString getTypeBytes()

The type of interconnect attachment this is, which can take one of the
following values:

- DEDICATED: an attachment to a Dedicated Interconnect.
- PARTNER: an attachment to a Partner Interconnect, created by the customer.
- PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by
  the partner.

- L2_DEDICATED: a L2 attachment to a Dedicated Interconnect.
  Check the Type enum for the list of possible values.

`optional string type = 3575610;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for type. |

### getVlanTag8021Q()

    public int getVlanTag8021Q()

The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4093.
Only specified at creation time.

`optional int32 vlan_tag8021q = 119927836;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The vlanTag8021q. |

### hasAdminEnabled()

    public boolean hasAdminEnabled()

Determines whether this Attachment will carry packets.
Not present for PARTNER_PROVIDER.

`optional bool admin_enabled = 445675089;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the adminEnabled field is set. |

### hasAttachmentGroup()

    public boolean hasAttachmentGroup()

Output only. \[Output Only\] URL of the AttachmentGroup that includes this Attachment.

`optional string attachment_group = 63442019;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the attachmentGroup field is set. |

### hasBandwidth()

    public boolean hasBandwidth()

Provisioned bandwidth capacity for the interconnect attachment. For
attachments of type DEDICATED, the user can set the bandwidth.
For attachments of type PARTNER, the Google Partner that is operating
the interconnect must set the bandwidth.
Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED,
and can take one of the following values:

- BPS_50M: 50 Mbit/s
- BPS_100M: 100 Mbit/s
- BPS_200M: 200 Mbit/s
- BPS_300M: 300 Mbit/s
- BPS_400M: 400 Mbit/s
- BPS_500M: 500 Mbit/s
- BPS_1G: 1 Gbit/s
- BPS_2G: 2 Gbit/s
- BPS_5G: 5 Gbit/s
- BPS_10G: 10 Gbit/s
- BPS_20G: 20 Gbit/s
- BPS_50G: 50 Gbit/s
- BPS_100G: 100 Gbit/s
- BPS_400G: 400 Gbit/s Check the Bandwidth enum for the list of possible values.

`optional string bandwidth = 181715121;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the bandwidth field is set. |

### hasCandidateCloudRouterIpAddress()

    public boolean hasCandidateCloudRouterIpAddress()

Single IPv4 address + prefix length to be configured on the cloud router
interface for this interconnect attachment.

- Both candidate_cloud_router_ip_address and candidate_customer_router_ip_address fields must be set or both must be unset.
- Prefix length of both candidate_cloud_router_ip_address and candidate_customer_router_ip_address must be the same.
- Max prefix length is 31.

`optional string candidate_cloud_router_ip_address = 311379276;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the candidateCloudRouterIpAddress field is set. |

### hasCandidateCloudRouterIpv6Address()

    public boolean hasCandidateCloudRouterIpv6Address()

Single IPv6 address + prefix length to be configured on the cloud router
interface for this interconnect attachment.

- Both candidate_cloud_router_ipv6_address and candidate_customer_router_ipv6_address fields must be set or both must be unset.
- Prefix length of both candidate_cloud_router_ipv6_address and candidate_customer_router_ipv6_address must be the same.
- Max prefix length is 126.

`optional string candidate_cloud_router_ipv6_address = 417499660;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the candidateCloudRouterIpv6Address field is set. |

### hasCandidateCustomerRouterIpAddress()

    public boolean hasCandidateCustomerRouterIpAddress()

Single IPv4 address + prefix length to be configured on the customer router
interface for this interconnect attachment.

`optional string candidate_customer_router_ip_address = 339113389;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the candidateCustomerRouterIpAddress field is set. |

### hasCandidateCustomerRouterIpv6Address()

    public boolean hasCandidateCustomerRouterIpv6Address()

Single IPv6 address + prefix length to be configured on the customer router
interface for this interconnect attachment.

`optional string candidate_customer_router_ipv6_address = 226436653;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the candidateCustomerRouterIpv6Address field is set. |

### hasCloudRouterIpAddress()

    public boolean hasCloudRouterIpAddress()

Output only. \[Output Only\] IPv4 address + prefix length to be configured on Cloud Router
Interface for this interconnect attachment.

`optional string cloud_router_ip_address = 287392776;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the cloudRouterIpAddress field is set. |

### hasCloudRouterIpv6Address()

    public boolean hasCloudRouterIpv6Address()

Output only. \[Output Only\] IPv6 address + prefix length to be configured on Cloud
Router Interface for this interconnect attachment.

`optional string cloud_router_ipv6_address = 451922376;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the cloudRouterIpv6Address field is set. |

### hasCloudRouterIpv6InterfaceId()

    public boolean hasCloudRouterIpv6InterfaceId()

This field is not available.

`optional string cloud_router_ipv6_interface_id = 521282701;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the cloudRouterIpv6InterfaceId field is set. |

### hasConfigurationConstraints()

    public boolean hasConfigurationConstraints()

Output only. \[Output Only\] Constraints for this attachment, if any. The attachment does
not work if these constraints are not met.

`
optional .google.cloud.compute.v1.InterconnectAttachmentConfigurationConstraints configuration_constraints = 179681389;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the configurationConstraints field is set. |

### hasCreationTimestamp()

    public boolean hasCreationTimestamp()

Output only. \[Output Only\] Creation timestamp inRFC3339
text format.

`optional string creation_timestamp = 30525366;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the creationTimestamp field is set. |

### hasCustomerRouterIpAddress()

    public boolean hasCustomerRouterIpAddress()

Output only. \[Output Only\] IPv4 address + prefix length to be configured on the customer
router subinterface for this interconnect attachment.

`optional string customer_router_ip_address = 332475761;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the customerRouterIpAddress field is set. |

### hasCustomerRouterIpv6Address()

    public boolean hasCustomerRouterIpv6Address()

Output only. \[Output Only\] IPv6 address + prefix length to be configured on the
customer router subinterface for this interconnect attachment.

`optional string customer_router_ipv6_address = 290127089;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the customerRouterIpv6Address field is set. |

### hasCustomerRouterIpv6InterfaceId()

    public boolean hasCustomerRouterIpv6InterfaceId()

This field is not available.

`optional string customer_router_ipv6_interface_id = 380994308;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the customerRouterIpv6InterfaceId field is set. |

### hasDataplaneVersion()

    public boolean hasDataplaneVersion()

Output only. \[Output Only\] Dataplane version for this InterconnectAttachment. This
field is only present for Dataplane version 2 and higher. Absence of this
field in the API output indicates that the Dataplane is version 1.

`optional int32 dataplane_version = 34920075;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the dataplaneVersion field is set. |

### hasDescription()

    public boolean hasDescription()

An optional description of this resource.

`optional string description = 422937596;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the description field is set. |

### hasEdgeAvailabilityDomain()

    public boolean hasEdgeAvailabilityDomain()

Input only. Desired availability domain for the attachment. Only available for type
PARTNER, at creation time, and can take one of the following values:

- AVAILABILITY_DOMAIN_ANY
- AVAILABILITY_DOMAIN_1
- AVAILABILITY_DOMAIN_2

For improved reliability, customers should configure a pair of attachments,
one per availability domain. The selected availability domain will be
provided to the Partner via the pairing key, so that the provisioned
circuit will lie in the specified domain. If not specified, the value will
default to AVAILABILITY_DOMAIN_ANY.
Check the EdgeAvailabilityDomain enum for the list of possible values.

`optional string edge_availability_domain = 71289510;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the edgeAvailabilityDomain field is set. |

### hasEncryption()

    public boolean hasEncryption()

Indicates the user-supplied encryption option of this VLAN attachment
(interconnectAttachment). Can only be specified at attachment creation
for PARTNER or DEDICATED attachments.
Possible values are:

- NONE - This is the default value, which means that the VLAN attachment carries unencrypted traffic. VMs are able to send traffic to, or receive traffic from, such a VLAN attachment.
- IPSEC - The VLAN attachment carries only encrypted traffic that is encrypted by an IPsec device, such as an HA VPN gateway or third-party IPsec VPN. VMs cannot directly send traffic to, or receive traffic from, such a VLAN attachment. To use *HA VPN over Cloud
  Interconnect*, the VLAN attachment must be created with this option. Check the Encryption enum for the list of possible values.

`optional string encryption = 97980291;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the encryption field is set. |

### hasGoogleReferenceId()

    public boolean hasGoogleReferenceId()

Output only. \[Output Only\] Google reference ID, to be used when raising support tickets
with Google or otherwise to debug backend connectivity issues.
\[Deprecated\] This field is not used.

`optional string google_reference_id = 534944469;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the googleReferenceId field is set. |

### hasId()

    public boolean hasId()

Output only. \[Output Only\] The unique identifier for the resource. This identifier is
defined by the server.

`optional uint64 id = 3355;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the id field is set. |

### hasInterconnect()

    public boolean hasInterconnect()

URL of the underlying Interconnect object that this attachment's traffic
will traverse through.

`optional string interconnect = 224601230;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the interconnect field is set. |

### hasKind()

    public boolean hasKind()

Output only. \[Output Only\] Type of the resource. Alwayscompute#interconnectAttachment for interconnect attachments.

`optional string kind = 3292052;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the kind field is set. |

### hasL2Forwarding()

    public boolean hasL2Forwarding()

L2 Interconnect Attachment related config. This field is required if the
type is L2_DEDICATED.

The configuration specifies how VLAN tags (like dot1q, qinq, or dot1ad)
within L2 packets are mapped to the destination appliances IP addresses.
The packet is then encapsulated with the appliance IP address and sent to
the edge appliance.

`
optional .google.cloud.compute.v1.InterconnectAttachmentL2Forwarding l2_forwarding = 84784022;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the l2Forwarding field is set. |

### hasLabelFingerprint()

    public boolean hasLabelFingerprint()

A fingerprint for the labels being applied to this InterconnectAttachment,
which is essentially a hash of the labels set used for optimistic locking.
The fingerprint is initially generated by Compute Engine and changes after
every request to modify or update labels. You must always provide an
up-to-date fingerprint hash in order to update or change labels,
otherwise the request will fail with error412 conditionNotMet.

To see the latest fingerprint, make a get() request to
retrieve an InterconnectAttachment.

`optional string label_fingerprint = 178124825;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the labelFingerprint field is set. |

### hasMtu()

    public boolean hasMtu()

Maximum Transmission Unit (MTU), in bytes, of packets passing through this
interconnect attachment.
Valid values are 1440, 1460, 1500, and 8896. If not specified,
the value will default to 1440.

`optional int32 mtu = 108462;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the mtu field is set. |

### hasName()

    public boolean hasName()

Name of the resource. Provided by the client when the resource is created.
The name must be 1-63 characters long, and comply withRFC1035.
Specifically, the name must be 1-63 characters long and match the regular
expression `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/[-a-z0-9]*[a-z0-9]?` which means the first
character must be a lowercase letter, and all following characters must
be a dash, lowercase letter, or digit, except the last character, which
cannot be a dash.

`optional string name = 3373707;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the name field is set. |

### hasOperationalStatus()

    public boolean hasOperationalStatus()

Output only. \[Output Only\] The current status of whether or not this interconnect
attachment is functional, which can take one of the following values:

- OS_ACTIVE: The attachment has been turned up and is ready to use.
- OS_UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete. Check the OperationalStatus enum for the list of possible values.

`optional string operational_status = 201070847;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the operationalStatus field is set. |

### hasPairingKey()

    public boolean hasPairingKey()

\[Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not
present for DEDICATED\].
The opaque identifier of a PARTNER attachment used to initiate
provisioning with a selected partner.
Of the form "XXXXX/region/domain"

`optional string pairing_key = 439695464;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the pairingKey field is set. |

### hasParams()

    public boolean hasParams()

Input only. \[Input Only\] Additional params passed with the request, but not persisted
as part of resource payload.

`optional .google.cloud.compute.v1.InterconnectAttachmentParams params = 78313862;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the params field is set. |

### hasPartnerAsn()

    public boolean hasPartnerAsn()

Optional BGP ASN for the router supplied by a Layer 3 Partner if they
configured BGP on behalf of the customer.
Output only for PARTNER type, input only for PARTNER_PROVIDER, not
available for DEDICATED.

`optional int64 partner_asn = 438166149;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the partnerAsn field is set. |

### hasPartnerMetadata()

    public boolean hasPartnerMetadata()

Informational metadata about Partner attachments from Partners to display
to customers.
Output only for PARTNER type, mutable for PARTNER_PROVIDER, not
available for DEDICATED.

`
optional .google.cloud.compute.v1.InterconnectAttachmentPartnerMetadata partner_metadata = 65908934;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the partnerMetadata field is set. |

### hasPrivateInterconnectInfo()

    public boolean hasPrivateInterconnectInfo()

Output only. \[Output Only\] Information specific to an InterconnectAttachment.
This property is populated if the interconnect that
this is attached to is of type DEDICATED.

`
optional .google.cloud.compute.v1.InterconnectAttachmentPrivateInfo private_interconnect_info = 237270531;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the privateInterconnectInfo field is set. |

### hasRegion()

    public boolean hasRegion()

Output only. \[Output Only\] URL of the region where the regional interconnect attachment
resides.
You must specify this field as part of the HTTP request URL. It is
not settable as a field in the request body.

`optional string region = 138946292;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the region field is set. |

### hasRemoteService()

    public boolean hasRemoteService()

Output only. \[Output Only\]
If the attachment is on a Cross-Cloud Interconnect connection, this field
contains the interconnect's remote location service provider. Example
values: "Amazon Web Services" "Microsoft Azure".

The field is set only for attachments on Cross-Cloud Interconnect
connections. Its value is copied from the InterconnectRemoteLocation
remoteService field.

`optional string remote_service = 391954364;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the remoteService field is set. |

### hasRouter()

    public boolean hasRouter()

URL of the Cloud Router to be used for dynamic routing. This router must be
in the same region as this InterconnectAttachment. The
InterconnectAttachment will automatically connect the Interconnect to the
network \& region within which the Cloud Router is configured.

`optional string router = 148608841;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the router field is set. |

### hasSatisfiesPzs()

    public boolean hasSatisfiesPzs()

Output only. \[Output Only\] Reserved for future use.

`optional bool satisfies_pzs = 480964267;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the satisfiesPzs field is set. |

### hasSelfLink()

    public boolean hasSelfLink()

Output only. \[Output Only\] Server-defined URL for the resource.

`optional string self_link = 456214797;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the selfLink field is set. |

### hasStackType()

    public boolean hasStackType()

The stack type for this interconnect attachment to identify whether the
IPv6 feature is enabled or not. If not specified, IPV4_ONLY
will be used.

This field can be both set at interconnect attachments creation and
update interconnect attachment operations.
Check the StackType enum for the list of possible values.

`optional string stack_type = 425908881;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the stackType field is set. |

### hasState()

    public boolean hasState()

Output only. \[Output Only\] The current state of this attachment's functionality.
Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE,
PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values
PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used
for only PARTNER and PARTNER_PROVIDER interconnect attachments.
This state can take one of the following values:

- ACTIVE: The attachment has been turned up and is ready to use.
- UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete.
- PENDING_PARTNER: A newly-created PARTNER attachment that has not yet been configured on the Partner side.
- PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of provisioning after a PARTNER_PROVIDER attachment was created that references it.
- PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting for a customer to activate it.
- DEFUNCT: The attachment was deleted externally and is no longer functional. This could be because the associated Interconnect was removed, or because the other side of a Partner attachment was deleted. Check the State enum for the list of possible values.

`optional string state = 109757585;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the state field is set. |

### hasSubnetLength()

    public boolean hasSubnetLength()

Input only. Length of the IPv4 subnet mask.
Allowed values:

- 29 (default)
- 30

  The default value is 29, except for Cross-Cloud Interconnect
  connections that use an InterconnectRemoteLocation with a
  constraints.subnetLengthRange.min equal to 30. For example,
  connections that use an Azure remote location fall into this
  category. In these cases, the default value is 30, and requesting
  29 returns an error.

  Where both 29 and 30 are allowed, 29 is preferred, because it gives
  Google Cloud Support more debugging visibility.

`optional int32 subnet_length = 279831048;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the subnetLength field is set. |

### hasType()

    public boolean hasType()

The type of interconnect attachment this is, which can take one of the
following values:

- DEDICATED: an attachment to a Dedicated Interconnect.
- PARTNER: an attachment to a Partner Interconnect, created by the customer.
- PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by
  the partner.

- L2_DEDICATED: a L2 attachment to a Dedicated Interconnect.
  Check the Type enum for the list of possible values.

`optional string type = 3575610;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the type field is set. |

### hasVlanTag8021Q()

    public boolean hasVlanTag8021Q()

The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4093.
Only specified at creation time.

`optional int32 vlan_tag8021q = 119927836;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the vlanTag8021q field is set. |

### internalGetFieldAccessorTable()

    protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.FieldAccessorTable.html` |   |

**Overrides** [GeneratedMessage.Builder\<BuilderType\>.internalGetFieldAccessorTable()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_internalGetFieldAccessorTable__)

### internalGetMapFieldReflection(int number)

    protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `number` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.protobuf.MapFieldReflectionAccessor` |   |

**Overrides** com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

### internalGetMutableMapFieldReflection(int number)

    protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `number` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.protobuf.MapFieldReflectionAccessor` |   |

**Overrides** com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

### isInitialized()

    public final boolean isInitialized()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

**Overrides** [GeneratedMessage.Builder\<BuilderType\>.isInitialized()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_isInitialized__)

### mergeConfigurationConstraints(InterconnectAttachmentConfigurationConstraints value)

    public InterconnectAttachment.Builder mergeConfigurationConstraints(InterconnectAttachmentConfigurationConstraints value)

Output only. \[Output Only\] Constraints for this attachment, if any. The attachment does
not work if these constraints are not met.

`
optional .google.cloud.compute.v1.InterconnectAttachmentConfigurationConstraints configuration_constraints = 179681389;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentConfigurationConstraints` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### mergeFrom(InterconnectAttachment other)

    public InterconnectAttachment.Builder mergeFrom(InterconnectAttachment other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

    public InterconnectAttachment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `input` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.CodedInputStream.html` |
| `extensionRegistry` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ExtensionRegistryLite.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

**Overrides** [AbstractMessage.Builder\<BuilderType\>.mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_CodedInputStream_com_google_protobuf_ExtensionRegistryLite_)

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### mergeFrom(Message other)

    public InterconnectAttachment.Builder mergeFrom(Message other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Message.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

**Overrides** [AbstractMessage.Builder\<BuilderType\>.mergeFrom(Message other)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_Message_)

### mergeL2Forwarding(InterconnectAttachmentL2Forwarding value)

    public InterconnectAttachment.Builder mergeL2Forwarding(InterconnectAttachmentL2Forwarding value)

L2 Interconnect Attachment related config. This field is required if the
type is L2_DEDICATED.

The configuration specifies how VLAN tags (like dot1q, qinq, or dot1ad)
within L2 packets are mapped to the destination appliances IP addresses.
The packet is then encapsulated with the appliance IP address and sent to
the edge appliance.

`
optional .google.cloud.compute.v1.InterconnectAttachmentL2Forwarding l2_forwarding = 84784022;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentL2Forwarding` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### mergeParams(InterconnectAttachmentParams value)

    public InterconnectAttachment.Builder mergeParams(InterconnectAttachmentParams value)

Input only. \[Input Only\] Additional params passed with the request, but not persisted
as part of resource payload.

`optional .google.cloud.compute.v1.InterconnectAttachmentParams params = 78313862;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentParams` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### mergePartnerMetadata(InterconnectAttachmentPartnerMetadata value)

    public InterconnectAttachment.Builder mergePartnerMetadata(InterconnectAttachmentPartnerMetadata value)

Informational metadata about Partner attachments from Partners to display
to customers.
Output only for PARTNER type, mutable for PARTNER_PROVIDER, not
available for DEDICATED.

`
optional .google.cloud.compute.v1.InterconnectAttachmentPartnerMetadata partner_metadata = 65908934;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentPartnerMetadata` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### mergePrivateInterconnectInfo(InterconnectAttachmentPrivateInfo value)

    public InterconnectAttachment.Builder mergePrivateInterconnectInfo(InterconnectAttachmentPrivateInfo value)

Output only. \[Output Only\] Information specific to an InterconnectAttachment.
This property is populated if the interconnect that
this is attached to is of type DEDICATED.

`
optional .google.cloud.compute.v1.InterconnectAttachmentPrivateInfo private_interconnect_info = 237270531;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentPrivateInfo` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### putAllLabels(Map\<String,String\> values)

    public InterconnectAttachment.Builder putAllLabels(Map<String,String> values)

Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035.
Label values may be empty.

`map<string, string> labels = 500195327;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `values` | `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### putLabels(String key, String value)

    public InterconnectAttachment.Builder putLabels(String key, String value)

Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035.
Label values may be empty.

`map<string, string> labels = 500195327;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### removeLabels(String key)

    public InterconnectAttachment.Builder removeLabels(String key)

Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035.
Label values may be empty.

`map<string, string> labels = 500195327;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### setAdminEnabled(boolean value)

    public InterconnectAttachment.Builder setAdminEnabled(boolean value)

Determines whether this Attachment will carry packets.
Not present for PARTNER_PROVIDER.

`optional bool admin_enabled = 445675089;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The adminEnabled to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setAttachmentGroup(String value)

    public InterconnectAttachment.Builder setAttachmentGroup(String value)

Output only. \[Output Only\] URL of the AttachmentGroup that includes this Attachment.

`optional string attachment_group = 63442019;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The attachmentGroup to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setAttachmentGroupBytes(ByteString value)

    public InterconnectAttachment.Builder setAttachmentGroupBytes(ByteString value)

Output only. \[Output Only\] URL of the AttachmentGroup that includes this Attachment.

`optional string attachment_group = 63442019;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for attachmentGroup to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setBandwidth(String value)

    public InterconnectAttachment.Builder setBandwidth(String value)

Provisioned bandwidth capacity for the interconnect attachment. For
attachments of type DEDICATED, the user can set the bandwidth.
For attachments of type PARTNER, the Google Partner that is operating
the interconnect must set the bandwidth.
Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED,
and can take one of the following values:

- BPS_50M: 50 Mbit/s
- BPS_100M: 100 Mbit/s
- BPS_200M: 200 Mbit/s
- BPS_300M: 300 Mbit/s
- BPS_400M: 400 Mbit/s
- BPS_500M: 500 Mbit/s
- BPS_1G: 1 Gbit/s
- BPS_2G: 2 Gbit/s
- BPS_5G: 5 Gbit/s
- BPS_10G: 10 Gbit/s
- BPS_20G: 20 Gbit/s
- BPS_50G: 50 Gbit/s
- BPS_100G: 100 Gbit/s
- BPS_400G: 400 Gbit/s Check the Bandwidth enum for the list of possible values.

`optional string bandwidth = 181715121;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The bandwidth to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setBandwidthBytes(ByteString value)

    public InterconnectAttachment.Builder setBandwidthBytes(ByteString value)

Provisioned bandwidth capacity for the interconnect attachment. For
attachments of type DEDICATED, the user can set the bandwidth.
For attachments of type PARTNER, the Google Partner that is operating
the interconnect must set the bandwidth.
Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED,
and can take one of the following values:

- BPS_50M: 50 Mbit/s
- BPS_100M: 100 Mbit/s
- BPS_200M: 200 Mbit/s
- BPS_300M: 300 Mbit/s
- BPS_400M: 400 Mbit/s
- BPS_500M: 500 Mbit/s
- BPS_1G: 1 Gbit/s
- BPS_2G: 2 Gbit/s
- BPS_5G: 5 Gbit/s
- BPS_10G: 10 Gbit/s
- BPS_20G: 20 Gbit/s
- BPS_50G: 50 Gbit/s
- BPS_100G: 100 Gbit/s
- BPS_400G: 400 Gbit/s Check the Bandwidth enum for the list of possible values.

`optional string bandwidth = 181715121;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for bandwidth to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setCandidateCloudRouterIpAddress(String value)

    public InterconnectAttachment.Builder setCandidateCloudRouterIpAddress(String value)

Single IPv4 address + prefix length to be configured on the cloud router
interface for this interconnect attachment.

- Both candidate_cloud_router_ip_address and candidate_customer_router_ip_address fields must be set or both must be unset.
- Prefix length of both candidate_cloud_router_ip_address and candidate_customer_router_ip_address must be the same.
- Max prefix length is 31.

`optional string candidate_cloud_router_ip_address = 311379276;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The candidateCloudRouterIpAddress to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setCandidateCloudRouterIpAddressBytes(ByteString value)

    public InterconnectAttachment.Builder setCandidateCloudRouterIpAddressBytes(ByteString value)

Single IPv4 address + prefix length to be configured on the cloud router
interface for this interconnect attachment.

- Both candidate_cloud_router_ip_address and candidate_customer_router_ip_address fields must be set or both must be unset.
- Prefix length of both candidate_cloud_router_ip_address and candidate_customer_router_ip_address must be the same.
- Max prefix length is 31.

`optional string candidate_cloud_router_ip_address = 311379276;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for candidateCloudRouterIpAddress to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setCandidateCloudRouterIpv6Address(String value)

    public InterconnectAttachment.Builder setCandidateCloudRouterIpv6Address(String value)

Single IPv6 address + prefix length to be configured on the cloud router
interface for this interconnect attachment.

- Both candidate_cloud_router_ipv6_address and candidate_customer_router_ipv6_address fields must be set or both must be unset.
- Prefix length of both candidate_cloud_router_ipv6_address and candidate_customer_router_ipv6_address must be the same.
- Max prefix length is 126.

`optional string candidate_cloud_router_ipv6_address = 417499660;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The candidateCloudRouterIpv6Address to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setCandidateCloudRouterIpv6AddressBytes(ByteString value)

    public InterconnectAttachment.Builder setCandidateCloudRouterIpv6AddressBytes(ByteString value)

Single IPv6 address + prefix length to be configured on the cloud router
interface for this interconnect attachment.

- Both candidate_cloud_router_ipv6_address and candidate_customer_router_ipv6_address fields must be set or both must be unset.
- Prefix length of both candidate_cloud_router_ipv6_address and candidate_customer_router_ipv6_address must be the same.
- Max prefix length is 126.

`optional string candidate_cloud_router_ipv6_address = 417499660;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for candidateCloudRouterIpv6Address to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setCandidateCustomerRouterIpAddress(String value)

    public InterconnectAttachment.Builder setCandidateCustomerRouterIpAddress(String value)

Single IPv4 address + prefix length to be configured on the customer router
interface for this interconnect attachment.

`optional string candidate_customer_router_ip_address = 339113389;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The candidateCustomerRouterIpAddress to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setCandidateCustomerRouterIpAddressBytes(ByteString value)

    public InterconnectAttachment.Builder setCandidateCustomerRouterIpAddressBytes(ByteString value)

Single IPv4 address + prefix length to be configured on the customer router
interface for this interconnect attachment.

`optional string candidate_customer_router_ip_address = 339113389;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for candidateCustomerRouterIpAddress to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setCandidateCustomerRouterIpv6Address(String value)

    public InterconnectAttachment.Builder setCandidateCustomerRouterIpv6Address(String value)

Single IPv6 address + prefix length to be configured on the customer router
interface for this interconnect attachment.

`optional string candidate_customer_router_ipv6_address = 226436653;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The candidateCustomerRouterIpv6Address to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setCandidateCustomerRouterIpv6AddressBytes(ByteString value)

    public InterconnectAttachment.Builder setCandidateCustomerRouterIpv6AddressBytes(ByteString value)

Single IPv6 address + prefix length to be configured on the customer router
interface for this interconnect attachment.

`optional string candidate_customer_router_ipv6_address = 226436653;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for candidateCustomerRouterIpv6Address to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setCandidateIpv6Subnets(int index, String value)

    public InterconnectAttachment.Builder setCandidateIpv6Subnets(int index, String value)

This field is not available.

`repeated string candidate_ipv6_subnets = 70682522;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index to set the value at. |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The candidateIpv6Subnets to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setCandidateSubnets(int index, String value)

    public InterconnectAttachment.Builder setCandidateSubnets(int index, String value)

Input only. Up to 16 candidate prefixes that can be used to restrict the allocation
of cloudRouterIpAddress and customerRouterIpAddress for this attachment.
All prefixes must be within link-local address space (169.254.0.0/16) and
must be /29 or shorter (/28, /27, etc). Google will attempt to select an
unused /29 from the supplied candidate prefix(es). The request will fail if
all possible /29s are in use on Google's edge. If not supplied, Google will
randomly select an unused /29 from all of link-local space.

`repeated string candidate_subnets = 237842938;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index to set the value at. |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The candidateSubnets to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setCloudRouterIpAddress(String value)

    public InterconnectAttachment.Builder setCloudRouterIpAddress(String value)

Output only. \[Output Only\] IPv4 address + prefix length to be configured on Cloud Router
Interface for this interconnect attachment.

`optional string cloud_router_ip_address = 287392776;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The cloudRouterIpAddress to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setCloudRouterIpAddressBytes(ByteString value)

    public InterconnectAttachment.Builder setCloudRouterIpAddressBytes(ByteString value)

Output only. \[Output Only\] IPv4 address + prefix length to be configured on Cloud Router
Interface for this interconnect attachment.

`optional string cloud_router_ip_address = 287392776;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for cloudRouterIpAddress to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setCloudRouterIpv6Address(String value)

    public InterconnectAttachment.Builder setCloudRouterIpv6Address(String value)

Output only. \[Output Only\] IPv6 address + prefix length to be configured on Cloud
Router Interface for this interconnect attachment.

`optional string cloud_router_ipv6_address = 451922376;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The cloudRouterIpv6Address to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setCloudRouterIpv6AddressBytes(ByteString value)

    public InterconnectAttachment.Builder setCloudRouterIpv6AddressBytes(ByteString value)

Output only. \[Output Only\] IPv6 address + prefix length to be configured on Cloud
Router Interface for this interconnect attachment.

`optional string cloud_router_ipv6_address = 451922376;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for cloudRouterIpv6Address to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setCloudRouterIpv6InterfaceId(String value)

    public InterconnectAttachment.Builder setCloudRouterIpv6InterfaceId(String value)

This field is not available.

`optional string cloud_router_ipv6_interface_id = 521282701;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The cloudRouterIpv6InterfaceId to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setCloudRouterIpv6InterfaceIdBytes(ByteString value)

    public InterconnectAttachment.Builder setCloudRouterIpv6InterfaceIdBytes(ByteString value)

This field is not available.

`optional string cloud_router_ipv6_interface_id = 521282701;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for cloudRouterIpv6InterfaceId to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setConfigurationConstraints(InterconnectAttachmentConfigurationConstraints value)

    public InterconnectAttachment.Builder setConfigurationConstraints(InterconnectAttachmentConfigurationConstraints value)

Output only. \[Output Only\] Constraints for this attachment, if any. The attachment does
not work if these constraints are not met.

`
optional .google.cloud.compute.v1.InterconnectAttachmentConfigurationConstraints configuration_constraints = 179681389;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentConfigurationConstraints` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### setConfigurationConstraints(InterconnectAttachmentConfigurationConstraints.Builder builderForValue)

    public InterconnectAttachment.Builder setConfigurationConstraints(InterconnectAttachmentConfigurationConstraints.Builder builderForValue)

Output only. \[Output Only\] Constraints for this attachment, if any. The attachment does
not work if these constraints are not met.

`
optional .google.cloud.compute.v1.InterconnectAttachmentConfigurationConstraints configuration_constraints = 179681389;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentConfigurationConstraints.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### setCreationTimestamp(String value)

    public InterconnectAttachment.Builder setCreationTimestamp(String value)

Output only. \[Output Only\] Creation timestamp inRFC3339
text format.

`optional string creation_timestamp = 30525366;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The creationTimestamp to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setCreationTimestampBytes(ByteString value)

    public InterconnectAttachment.Builder setCreationTimestampBytes(ByteString value)

Output only. \[Output Only\] Creation timestamp inRFC3339
text format.

`optional string creation_timestamp = 30525366;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for creationTimestamp to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setCustomerRouterIpAddress(String value)

    public InterconnectAttachment.Builder setCustomerRouterIpAddress(String value)

Output only. \[Output Only\] IPv4 address + prefix length to be configured on the customer
router subinterface for this interconnect attachment.

`optional string customer_router_ip_address = 332475761;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The customerRouterIpAddress to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setCustomerRouterIpAddressBytes(ByteString value)

    public InterconnectAttachment.Builder setCustomerRouterIpAddressBytes(ByteString value)

Output only. \[Output Only\] IPv4 address + prefix length to be configured on the customer
router subinterface for this interconnect attachment.

`optional string customer_router_ip_address = 332475761;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for customerRouterIpAddress to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setCustomerRouterIpv6Address(String value)

    public InterconnectAttachment.Builder setCustomerRouterIpv6Address(String value)

Output only. \[Output Only\] IPv6 address + prefix length to be configured on the
customer router subinterface for this interconnect attachment.

`optional string customer_router_ipv6_address = 290127089;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The customerRouterIpv6Address to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setCustomerRouterIpv6AddressBytes(ByteString value)

    public InterconnectAttachment.Builder setCustomerRouterIpv6AddressBytes(ByteString value)

Output only. \[Output Only\] IPv6 address + prefix length to be configured on the
customer router subinterface for this interconnect attachment.

`optional string customer_router_ipv6_address = 290127089;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for customerRouterIpv6Address to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setCustomerRouterIpv6InterfaceId(String value)

    public InterconnectAttachment.Builder setCustomerRouterIpv6InterfaceId(String value)

This field is not available.

`optional string customer_router_ipv6_interface_id = 380994308;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The customerRouterIpv6InterfaceId to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setCustomerRouterIpv6InterfaceIdBytes(ByteString value)

    public InterconnectAttachment.Builder setCustomerRouterIpv6InterfaceIdBytes(ByteString value)

This field is not available.

`optional string customer_router_ipv6_interface_id = 380994308;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for customerRouterIpv6InterfaceId to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setDataplaneVersion(int value)

    public InterconnectAttachment.Builder setDataplaneVersion(int value)

Output only. \[Output Only\] Dataplane version for this InterconnectAttachment. This
field is only present for Dataplane version 2 and higher. Absence of this
field in the API output indicates that the Dataplane is version 1.

`optional int32 dataplane_version = 34920075;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The dataplaneVersion to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setDescription(String value)

    public InterconnectAttachment.Builder setDescription(String value)

An optional description of this resource.

`optional string description = 422937596;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The description to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setDescriptionBytes(ByteString value)

    public InterconnectAttachment.Builder setDescriptionBytes(ByteString value)

An optional description of this resource.

`optional string description = 422937596;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for description to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setEdgeAvailabilityDomain(String value)

    public InterconnectAttachment.Builder setEdgeAvailabilityDomain(String value)

Input only. Desired availability domain for the attachment. Only available for type
PARTNER, at creation time, and can take one of the following values:

- AVAILABILITY_DOMAIN_ANY
- AVAILABILITY_DOMAIN_1
- AVAILABILITY_DOMAIN_2

For improved reliability, customers should configure a pair of attachments,
one per availability domain. The selected availability domain will be
provided to the Partner via the pairing key, so that the provisioned
circuit will lie in the specified domain. If not specified, the value will
default to AVAILABILITY_DOMAIN_ANY.
Check the EdgeAvailabilityDomain enum for the list of possible values.

`optional string edge_availability_domain = 71289510;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The edgeAvailabilityDomain to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setEdgeAvailabilityDomainBytes(ByteString value)

    public InterconnectAttachment.Builder setEdgeAvailabilityDomainBytes(ByteString value)

Input only. Desired availability domain for the attachment. Only available for type
PARTNER, at creation time, and can take one of the following values:

- AVAILABILITY_DOMAIN_ANY
- AVAILABILITY_DOMAIN_1
- AVAILABILITY_DOMAIN_2

For improved reliability, customers should configure a pair of attachments,
one per availability domain. The selected availability domain will be
provided to the Partner via the pairing key, so that the provisioned
circuit will lie in the specified domain. If not specified, the value will
default to AVAILABILITY_DOMAIN_ANY.
Check the EdgeAvailabilityDomain enum for the list of possible values.

`optional string edge_availability_domain = 71289510;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for edgeAvailabilityDomain to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setEncryption(String value)

    public InterconnectAttachment.Builder setEncryption(String value)

Indicates the user-supplied encryption option of this VLAN attachment
(interconnectAttachment). Can only be specified at attachment creation
for PARTNER or DEDICATED attachments.
Possible values are:

- NONE - This is the default value, which means that the VLAN attachment carries unencrypted traffic. VMs are able to send traffic to, or receive traffic from, such a VLAN attachment.
- IPSEC - The VLAN attachment carries only encrypted traffic that is encrypted by an IPsec device, such as an HA VPN gateway or third-party IPsec VPN. VMs cannot directly send traffic to, or receive traffic from, such a VLAN attachment. To use *HA VPN over Cloud
  Interconnect*, the VLAN attachment must be created with this option. Check the Encryption enum for the list of possible values.

`optional string encryption = 97980291;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The encryption to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setEncryptionBytes(ByteString value)

    public InterconnectAttachment.Builder setEncryptionBytes(ByteString value)

Indicates the user-supplied encryption option of this VLAN attachment
(interconnectAttachment). Can only be specified at attachment creation
for PARTNER or DEDICATED attachments.
Possible values are:

- NONE - This is the default value, which means that the VLAN attachment carries unencrypted traffic. VMs are able to send traffic to, or receive traffic from, such a VLAN attachment.
- IPSEC - The VLAN attachment carries only encrypted traffic that is encrypted by an IPsec device, such as an HA VPN gateway or third-party IPsec VPN. VMs cannot directly send traffic to, or receive traffic from, such a VLAN attachment. To use *HA VPN over Cloud
  Interconnect*, the VLAN attachment must be created with this option. Check the Encryption enum for the list of possible values.

`optional string encryption = 97980291;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for encryption to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setGoogleReferenceId(String value)

    public InterconnectAttachment.Builder setGoogleReferenceId(String value)

Output only. \[Output Only\] Google reference ID, to be used when raising support tickets
with Google or otherwise to debug backend connectivity issues.
\[Deprecated\] This field is not used.

`optional string google_reference_id = 534944469;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The googleReferenceId to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setGoogleReferenceIdBytes(ByteString value)

    public InterconnectAttachment.Builder setGoogleReferenceIdBytes(ByteString value)

Output only. \[Output Only\] Google reference ID, to be used when raising support tickets
with Google or otherwise to debug backend connectivity issues.
\[Deprecated\] This field is not used.

`optional string google_reference_id = 534944469;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for googleReferenceId to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setId(long value)

    public InterconnectAttachment.Builder setId(long value)

Output only. \[Output Only\] The unique identifier for the resource. This identifier is
defined by the server.

`optional uint64 id = 3355;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The id to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setInterconnect(String value)

    public InterconnectAttachment.Builder setInterconnect(String value)

URL of the underlying Interconnect object that this attachment's traffic
will traverse through.

`optional string interconnect = 224601230;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The interconnect to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setInterconnectBytes(ByteString value)

    public InterconnectAttachment.Builder setInterconnectBytes(ByteString value)

URL of the underlying Interconnect object that this attachment's traffic
will traverse through.

`optional string interconnect = 224601230;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for interconnect to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setIpsecInternalAddresses(int index, String value)

    public InterconnectAttachment.Builder setIpsecInternalAddresses(int index, String value)

A list of URLs of addresses that have been reserved for the VLAN
attachment. Used only for the VLAN attachment that has the encryption
option as IPSEC. The addresses must be regional internal IP address ranges.
When creating an HA VPN gateway over the VLAN attachment, if the attachment
is configured to use a regional internal IP address, then the VPN gateway's
IP address is allocated from the IP address range specified here. For
example, if the HA VPN gateway's interface 0 is paired to this VLAN
attachment, then a regional internal IP address for the VPN gateway
interface 0 will be allocated from the IP address specified for this
VLAN attachment.
If this field is not specified when creating the VLAN attachment, then
later on when creating an HA VPN gateway on this VLAN attachment, the HA
VPN gateway's IP address is allocated from the regional external IP address
pool.

`repeated string ipsec_internal_addresses = 407648565;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index to set the value at. |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The ipsecInternalAddresses to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setKind(String value)

    public InterconnectAttachment.Builder setKind(String value)

Output only. \[Output Only\] Type of the resource. Alwayscompute#interconnectAttachment for interconnect attachments.

`optional string kind = 3292052;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The kind to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setKindBytes(ByteString value)

    public InterconnectAttachment.Builder setKindBytes(ByteString value)

Output only. \[Output Only\] Type of the resource. Alwayscompute#interconnectAttachment for interconnect attachments.

`optional string kind = 3292052;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for kind to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setL2Forwarding(InterconnectAttachmentL2Forwarding value)

    public InterconnectAttachment.Builder setL2Forwarding(InterconnectAttachmentL2Forwarding value)

L2 Interconnect Attachment related config. This field is required if the
type is L2_DEDICATED.

The configuration specifies how VLAN tags (like dot1q, qinq, or dot1ad)
within L2 packets are mapped to the destination appliances IP addresses.
The packet is then encapsulated with the appliance IP address and sent to
the edge appliance.

`
optional .google.cloud.compute.v1.InterconnectAttachmentL2Forwarding l2_forwarding = 84784022;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentL2Forwarding` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### setL2Forwarding(InterconnectAttachmentL2Forwarding.Builder builderForValue)

    public InterconnectAttachment.Builder setL2Forwarding(InterconnectAttachmentL2Forwarding.Builder builderForValue)

L2 Interconnect Attachment related config. This field is required if the
type is L2_DEDICATED.

The configuration specifies how VLAN tags (like dot1q, qinq, or dot1ad)
within L2 packets are mapped to the destination appliances IP addresses.
The packet is then encapsulated with the appliance IP address and sent to
the edge appliance.

`
optional .google.cloud.compute.v1.InterconnectAttachmentL2Forwarding l2_forwarding = 84784022;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentL2Forwarding.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### setLabelFingerprint(String value)

    public InterconnectAttachment.Builder setLabelFingerprint(String value)

A fingerprint for the labels being applied to this InterconnectAttachment,
which is essentially a hash of the labels set used for optimistic locking.
The fingerprint is initially generated by Compute Engine and changes after
every request to modify or update labels. You must always provide an
up-to-date fingerprint hash in order to update or change labels,
otherwise the request will fail with error412 conditionNotMet.

To see the latest fingerprint, make a get() request to
retrieve an InterconnectAttachment.

`optional string label_fingerprint = 178124825;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The labelFingerprint to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setLabelFingerprintBytes(ByteString value)

    public InterconnectAttachment.Builder setLabelFingerprintBytes(ByteString value)

A fingerprint for the labels being applied to this InterconnectAttachment,
which is essentially a hash of the labels set used for optimistic locking.
The fingerprint is initially generated by Compute Engine and changes after
every request to modify or update labels. You must always provide an
up-to-date fingerprint hash in order to update or change labels,
otherwise the request will fail with error412 conditionNotMet.

To see the latest fingerprint, make a get() request to
retrieve an InterconnectAttachment.

`optional string label_fingerprint = 178124825;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for labelFingerprint to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setMtu(int value)

    public InterconnectAttachment.Builder setMtu(int value)

Maximum Transmission Unit (MTU), in bytes, of packets passing through this
interconnect attachment.
Valid values are 1440, 1460, 1500, and 8896. If not specified,
the value will default to 1440.

`optional int32 mtu = 108462;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The mtu to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setName(String value)

    public InterconnectAttachment.Builder setName(String value)

Name of the resource. Provided by the client when the resource is created.
The name must be 1-63 characters long, and comply withRFC1035.
Specifically, the name must be 1-63 characters long and match the regular
expression `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/[-a-z0-9]*[a-z0-9]?` which means the first
character must be a lowercase letter, and all following characters must
be a dash, lowercase letter, or digit, except the last character, which
cannot be a dash.

`optional string name = 3373707;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The name to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setNameBytes(ByteString value)

    public InterconnectAttachment.Builder setNameBytes(ByteString value)

Name of the resource. Provided by the client when the resource is created.
The name must be 1-63 characters long, and comply withRFC1035.
Specifically, the name must be 1-63 characters long and match the regular
expression `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/[-a-z0-9]*[a-z0-9]?` which means the first
character must be a lowercase letter, and all following characters must
be a dash, lowercase letter, or digit, except the last character, which
cannot be a dash.

`optional string name = 3373707;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for name to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setOperationalStatus(String value)

    public InterconnectAttachment.Builder setOperationalStatus(String value)

Output only. \[Output Only\] The current status of whether or not this interconnect
attachment is functional, which can take one of the following values:

- OS_ACTIVE: The attachment has been turned up and is ready to use.
- OS_UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete. Check the OperationalStatus enum for the list of possible values.

`optional string operational_status = 201070847;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The operationalStatus to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setOperationalStatusBytes(ByteString value)

    public InterconnectAttachment.Builder setOperationalStatusBytes(ByteString value)

Output only. \[Output Only\] The current status of whether or not this interconnect
attachment is functional, which can take one of the following values:

- OS_ACTIVE: The attachment has been turned up and is ready to use.
- OS_UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete. Check the OperationalStatus enum for the list of possible values.

`optional string operational_status = 201070847;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for operationalStatus to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setPairingKey(String value)

    public InterconnectAttachment.Builder setPairingKey(String value)

\[Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not
present for DEDICATED\].
The opaque identifier of a PARTNER attachment used to initiate
provisioning with a selected partner.
Of the form "XXXXX/region/domain"

`optional string pairing_key = 439695464;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The pairingKey to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setPairingKeyBytes(ByteString value)

    public InterconnectAttachment.Builder setPairingKeyBytes(ByteString value)

\[Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not
present for DEDICATED\].
The opaque identifier of a PARTNER attachment used to initiate
provisioning with a selected partner.
Of the form "XXXXX/region/domain"

`optional string pairing_key = 439695464;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for pairingKey to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setParams(InterconnectAttachmentParams value)

    public InterconnectAttachment.Builder setParams(InterconnectAttachmentParams value)

Input only. \[Input Only\] Additional params passed with the request, but not persisted
as part of resource payload.

`optional .google.cloud.compute.v1.InterconnectAttachmentParams params = 78313862;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentParams` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### setParams(InterconnectAttachmentParams.Builder builderForValue)

    public InterconnectAttachment.Builder setParams(InterconnectAttachmentParams.Builder builderForValue)

Input only. \[Input Only\] Additional params passed with the request, but not persisted
as part of resource payload.

`optional .google.cloud.compute.v1.InterconnectAttachmentParams params = 78313862;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentParams.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### setPartnerAsn(long value)

    public InterconnectAttachment.Builder setPartnerAsn(long value)

Optional BGP ASN for the router supplied by a Layer 3 Partner if they
configured BGP on behalf of the customer.
Output only for PARTNER type, input only for PARTNER_PROVIDER, not
available for DEDICATED.

`optional int64 partner_asn = 438166149;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The partnerAsn to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setPartnerMetadata(InterconnectAttachmentPartnerMetadata value)

    public InterconnectAttachment.Builder setPartnerMetadata(InterconnectAttachmentPartnerMetadata value)

Informational metadata about Partner attachments from Partners to display
to customers.
Output only for PARTNER type, mutable for PARTNER_PROVIDER, not
available for DEDICATED.

`
optional .google.cloud.compute.v1.InterconnectAttachmentPartnerMetadata partner_metadata = 65908934;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentPartnerMetadata` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### setPartnerMetadata(InterconnectAttachmentPartnerMetadata.Builder builderForValue)

    public InterconnectAttachment.Builder setPartnerMetadata(InterconnectAttachmentPartnerMetadata.Builder builderForValue)

Informational metadata about Partner attachments from Partners to display
to customers.
Output only for PARTNER type, mutable for PARTNER_PROVIDER, not
available for DEDICATED.

`
optional .google.cloud.compute.v1.InterconnectAttachmentPartnerMetadata partner_metadata = 65908934;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentPartnerMetadata.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### setPrivateInterconnectInfo(InterconnectAttachmentPrivateInfo value)

    public InterconnectAttachment.Builder setPrivateInterconnectInfo(InterconnectAttachmentPrivateInfo value)

Output only. \[Output Only\] Information specific to an InterconnectAttachment.
This property is populated if the interconnect that
this is attached to is of type DEDICATED.

`
optional .google.cloud.compute.v1.InterconnectAttachmentPrivateInfo private_interconnect_info = 237270531;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentPrivateInfo` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### setPrivateInterconnectInfo(InterconnectAttachmentPrivateInfo.Builder builderForValue)

    public InterconnectAttachment.Builder setPrivateInterconnectInfo(InterconnectAttachmentPrivateInfo.Builder builderForValue)

Output only. \[Output Only\] Information specific to an InterconnectAttachment.
This property is populated if the interconnect that
this is attached to is of type DEDICATED.

`
optional .google.cloud.compute.v1.InterconnectAttachmentPrivateInfo private_interconnect_info = 237270531;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachmentPrivateInfo.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` |   |

### setRegion(String value)

    public InterconnectAttachment.Builder setRegion(String value)

Output only. \[Output Only\] URL of the region where the regional interconnect attachment
resides.
You must specify this field as part of the HTTP request URL. It is
not settable as a field in the request body.

`optional string region = 138946292;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The region to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setRegionBytes(ByteString value)

    public InterconnectAttachment.Builder setRegionBytes(ByteString value)

Output only. \[Output Only\] URL of the region where the regional interconnect attachment
resides.
You must specify this field as part of the HTTP request URL. It is
not settable as a field in the request body.

`optional string region = 138946292;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for region to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setRemoteService(String value)

    public InterconnectAttachment.Builder setRemoteService(String value)

Output only. \[Output Only\]
If the attachment is on a Cross-Cloud Interconnect connection, this field
contains the interconnect's remote location service provider. Example
values: "Amazon Web Services" "Microsoft Azure".

The field is set only for attachments on Cross-Cloud Interconnect
connections. Its value is copied from the InterconnectRemoteLocation
remoteService field.

`optional string remote_service = 391954364;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The remoteService to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setRemoteServiceBytes(ByteString value)

    public InterconnectAttachment.Builder setRemoteServiceBytes(ByteString value)

Output only. \[Output Only\]
If the attachment is on a Cross-Cloud Interconnect connection, this field
contains the interconnect's remote location service provider. Example
values: "Amazon Web Services" "Microsoft Azure".

The field is set only for attachments on Cross-Cloud Interconnect
connections. Its value is copied from the InterconnectRemoteLocation
remoteService field.

`optional string remote_service = 391954364;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for remoteService to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setRouter(String value)

    public InterconnectAttachment.Builder setRouter(String value)

URL of the Cloud Router to be used for dynamic routing. This router must be
in the same region as this InterconnectAttachment. The
InterconnectAttachment will automatically connect the Interconnect to the
network \& region within which the Cloud Router is configured.

`optional string router = 148608841;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The router to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setRouterBytes(ByteString value)

    public InterconnectAttachment.Builder setRouterBytes(ByteString value)

URL of the Cloud Router to be used for dynamic routing. This router must be
in the same region as this InterconnectAttachment. The
InterconnectAttachment will automatically connect the Interconnect to the
network \& region within which the Cloud Router is configured.

`optional string router = 148608841;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for router to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setSatisfiesPzs(boolean value)

    public InterconnectAttachment.Builder setSatisfiesPzs(boolean value)

Output only. \[Output Only\] Reserved for future use.

`optional bool satisfies_pzs = 480964267;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The satisfiesPzs to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setSelfLink(String value)

    public InterconnectAttachment.Builder setSelfLink(String value)

Output only. \[Output Only\] Server-defined URL for the resource.

`optional string self_link = 456214797;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The selfLink to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setSelfLinkBytes(ByteString value)

    public InterconnectAttachment.Builder setSelfLinkBytes(ByteString value)

Output only. \[Output Only\] Server-defined URL for the resource.

`optional string self_link = 456214797;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for selfLink to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setStackType(String value)

    public InterconnectAttachment.Builder setStackType(String value)

The stack type for this interconnect attachment to identify whether the
IPv6 feature is enabled or not. If not specified, IPV4_ONLY
will be used.

This field can be both set at interconnect attachments creation and
update interconnect attachment operations.
Check the StackType enum for the list of possible values.

`optional string stack_type = 425908881;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The stackType to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setStackTypeBytes(ByteString value)

    public InterconnectAttachment.Builder setStackTypeBytes(ByteString value)

The stack type for this interconnect attachment to identify whether the
IPv6 feature is enabled or not. If not specified, IPV4_ONLY
will be used.

This field can be both set at interconnect attachments creation and
update interconnect attachment operations.
Check the StackType enum for the list of possible values.

`optional string stack_type = 425908881;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for stackType to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setState(String value)

    public InterconnectAttachment.Builder setState(String value)

Output only. \[Output Only\] The current state of this attachment's functionality.
Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE,
PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values
PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used
for only PARTNER and PARTNER_PROVIDER interconnect attachments.
This state can take one of the following values:

- ACTIVE: The attachment has been turned up and is ready to use.
- UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete.
- PENDING_PARTNER: A newly-created PARTNER attachment that has not yet been configured on the Partner side.
- PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of provisioning after a PARTNER_PROVIDER attachment was created that references it.
- PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting for a customer to activate it.
- DEFUNCT: The attachment was deleted externally and is no longer functional. This could be because the associated Interconnect was removed, or because the other side of a Partner attachment was deleted. Check the State enum for the list of possible values.

`optional string state = 109757585;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The state to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setStateBytes(ByteString value)

    public InterconnectAttachment.Builder setStateBytes(ByteString value)

Output only. \[Output Only\] The current state of this attachment's functionality.
Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE,
PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values
PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used
for only PARTNER and PARTNER_PROVIDER interconnect attachments.
This state can take one of the following values:

- ACTIVE: The attachment has been turned up and is ready to use.
- UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete.
- PENDING_PARTNER: A newly-created PARTNER attachment that has not yet been configured on the Partner side.
- PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of provisioning after a PARTNER_PROVIDER attachment was created that references it.
- PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting for a customer to activate it.
- DEFUNCT: The attachment was deleted externally and is no longer functional. This could be because the associated Interconnect was removed, or because the other side of a Partner attachment was deleted. Check the State enum for the list of possible values.

`optional string state = 109757585;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for state to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setSubnetLength(int value)

    public InterconnectAttachment.Builder setSubnetLength(int value)

Input only. Length of the IPv4 subnet mask.
Allowed values:

- 29 (default)
- 30

  The default value is 29, except for Cross-Cloud Interconnect
  connections that use an InterconnectRemoteLocation with a
  constraints.subnetLengthRange.min equal to 30. For example,
  connections that use an Azure remote location fall into this
  category. In these cases, the default value is 30, and requesting
  29 returns an error.

  Where both 29 and 30 are allowed, 29 is preferred, because it gives
  Google Cloud Support more debugging visibility.

`optional int32 subnet_length = 279831048;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The subnetLength to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setType(String value)

    public InterconnectAttachment.Builder setType(String value)

The type of interconnect attachment this is, which can take one of the
following values:

- DEDICATED: an attachment to a Dedicated Interconnect.
- PARTNER: an attachment to a Partner Interconnect, created by the customer.
- PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by
  the partner.

- L2_DEDICATED: a L2 attachment to a Dedicated Interconnect.
  Check the Type enum for the list of possible values.

`optional string type = 3575610;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The type to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setTypeBytes(ByteString value)

    public InterconnectAttachment.Builder setTypeBytes(ByteString value)

The type of interconnect attachment this is, which can take one of the
following values:

- DEDICATED: an attachment to a Dedicated Interconnect.
- PARTNER: an attachment to a Partner Interconnect, created by the customer.
- PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by
  the partner.

- L2_DEDICATED: a L2 attachment to a Dedicated Interconnect.
  Check the Type enum for the list of possible values.

`optional string type = 3575610;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for type to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |

### setVlanTag8021Q(int value)

    public InterconnectAttachment.Builder setVlanTag8021Q(int value)

The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4093.
Only specified at creation time.

`optional int32 vlan_tag8021q = 119927836;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The vlanTag8021q to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.InterconnectAttachment.Builder` | This builder for chaining. |