# Class MirroringEndpointGroupAssociation.Builder (0.96.0)

0.96.0 (latest) 0.94.0 0.91.0 0.90.0 0.88.0 0.86.0 0.85.0 0.83.0 0.81.0 0.79.0 0.78.0 0.77.0 0.76.0 0.75.0 0.73.0 0.71.0 0.70.0 0.67.0 0.66.0 0.65.0 0.63.0 0.62.0 0.61.0 0.60.0 0.59.0 0.58.0 0.57.0 0.56.0 0.55.0 0.54.0 0.52.0 0.51.0 0.50.0 0.49.0 0.48.0 0.47.0 0.46.0 0.45.0 0.44.0 0.43.0 0.42.0 0.40.0 0.39.0 0.38.0 0.37.0 0.36.0 0.35.0 0.34.0 0.33.0 0.32.0 0.31.0 0.30.0 0.27.0 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.4 0.5.1 0.4.4

    public static final class MirroringEndpointGroupAssociation.Builder extends GeneratedMessage.Builder<MirroringEndpointGroupAssociation.Builder> implements MirroringEndpointGroupAssociationOrBuilder

An endpoint group association represents a link between a network and an
endpoint group in the organization.

Creating an association creates the networking infrastructure linking the
network to the endpoint group, but does not enable mirroring by itself.
To enable mirroring, the user must also create a network firewall policy
containing mirroring rules and associate it with the network.

Protobuf type `google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation`

## 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) \> MirroringEndpointGroupAssociation.Builder

## Implements

[MirroringEndpointGroupAssociationOrBuilder](https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationOrBuilder)

## 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

### addAllLocations(Iterable\<? extends MirroringLocation\> values)

    public MirroringEndpointGroupAssociation.Builder addAllLocations(Iterable<? extends MirroringLocation> values)

Output only. The list of locations where the association is configured.
This information is retrieved from the linked endpoint group.

`
repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `values` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html<? extends com.google.cloud.networksecurity.v1.MirroringLocation>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### addAllLocationsDetails(Iterable\<? extends MirroringEndpointGroupAssociation.LocationDetails\> values) (deprecated)

    public MirroringEndpointGroupAssociation.Builder addAllLocationsDetails(Iterable<? extends MirroringEndpointGroupAssociation.LocationDetails> values)

Output only. The list of locations where the association is present. This
information is retrieved from the linked endpoint group, and not configured
as part of the association itself.

`
repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `values` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html<? extends com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### addLocations(MirroringLocation value)

    public MirroringEndpointGroupAssociation.Builder addLocations(MirroringLocation value)

Output only. The list of locations where the association is configured.
This information is retrieved from the linked endpoint group.

`
repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringLocation` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### addLocations(MirroringLocation.Builder builderForValue)

    public MirroringEndpointGroupAssociation.Builder addLocations(MirroringLocation.Builder builderForValue)

Output only. The list of locations where the association is configured.
This information is retrieved from the linked endpoint group.

`
repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringLocation.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### addLocations(int index, MirroringLocation value)

    public MirroringEndpointGroupAssociation.Builder addLocations(int index, MirroringLocation value)

Output only. The list of locations where the association is configured.
This information is retrieved from the linked endpoint group.

`
repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringLocation` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### addLocations(int index, MirroringLocation.Builder builderForValue)

    public MirroringEndpointGroupAssociation.Builder addLocations(int index, MirroringLocation.Builder builderForValue)

Output only. The list of locations where the association is configured.
This information is retrieved from the linked endpoint group.

`
repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringLocation.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### addLocationsBuilder()

    public MirroringLocation.Builder addLocationsBuilder()

Output only. The list of locations where the association is configured.
This information is retrieved from the linked endpoint group.

`
repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringLocation.Builder` |   |

### addLocationsBuilder(int index)

    public MirroringLocation.Builder addLocationsBuilder(int index)

Output only. The list of locations where the association is configured.
This information is retrieved from the linked endpoint group.

`
repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringLocation.Builder` |   |

### addLocationsDetails(MirroringEndpointGroupAssociation.LocationDetails value) (deprecated)

    public MirroringEndpointGroupAssociation.Builder addLocationsDetails(MirroringEndpointGroupAssociation.LocationDetails value)

Output only. The list of locations where the association is present. This
information is retrieved from the linked endpoint group, and not configured
as part of the association itself.

`
repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### addLocationsDetails(MirroringEndpointGroupAssociation.LocationDetails.Builder builderForValue) (deprecated)

    public MirroringEndpointGroupAssociation.Builder addLocationsDetails(MirroringEndpointGroupAssociation.LocationDetails.Builder builderForValue)

Output only. The list of locations where the association is present. This
information is retrieved from the linked endpoint group, and not configured
as part of the association itself.

`
repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### addLocationsDetails(int index, MirroringEndpointGroupAssociation.LocationDetails value) (deprecated)

    public MirroringEndpointGroupAssociation.Builder addLocationsDetails(int index, MirroringEndpointGroupAssociation.LocationDetails value)

Output only. The list of locations where the association is present. This
information is retrieved from the linked endpoint group, and not configured
as part of the association itself.

`
repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### addLocationsDetails(int index, MirroringEndpointGroupAssociation.LocationDetails.Builder builderForValue) (deprecated)

    public MirroringEndpointGroupAssociation.Builder addLocationsDetails(int index, MirroringEndpointGroupAssociation.LocationDetails.Builder builderForValue)

Output only. The list of locations where the association is present. This
information is retrieved from the linked endpoint group, and not configured
as part of the association itself.

`
repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### addLocationsDetailsBuilder() (deprecated)

    public MirroringEndpointGroupAssociation.LocationDetails.Builder addLocationsDetailsBuilder()

Output only. The list of locations where the association is present. This
information is retrieved from the linked endpoint group, and not configured
as part of the association itself.

`
repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails.Builder` |   |

### addLocationsDetailsBuilder(int index) (deprecated)

    public MirroringEndpointGroupAssociation.LocationDetails.Builder addLocationsDetailsBuilder(int index)

Output only. The list of locations where the association is present. This
information is retrieved from the linked endpoint group, and not configured
as part of the association itself.

`
repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails.Builder` |   |

### build()

    public MirroringEndpointGroupAssociation build()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation` |   |

### buildPartial()

    public MirroringEndpointGroupAssociation buildPartial()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation` |   |

### clear()

    public MirroringEndpointGroupAssociation.Builder clear()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.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__)

### clearCreateTime()

    public MirroringEndpointGroupAssociation.Builder clearCreateTime()

Output only. The timestamp when the resource was created.
See <https://google.aip.dev/148#timestamps>.

`
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### clearLabels()

    public MirroringEndpointGroupAssociation.Builder clearLabels()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### clearLocations()

    public MirroringEndpointGroupAssociation.Builder clearLocations()

Output only. The list of locations where the association is configured.
This information is retrieved from the linked endpoint group.

`
repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### clearLocationsDetails() (deprecated)

    public MirroringEndpointGroupAssociation.Builder clearLocationsDetails()

Output only. The list of locations where the association is present. This
information is retrieved from the linked endpoint group, and not configured
as part of the association itself.

`
repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### clearMirroringEndpointGroup()

    public MirroringEndpointGroupAssociation.Builder clearMirroringEndpointGroup()

Immutable. The endpoint group that this association is connected to, for
example:
`projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
See <https://google.aip.dev/124>.

`
string mirroring_endpoint_group = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
`

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

### clearName()

    public MirroringEndpointGroupAssociation.Builder clearName()

Immutable. Identifier. The resource name of this endpoint group
association, for example:
`projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg-association`.
See <https://google.aip.dev/122> for more details.

`
string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];
`

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

### clearNetwork()

    public MirroringEndpointGroupAssociation.Builder clearNetwork()

Immutable. The VPC network that is associated. for example:
`projects/123456789/global/networks/my-network`.
See <https://google.aip.dev/124>.

`
string network = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
`

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

### clearReconciling()

    public MirroringEndpointGroupAssociation.Builder clearReconciling()

Output only. The current state of the resource does not match the user's
intended state, and the system is working to reconcile them. This part of
the normal operation (e.g. adding a new location to the target deployment
group). See <https://google.aip.dev/128>.

`bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### clearState()

    public MirroringEndpointGroupAssociation.Builder clearState()

Output only. Current state of the endpoint group association.

`
.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### clearUpdateTime()

    public MirroringEndpointGroupAssociation.Builder clearUpdateTime()

Output only. The timestamp when the resource was most recently updated.
See <https://google.aip.dev/148#timestamps>.

`
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### containsLabels(String key)

    public boolean containsLabels(String key)

Optional. Labels are key/value pairs that help to organize and filter
resources.

`map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **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` |   |

### getCreateTime()

    public Timestamp getCreateTime()

Output only. The timestamp when the resource was created.
See <https://google.aip.dev/148#timestamps>.

`
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getCreateTimeBuilder()

    public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp when the resource was created.
See <https://google.aip.dev/148#timestamps>.

`
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getCreateTimeOrBuilder()

    public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp when the resource was created.
See <https://google.aip.dev/148#timestamps>.

`
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getDefaultInstanceForType()

    public MirroringEndpointGroupAssociation getDefaultInstanceForType()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation` |   |

### 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__)

### getLabels() (deprecated)

    public Map<String,String> getLabels()

Use [#getLabelsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder#com_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_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()

Optional. Labels are key/value pairs that help to organize and filter
resources.

`map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];`

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

### getLabelsMap()

    public Map<String,String> getLabelsMap()

Optional. Labels are key/value pairs that help to organize and filter
resources.

`map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **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)

Optional. Labels are key/value pairs that help to organize and filter
resources.

`map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **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)

Optional. Labels are key/value pairs that help to organize and filter
resources.

`map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **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` |   |

### getLocations(int index)

    public MirroringLocation getLocations(int index)

Output only. The list of locations where the association is configured.
This information is retrieved from the linked endpoint group.

`
repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringLocation` |   |

### getLocationsBuilder(int index)

    public MirroringLocation.Builder getLocationsBuilder(int index)

Output only. The list of locations where the association is configured.
This information is retrieved from the linked endpoint group.

`
repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringLocation.Builder` |   |

### getLocationsBuilderList()

    public List<MirroringLocation.Builder> getLocationsBuilderList()

Output only. The list of locations where the association is configured.
This information is retrieved from the linked endpoint group.

`
repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringLocation.Builder>` |   |

### getLocationsCount()

    public int getLocationsCount()

Output only. The list of locations where the association is configured.
This information is retrieved from the linked endpoint group.

`
repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getLocationsDetails(int index) (deprecated)

    public MirroringEndpointGroupAssociation.LocationDetails getLocationsDetails(int index)

Output only. The list of locations where the association is present. This
information is retrieved from the linked endpoint group, and not configured
as part of the association itself.

`
repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails` |   |

### getLocationsDetailsBuilder(int index) (deprecated)

    public MirroringEndpointGroupAssociation.LocationDetails.Builder getLocationsDetailsBuilder(int index)

Output only. The list of locations where the association is present. This
information is retrieved from the linked endpoint group, and not configured
as part of the association itself.

`
repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails.Builder` |   |

### getLocationsDetailsBuilderList() (deprecated)

    public List<MirroringEndpointGroupAssociation.LocationDetails.Builder> getLocationsDetailsBuilderList()

Output only. The list of locations where the association is present. This
information is retrieved from the linked endpoint group, and not configured
as part of the association itself.

`
repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails.Builder>` |   |

### getLocationsDetailsCount() (deprecated)

    public int getLocationsDetailsCount()

Output only. The list of locations where the association is present. This
information is retrieved from the linked endpoint group, and not configured
as part of the association itself.

`
repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getLocationsDetailsList() (deprecated)

    public List<MirroringEndpointGroupAssociation.LocationDetails> getLocationsDetailsList()

Output only. The list of locations where the association is present. This
information is retrieved from the linked endpoint group, and not configured
as part of the association itself.

`
repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails>` |   |

### getLocationsDetailsOrBuilder(int index) (deprecated)

    public MirroringEndpointGroupAssociation.LocationDetailsOrBuilder getLocationsDetailsOrBuilder(int index)

Output only. The list of locations where the association is present. This
information is retrieved from the linked endpoint group, and not configured
as part of the association itself.

`
repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetailsOrBuilder` |   |

### getLocationsDetailsOrBuilderList() (deprecated)

    public List<? extends MirroringEndpointGroupAssociation.LocationDetailsOrBuilder> getLocationsDetailsOrBuilderList()

Output only. The list of locations where the association is present. This
information is retrieved from the linked endpoint group, and not configured
as part of the association itself.

`
repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetailsOrBuilder>` |   |

### getLocationsList()

    public List<MirroringLocation> getLocationsList()

Output only. The list of locations where the association is configured.
This information is retrieved from the linked endpoint group.

`
repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringLocation>` |   |

### getLocationsOrBuilder(int index)

    public MirroringLocationOrBuilder getLocationsOrBuilder(int index)

Output only. The list of locations where the association is configured.
This information is retrieved from the linked endpoint group.

`
repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringLocationOrBuilder` |   |

### getLocationsOrBuilderList()

    public List<? extends MirroringLocationOrBuilder> getLocationsOrBuilderList()

Output only. The list of locations where the association is configured.
This information is retrieved from the linked endpoint group.

`
repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.networksecurity.v1.MirroringLocationOrBuilder>` |   |

### getMirroringEndpointGroup()

    public String getMirroringEndpointGroup()

Immutable. The endpoint group that this association is connected to, for
example:
`projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
See <https://google.aip.dev/124>.

`
string mirroring_endpoint_group = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
`

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

### getMirroringEndpointGroupBytes()

    public ByteString getMirroringEndpointGroupBytes()

Immutable. The endpoint group that this association is connected to, for
example:
`projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
See <https://google.aip.dev/124>.

`
string mirroring_endpoint_group = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
`

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

### 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()

Immutable. Identifier. The resource name of this endpoint group
association, for example:
`projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg-association`.
See <https://google.aip.dev/122> for more details.

`
string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];
`

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

### getNameBytes()

    public ByteString getNameBytes()

Immutable. Identifier. The resource name of this endpoint group
association, for example:
`projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg-association`.
See <https://google.aip.dev/122> for more details.

`
string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];
`

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

### getNetwork()

    public String getNetwork()

Immutable. The VPC network that is associated. for example:
`projects/123456789/global/networks/my-network`.
See <https://google.aip.dev/124>.

`
string network = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
`

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

### getNetworkBytes()

    public ByteString getNetworkBytes()

Immutable. The VPC network that is associated. for example:
`projects/123456789/global/networks/my-network`.
See <https://google.aip.dev/124>.

`
string network = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
`

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

### getReconciling()

    public boolean getReconciling()

Output only. The current state of the resource does not match the user's
intended state, and the system is working to reconcile them. This part of
the normal operation (e.g. adding a new location to the target deployment
group). See <https://google.aip.dev/128>.

`bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getState()

    public MirroringEndpointGroupAssociation.State getState()

Output only. Current state of the endpoint group association.

`
.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State` | The state. |

### getStateValue()

    public int getStateValue()

Output only. Current state of the endpoint group association.

`
.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for state. |

### getUpdateTime()

    public Timestamp getUpdateTime()

Output only. The timestamp when the resource was most recently updated.
See <https://google.aip.dev/148#timestamps>.

`
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getUpdateTimeBuilder()

    public Timestamp.Builder getUpdateTimeBuilder()

Output only. The timestamp when the resource was most recently updated.
See <https://google.aip.dev/148#timestamps>.

`
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getUpdateTimeOrBuilder()

    public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp when the resource was most recently updated.
See <https://google.aip.dev/148#timestamps>.

`
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasCreateTime()

    public boolean hasCreateTime()

Output only. The timestamp when the resource was created.
See <https://google.aip.dev/148#timestamps>.

`
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasUpdateTime()

    public boolean hasUpdateTime()

Output only. The timestamp when the resource was most recently updated.
See <https://google.aip.dev/148#timestamps>.

`
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the updateTime 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__)

### mergeCreateTime(Timestamp value)

    public MirroringEndpointGroupAssociation.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp when the resource was created.
See <https://google.aip.dev/148#timestamps>.

`
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### mergeFrom(MirroringEndpointGroupAssociation other)

    public MirroringEndpointGroupAssociation.Builder mergeFrom(MirroringEndpointGroupAssociation other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

    public MirroringEndpointGroupAssociation.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-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.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 MirroringEndpointGroupAssociation.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-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.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_)

### mergeUpdateTime(Timestamp value)

    public MirroringEndpointGroupAssociation.Builder mergeUpdateTime(Timestamp value)

Output only. The timestamp when the resource was most recently updated.
See <https://google.aip.dev/148#timestamps>.

`
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

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

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

Optional. Labels are key/value pairs that help to organize and filter
resources.

`map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **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-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### putLabels(String key, String value)

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

Optional. Labels are key/value pairs that help to organize and filter
resources.

`map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **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-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### removeLabels(String key)

    public MirroringEndpointGroupAssociation.Builder removeLabels(String key)

Optional. Labels are key/value pairs that help to organize and filter
resources.

`map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **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-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### removeLocations(int index)

    public MirroringEndpointGroupAssociation.Builder removeLocations(int index)

Output only. The list of locations where the association is configured.
This information is retrieved from the linked endpoint group.

`
repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### removeLocationsDetails(int index) (deprecated)

    public MirroringEndpointGroupAssociation.Builder removeLocationsDetails(int index)

Output only. The list of locations where the association is present. This
information is retrieved from the linked endpoint group, and not configured
as part of the association itself.

`
repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### setCreateTime(Timestamp value)

    public MirroringEndpointGroupAssociation.Builder setCreateTime(Timestamp value)

Output only. The timestamp when the resource was created.
See <https://google.aip.dev/148#timestamps>.

`
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### setCreateTime(Timestamp.Builder builderForValue)

    public MirroringEndpointGroupAssociation.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the resource was created.
See <https://google.aip.dev/148#timestamps>.

`
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### setLocations(int index, MirroringLocation value)

    public MirroringEndpointGroupAssociation.Builder setLocations(int index, MirroringLocation value)

Output only. The list of locations where the association is configured.
This information is retrieved from the linked endpoint group.

`
repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringLocation` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### setLocations(int index, MirroringLocation.Builder builderForValue)

    public MirroringEndpointGroupAssociation.Builder setLocations(int index, MirroringLocation.Builder builderForValue)

Output only. The list of locations where the association is configured.
This information is retrieved from the linked endpoint group.

`
repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringLocation.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### setLocationsDetails(int index, MirroringEndpointGroupAssociation.LocationDetails value) (deprecated)

    public MirroringEndpointGroupAssociation.Builder setLocationsDetails(int index, MirroringEndpointGroupAssociation.LocationDetails value)

Output only. The list of locations where the association is present. This
information is retrieved from the linked endpoint group, and not configured
as part of the association itself.

`
repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### setLocationsDetails(int index, MirroringEndpointGroupAssociation.LocationDetails.Builder builderForValue) (deprecated)

    public MirroringEndpointGroupAssociation.Builder setLocationsDetails(int index, MirroringEndpointGroupAssociation.LocationDetails.Builder builderForValue)

Output only. The list of locations where the association is present. This
information is retrieved from the linked endpoint group, and not configured
as part of the association itself.

`
repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### setMirroringEndpointGroup(String value)

    public MirroringEndpointGroupAssociation.Builder setMirroringEndpointGroup(String value)

Immutable. The endpoint group that this association is connected to, for
example:
`projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
See <https://google.aip.dev/124>.

`
string mirroring_endpoint_group = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
`

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

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

### setMirroringEndpointGroupBytes(ByteString value)

    public MirroringEndpointGroupAssociation.Builder setMirroringEndpointGroupBytes(ByteString value)

Immutable. The endpoint group that this association is connected to, for
example:
`projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
See <https://google.aip.dev/124>.

`
string mirroring_endpoint_group = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
`

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

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

### setName(String value)

    public MirroringEndpointGroupAssociation.Builder setName(String value)

Immutable. Identifier. The resource name of this endpoint group
association, for example:
`projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg-association`.
See <https://google.aip.dev/122> for more details.

`
string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];
`

| **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-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` | This builder for chaining. |

### setNameBytes(ByteString value)

    public MirroringEndpointGroupAssociation.Builder setNameBytes(ByteString value)

Immutable. Identifier. The resource name of this endpoint group
association, for example:
`projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg-association`.
See <https://google.aip.dev/122> for more details.

`
string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];
`

| **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-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` | This builder for chaining. |

### setNetwork(String value)

    public MirroringEndpointGroupAssociation.Builder setNetwork(String value)

Immutable. The VPC network that is associated. for example:
`projects/123456789/global/networks/my-network`.
See <https://google.aip.dev/124>.

`
string network = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
`

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

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

### setNetworkBytes(ByteString value)

    public MirroringEndpointGroupAssociation.Builder setNetworkBytes(ByteString value)

Immutable. The VPC network that is associated. for example:
`projects/123456789/global/networks/my-network`.
See <https://google.aip.dev/124>.

`
string network = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
`

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

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

### setReconciling(boolean value)

    public MirroringEndpointGroupAssociation.Builder setReconciling(boolean value)

Output only. The current state of the resource does not match the user's
intended state, and the system is working to reconcile them. This part of
the normal operation (e.g. adding a new location to the target deployment
group). See <https://google.aip.dev/128>.

`bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

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

### setState(MirroringEndpointGroupAssociation.State value)

    public MirroringEndpointGroupAssociation.Builder setState(MirroringEndpointGroupAssociation.State value)

Output only. Current state of the endpoint group association.

`
.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State` The state to set. |

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

### setStateValue(int value)

    public MirroringEndpointGroupAssociation.Builder setStateValue(int value)

Output only. Current state of the endpoint group association.

`
.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The enum numeric value on the wire for state to set. |

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

### setUpdateTime(Timestamp value)

    public MirroringEndpointGroupAssociation.Builder setUpdateTime(Timestamp value)

Output only. The timestamp when the resource was most recently updated.
See <https://google.aip.dev/148#timestamps>.

`
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |

### setUpdateTime(Timestamp.Builder builderForValue)

    public MirroringEndpointGroupAssociation.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the resource was most recently updated.
See <https://google.aip.dev/148#timestamps>.

`
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder` |   |