# Class ConnectivityTest.Builder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder)

    public static final class ConnectivityTest.Builder extends GeneratedMessageV3.Builder<ConnectivityTest.Builder> implements ConnectivityTestOrBuilder

A Connectivity Test for a network reachability analysis.

Protobuf type `google.events.cloud.networkmanagement.v1.ConnectivityTest`

## Inheritance

[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) \> [GeneratedMessageV3.Builder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html) \> ConnectivityTest.Builder

## Implements

[ConnectivityTestOrBuilder](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTestOrBuilder)

## 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_) [GeneratedMessageV3.Builder.addRepeatedField(Descriptors.FieldDescriptor,Object)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_addRepeatedField_com_google_protobuf_Descriptors_FieldDescriptor_java_lang_Object_) [GeneratedMessageV3.Builder.clear()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_clear__) [GeneratedMessageV3.Builder.clearField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_clearField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessageV3.Builder.clearOneof(Descriptors.OneofDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_clearOneof_com_google_protobuf_Descriptors_OneofDescriptor_) [GeneratedMessageV3.Builder.clone()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_clone__) [GeneratedMessageV3.Builder.getAllFields()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_getAllFields__) [GeneratedMessageV3.Builder.getDescriptorForType()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_getDescriptorForType__) [GeneratedMessageV3.Builder.getField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_getField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessageV3.Builder.getFieldBuilder(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_getFieldBuilder_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessageV3.Builder.getOneofFieldDescriptor(Descriptors.OneofDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_getOneofFieldDescriptor_com_google_protobuf_Descriptors_OneofDescriptor_) [GeneratedMessageV3.Builder.getParentForChildren()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_getParentForChildren__) [GeneratedMessageV3.Builder.getRepeatedField(Descriptors.FieldDescriptor,int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_getRepeatedField_com_google_protobuf_Descriptors_FieldDescriptor_int_) [GeneratedMessageV3.Builder.getRepeatedFieldBuilder(Descriptors.FieldDescriptor,int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_getRepeatedFieldBuilder_com_google_protobuf_Descriptors_FieldDescriptor_int_) [GeneratedMessageV3.Builder.getRepeatedFieldCount(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_getRepeatedFieldCount_com_google_protobuf_Descriptors_FieldDescriptor_) com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() [GeneratedMessageV3.Builder.getUnknownFields()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_getUnknownFields__) [GeneratedMessageV3.Builder.hasField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_hasField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessageV3.Builder.hasOneof(Descriptors.OneofDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_hasOneof_com_google_protobuf_Descriptors_OneofDescriptor_) [GeneratedMessageV3.Builder.internalGetFieldAccessorTable()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_internalGetFieldAccessorTable__) [GeneratedMessageV3.Builder.internalGetMapField(int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_internalGetMapField_int_) com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int) [GeneratedMessageV3.Builder.internalGetMutableMapField(int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_internalGetMutableMapField_int_) com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) [GeneratedMessageV3.Builder.isClean()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_isClean__) [GeneratedMessageV3.Builder.isInitialized()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_isInitialized__) [GeneratedMessageV3.Builder.markClean()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_markClean__) [GeneratedMessageV3.Builder.mergeUnknownFields(UnknownFieldSet)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_mergeUnknownFields_com_google_protobuf_UnknownFieldSet_) com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) [GeneratedMessageV3.Builder.newBuilderForField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_newBuilderForField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessageV3.Builder.onBuilt()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_onBuilt__) [GeneratedMessageV3.Builder.onChanged()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_onChanged__) com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) [GeneratedMessageV3.Builder.setField(Descriptors.FieldDescriptor,Object)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_setField_com_google_protobuf_Descriptors_FieldDescriptor_java_lang_Object_) [GeneratedMessageV3.Builder.setRepeatedField(Descriptors.FieldDescriptor,int,Object)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_setRepeatedField_com_google_protobuf_Descriptors_FieldDescriptor_int_java_lang_Object_) com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) [GeneratedMessageV3.Builder.setUnknownFields(UnknownFieldSet)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_setUnknownFields_com_google_protobuf_UnknownFieldSet_) [GeneratedMessageV3.Builder.setUnknownFieldsProto3(UnknownFieldSet)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_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

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

    public ConnectivityTest.Builder addAllRelatedProjects(Iterable<String> values)

Other projects that may be relevant for reachability analysis.
This is applicable to scenarios where a test can cross project boundaries.

`repeated string related_projects = 6;`

| **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 relatedProjects to add. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` | This builder for chaining. |

### addRelatedProjects(String value)

    public ConnectivityTest.Builder addRelatedProjects(String value)

Other projects that may be relevant for reachability analysis.
This is applicable to scenarios where a test can cross project boundaries.

`repeated string related_projects = 6;`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` | This builder for chaining. |

### addRelatedProjectsBytes(ByteString value)

    public ConnectivityTest.Builder addRelatedProjectsBytes(ByteString value)

Other projects that may be relevant for reachability analysis.
This is applicable to scenarios where a test can cross project boundaries.

`repeated string related_projects = 6;`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` | This builder for chaining. |

### addRepeatedField(Descriptors.FieldDescriptor field, Object value)

    public ConnectivityTest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `field` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Descriptors.FieldDescriptor.html` |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

**Overrides** [GeneratedMessageV3.Builder\<BuilderType\>.addRepeatedField(Descriptors.FieldDescriptor field, Object value)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_addRepeatedField_com_google_protobuf_Descriptors_FieldDescriptor_java_lang_Object_)

### build()

    public ConnectivityTest build()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest` |   |

### buildPartial()

    public ConnectivityTest buildPartial()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest` |   |

### clear()

    public ConnectivityTest.Builder clear()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

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

### clearCreateTime()

    public ConnectivityTest.Builder clearCreateTime()

Output only. The time the test was created.

`.google.protobuf.Timestamp create_time = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

### clearDescription()

    public ConnectivityTest.Builder clearDescription()

The user-supplied description of the Connectivity Test.
Maximum of 512 characters.

`string description = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` | This builder for chaining. |

### clearDestination()

    public ConnectivityTest.Builder clearDestination()

Required. Destination specification of the Connectivity Test.
You can use a combination of destination IP address, Compute Engine
VM instance, or VPC network to uniquely identify the destination
location.
Even if the destination IP address is not unique, the source IP
location is unique. Usually, the analysis can infer the destination
endpoint from route information.
If the destination you specify is a VM instance and the instance has
multiple network interfaces, then you must also specify either
a destination IP address or VPC network to identify the destination
interface.
A reachability analysis proceeds even if the destination location is
ambiguous. However, the result can include endpoints that you don't
intend to test.

`.google.events.cloud.networkmanagement.v1.Endpoint destination = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

### clearDisplayName()

    public ConnectivityTest.Builder clearDisplayName()

Output only. The display name of a Connectivity Test.

`string display_name = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` | This builder for chaining. |

### clearField(Descriptors.FieldDescriptor field)

    public ConnectivityTest.Builder clearField(Descriptors.FieldDescriptor field)

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

**Overrides** [GeneratedMessageV3.Builder\<BuilderType\>.clearField(Descriptors.FieldDescriptor field)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_clearField_com_google_protobuf_Descriptors_FieldDescriptor_)

### clearLabels()

    public ConnectivityTest.Builder clearLabels()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

### clearName()

    public ConnectivityTest.Builder clearName()

Required. Unique name of the resource using the form:
`projects/{project_id}/locations/global/connectivityTests/{test_id}`

`string name = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` | This builder for chaining. |

### clearOneof(Descriptors.OneofDescriptor oneof)

    public ConnectivityTest.Builder clearOneof(Descriptors.OneofDescriptor oneof)

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

**Overrides** [GeneratedMessageV3.Builder\<BuilderType\>.clearOneof(Descriptors.OneofDescriptor oneof)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_clearOneof_com_google_protobuf_Descriptors_OneofDescriptor_)

### clearProtocol()

    public ConnectivityTest.Builder clearProtocol()

IP Protocol of the test. When not provided, "TCP" is assumed.

`string protocol = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` | This builder for chaining. |

### clearReachabilityDetails()

    public ConnectivityTest.Builder clearReachabilityDetails()

Output only. The reachability details of this test from the latest run.
The details are updated when creating a new test, updating an
existing test, or triggering a one-time rerun of an existing test.

`
.google.events.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

### clearRelatedProjects()

    public ConnectivityTest.Builder clearRelatedProjects()

Other projects that may be relevant for reachability analysis.
This is applicable to scenarios where a test can cross project boundaries.

`repeated string related_projects = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` | This builder for chaining. |

### clearSource()

    public ConnectivityTest.Builder clearSource()

Required. Source specification of the Connectivity Test.
You can use a combination of source IP address, virtual machine
(VM) instance, or Compute Engine network to uniquely identify
the source location.
Examples:
If the source IP address is an internal IP address within a Google Cloud
Virtual Private Cloud (VPC) network, then you must also specify the VPC
network. Otherwise, specify the VM instance, which already contains its
internal IP address and VPC network information.
If the source of the test is within an on-premises network, then you must
provide the destination VPC network.
If the source endpoint is a Compute Engine VM instance with multiple
network interfaces, the instance itself is not sufficient to identify the
endpoint. So, you must also specify the source IP address or VPC network.
A reachability analysis proceeds even if the source location is
ambiguous. However, the test result may include endpoints that you don't
intend to test.

`.google.events.cloud.networkmanagement.v1.Endpoint source = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

### clearUpdateTime()

    public ConnectivityTest.Builder clearUpdateTime()

Output only. The time the test's configuration was updated.

`.google.protobuf.Timestamp update_time = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

### clone()

    public ConnectivityTest.Builder clone()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

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

### containsLabels(String key)

    public boolean containsLabels(String key)

Resource labels to represent user-provided metadata.

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

| **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 time the test was created.

`.google.protobuf.Timestamp create_time = 10;`

| **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 time the test was created.

`.google.protobuf.Timestamp create_time = 10;`

| **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 time the test was created.

`.google.protobuf.Timestamp create_time = 10;`

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

### getDefaultInstanceForType()

    public ConnectivityTest getDefaultInstanceForType()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest` |   |

### getDescription()

    public String getDescription()

The user-supplied description of the Connectivity Test.
Maximum of 512 characters.

`string description = 2;`

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

### getDescriptionBytes()

    public ByteString getDescriptionBytes()

The user-supplied description of the Connectivity Test.
Maximum of 512 characters.

`string description = 2;`

| **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** [GeneratedMessageV3.Builder\<BuilderType\>.getDescriptorForType()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_getDescriptorForType__)

### getDestination()

    public Endpoint getDestination()

Required. Destination specification of the Connectivity Test.
You can use a combination of destination IP address, Compute Engine
VM instance, or VPC network to uniquely identify the destination
location.
Even if the destination IP address is not unique, the source IP
location is unique. Usually, the analysis can infer the destination
endpoint from route information.
If the destination you specify is a VM instance and the instance has
multiple network interfaces, then you must also specify either
a destination IP address or VPC network to identify the destination
interface.
A reachability analysis proceeds even if the destination location is
ambiguous. However, the result can include endpoints that you don't
intend to test.

`.google.events.cloud.networkmanagement.v1.Endpoint destination = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.Endpoint` | The destination. |

### getDestinationBuilder()

    public Endpoint.Builder getDestinationBuilder()

Required. Destination specification of the Connectivity Test.
You can use a combination of destination IP address, Compute Engine
VM instance, or VPC network to uniquely identify the destination
location.
Even if the destination IP address is not unique, the source IP
location is unique. Usually, the analysis can infer the destination
endpoint from route information.
If the destination you specify is a VM instance and the instance has
multiple network interfaces, then you must also specify either
a destination IP address or VPC network to identify the destination
interface.
A reachability analysis proceeds even if the destination location is
ambiguous. However, the result can include endpoints that you don't
intend to test.

`.google.events.cloud.networkmanagement.v1.Endpoint destination = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.Endpoint.Builder` |   |

### getDestinationOrBuilder()

    public EndpointOrBuilder getDestinationOrBuilder()

Required. Destination specification of the Connectivity Test.
You can use a combination of destination IP address, Compute Engine
VM instance, or VPC network to uniquely identify the destination
location.
Even if the destination IP address is not unique, the source IP
location is unique. Usually, the analysis can infer the destination
endpoint from route information.
If the destination you specify is a VM instance and the instance has
multiple network interfaces, then you must also specify either
a destination IP address or VPC network to identify the destination
interface.
A reachability analysis proceeds even if the destination location is
ambiguous. However, the result can include endpoints that you don't
intend to test.

`.google.events.cloud.networkmanagement.v1.Endpoint destination = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.EndpointOrBuilder` |   |

### getDisplayName()

    public String getDisplayName()

Output only. The display name of a Connectivity Test.

`string display_name = 7;`

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

### getDisplayNameBytes()

    public ByteString getDisplayNameBytes()

Output only. The display name of a Connectivity Test.

`string display_name = 7;`

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

### getLabels()

    public Map<String,String> getLabels()

Use [#getLabelsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder#com_google_events_cloud_networkmanagement_v1_ConnectivityTest_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()

Resource labels to represent user-provided metadata.

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

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

### getLabelsMap()

    public Map<String,String> getLabelsMap()

Resource labels to represent user-provided metadata.

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

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

Resource labels to represent user-provided metadata.

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

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

Resource labels to represent user-provided metadata.

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

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

### getMutableLabels()

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

Required. Unique name of the resource using the form:
`projects/{project_id}/locations/global/connectivityTests/{test_id}`

`string name = 1;`

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

### getNameBytes()

    public ByteString getNameBytes()

Required. Unique name of the resource using the form:
`projects/{project_id}/locations/global/connectivityTests/{test_id}`

`string name = 1;`

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

### getProtocol()

    public String getProtocol()

IP Protocol of the test. When not provided, "TCP" is assumed.

`string protocol = 5;`

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

### getProtocolBytes()

    public ByteString getProtocolBytes()

IP Protocol of the test. When not provided, "TCP" is assumed.

`string protocol = 5;`

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

### getReachabilityDetails()

    public ReachabilityDetails getReachabilityDetails()

Output only. The reachability details of this test from the latest run.
The details are updated when creating a new test, updating an
existing test, or triggering a one-time rerun of an existing test.

`
.google.events.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ReachabilityDetails` | The reachabilityDetails. |

### getReachabilityDetailsBuilder()

    public ReachabilityDetails.Builder getReachabilityDetailsBuilder()

Output only. The reachability details of this test from the latest run.
The details are updated when creating a new test, updating an
existing test, or triggering a one-time rerun of an existing test.

`
.google.events.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ReachabilityDetails.Builder` |   |

### getReachabilityDetailsOrBuilder()

    public ReachabilityDetailsOrBuilder getReachabilityDetailsOrBuilder()

Output only. The reachability details of this test from the latest run.
The details are updated when creating a new test, updating an
existing test, or triggering a one-time rerun of an existing test.

`
.google.events.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ReachabilityDetailsOrBuilder` |   |

### getRelatedProjects(int index)

    public String getRelatedProjects(int index)

Other projects that may be relevant for reachability analysis.
This is applicable to scenarios where a test can cross project boundaries.

`repeated string related_projects = 6;`

| **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 relatedProjects at the given index. |

### getRelatedProjectsBytes(int index)

    public ByteString getRelatedProjectsBytes(int index)

Other projects that may be relevant for reachability analysis.
This is applicable to scenarios where a test can cross project boundaries.

`repeated string related_projects = 6;`

| **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 relatedProjects at the given index. |

### getRelatedProjectsCount()

    public int getRelatedProjectsCount()

Other projects that may be relevant for reachability analysis.
This is applicable to scenarios where a test can cross project boundaries.

`repeated string related_projects = 6;`

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

### getRelatedProjectsList()

    public ProtocolStringList getRelatedProjectsList()

Other projects that may be relevant for reachability analysis.
This is applicable to scenarios where a test can cross project boundaries.

`repeated string related_projects = 6;`

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

### getSource()

    public Endpoint getSource()

Required. Source specification of the Connectivity Test.
You can use a combination of source IP address, virtual machine
(VM) instance, or Compute Engine network to uniquely identify
the source location.
Examples:
If the source IP address is an internal IP address within a Google Cloud
Virtual Private Cloud (VPC) network, then you must also specify the VPC
network. Otherwise, specify the VM instance, which already contains its
internal IP address and VPC network information.
If the source of the test is within an on-premises network, then you must
provide the destination VPC network.
If the source endpoint is a Compute Engine VM instance with multiple
network interfaces, the instance itself is not sufficient to identify the
endpoint. So, you must also specify the source IP address or VPC network.
A reachability analysis proceeds even if the source location is
ambiguous. However, the test result may include endpoints that you don't
intend to test.

`.google.events.cloud.networkmanagement.v1.Endpoint source = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.Endpoint` | The source. |

### getSourceBuilder()

    public Endpoint.Builder getSourceBuilder()

Required. Source specification of the Connectivity Test.
You can use a combination of source IP address, virtual machine
(VM) instance, or Compute Engine network to uniquely identify
the source location.
Examples:
If the source IP address is an internal IP address within a Google Cloud
Virtual Private Cloud (VPC) network, then you must also specify the VPC
network. Otherwise, specify the VM instance, which already contains its
internal IP address and VPC network information.
If the source of the test is within an on-premises network, then you must
provide the destination VPC network.
If the source endpoint is a Compute Engine VM instance with multiple
network interfaces, the instance itself is not sufficient to identify the
endpoint. So, you must also specify the source IP address or VPC network.
A reachability analysis proceeds even if the source location is
ambiguous. However, the test result may include endpoints that you don't
intend to test.

`.google.events.cloud.networkmanagement.v1.Endpoint source = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.Endpoint.Builder` |   |

### getSourceOrBuilder()

    public EndpointOrBuilder getSourceOrBuilder()

Required. Source specification of the Connectivity Test.
You can use a combination of source IP address, virtual machine
(VM) instance, or Compute Engine network to uniquely identify
the source location.
Examples:
If the source IP address is an internal IP address within a Google Cloud
Virtual Private Cloud (VPC) network, then you must also specify the VPC
network. Otherwise, specify the VM instance, which already contains its
internal IP address and VPC network information.
If the source of the test is within an on-premises network, then you must
provide the destination VPC network.
If the source endpoint is a Compute Engine VM instance with multiple
network interfaces, the instance itself is not sufficient to identify the
endpoint. So, you must also specify the source IP address or VPC network.
A reachability analysis proceeds even if the source location is
ambiguous. However, the test result may include endpoints that you don't
intend to test.

`.google.events.cloud.networkmanagement.v1.Endpoint source = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.EndpointOrBuilder` |   |

### getUpdateTime()

    public Timestamp getUpdateTime()

Output only. The time the test's configuration was updated.

`.google.protobuf.Timestamp update_time = 11;`

| **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 time the test's configuration was updated.

`.google.protobuf.Timestamp update_time = 11;`

| **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 time the test's configuration was updated.

`.google.protobuf.Timestamp update_time = 11;`

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

### hasCreateTime()

    public boolean hasCreateTime()

Output only. The time the test was created.

`.google.protobuf.Timestamp create_time = 10;`

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

### hasDestination()

    public boolean hasDestination()

Required. Destination specification of the Connectivity Test.
You can use a combination of destination IP address, Compute Engine
VM instance, or VPC network to uniquely identify the destination
location.
Even if the destination IP address is not unique, the source IP
location is unique. Usually, the analysis can infer the destination
endpoint from route information.
If the destination you specify is a VM instance and the instance has
multiple network interfaces, then you must also specify either
a destination IP address or VPC network to identify the destination
interface.
A reachability analysis proceeds even if the destination location is
ambiguous. However, the result can include endpoints that you don't
intend to test.

`.google.events.cloud.networkmanagement.v1.Endpoint destination = 4;`

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

### hasReachabilityDetails()

    public boolean hasReachabilityDetails()

Output only. The reachability details of this test from the latest run.
The details are updated when creating a new test, updating an
existing test, or triggering a one-time rerun of an existing test.

`
.google.events.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12;
`

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

### hasSource()

    public boolean hasSource()

Required. Source specification of the Connectivity Test.
You can use a combination of source IP address, virtual machine
(VM) instance, or Compute Engine network to uniquely identify
the source location.
Examples:
If the source IP address is an internal IP address within a Google Cloud
Virtual Private Cloud (VPC) network, then you must also specify the VPC
network. Otherwise, specify the VM instance, which already contains its
internal IP address and VPC network information.
If the source of the test is within an on-premises network, then you must
provide the destination VPC network.
If the source endpoint is a Compute Engine VM instance with multiple
network interfaces, the instance itself is not sufficient to identify the
endpoint. So, you must also specify the source IP address or VPC network.
A reachability analysis proceeds even if the source location is
ambiguous. However, the test result may include endpoints that you don't
intend to test.

`.google.events.cloud.networkmanagement.v1.Endpoint source = 3;`

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

### hasUpdateTime()

    public boolean hasUpdateTime()

Output only. The time the test's configuration was updated.

`.google.protobuf.Timestamp update_time = 11;`

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

### internalGetFieldAccessorTable()

    protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()

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

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

### internalGetMapField(int number)

    protected MapField internalGetMapField(int number)

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

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

**Overrides** [GeneratedMessageV3.Builder\<BuilderType\>.internalGetMapField(int fieldNumber)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_internalGetMapField_int_)

### internalGetMutableMapField(int number)

    protected MapField internalGetMutableMapField(int number)

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

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

**Overrides** [GeneratedMessageV3.Builder\<BuilderType\>.internalGetMutableMapField(int fieldNumber)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_internalGetMutableMapField_int_)

### isInitialized()

    public final boolean isInitialized()

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

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

### mergeCreateTime(Timestamp value)

    public ConnectivityTest.Builder mergeCreateTime(Timestamp value)

Output only. The time the test was created.

`.google.protobuf.Timestamp create_time = 10;`

| **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-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

### mergeDestination(Endpoint value)

    public ConnectivityTest.Builder mergeDestination(Endpoint value)

Required. Destination specification of the Connectivity Test.
You can use a combination of destination IP address, Compute Engine
VM instance, or VPC network to uniquely identify the destination
location.
Even if the destination IP address is not unique, the source IP
location is unique. Usually, the analysis can infer the destination
endpoint from route information.
If the destination you specify is a VM instance and the instance has
multiple network interfaces, then you must also specify either
a destination IP address or VPC network to identify the destination
interface.
A reachability analysis proceeds even if the destination location is
ambiguous. However, the result can include endpoints that you don't
intend to test.

`.google.events.cloud.networkmanagement.v1.Endpoint destination = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.Endpoint` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

### mergeFrom(ConnectivityTest other)

    public ConnectivityTest.Builder mergeFrom(ConnectivityTest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

### mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

    public ConnectivityTest.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-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.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 ConnectivityTest.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-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.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_)

### mergeReachabilityDetails(ReachabilityDetails value)

    public ConnectivityTest.Builder mergeReachabilityDetails(ReachabilityDetails value)

Output only. The reachability details of this test from the latest run.
The details are updated when creating a new test, updating an
existing test, or triggering a one-time rerun of an existing test.

`
.google.events.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ReachabilityDetails` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

### mergeSource(Endpoint value)

    public ConnectivityTest.Builder mergeSource(Endpoint value)

Required. Source specification of the Connectivity Test.
You can use a combination of source IP address, virtual machine
(VM) instance, or Compute Engine network to uniquely identify
the source location.
Examples:
If the source IP address is an internal IP address within a Google Cloud
Virtual Private Cloud (VPC) network, then you must also specify the VPC
network. Otherwise, specify the VM instance, which already contains its
internal IP address and VPC network information.
If the source of the test is within an on-premises network, then you must
provide the destination VPC network.
If the source endpoint is a Compute Engine VM instance with multiple
network interfaces, the instance itself is not sufficient to identify the
endpoint. So, you must also specify the source IP address or VPC network.
A reachability analysis proceeds even if the source location is
ambiguous. However, the test result may include endpoints that you don't
intend to test.

`.google.events.cloud.networkmanagement.v1.Endpoint source = 3;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.Endpoint` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

### mergeUnknownFields(UnknownFieldSet unknownFields)

    public final ConnectivityTest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

**Overrides** [GeneratedMessageV3.Builder\<BuilderType\>.mergeUnknownFields(UnknownFieldSet unknownFields)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_mergeUnknownFields_com_google_protobuf_UnknownFieldSet_)

### mergeUpdateTime(Timestamp value)

    public ConnectivityTest.Builder mergeUpdateTime(Timestamp value)

Output only. The time the test's configuration was updated.

`.google.protobuf.Timestamp update_time = 11;`

| **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-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

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

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

Resource labels to represent user-provided metadata.

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

| **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-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

### putLabels(String key, String value)

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

Resource labels to represent user-provided metadata.

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

| **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-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

### removeLabels(String key)

    public ConnectivityTest.Builder removeLabels(String key)

Resource labels to represent user-provided metadata.

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

| **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-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

### setCreateTime(Timestamp value)

    public ConnectivityTest.Builder setCreateTime(Timestamp value)

Output only. The time the test was created.

`.google.protobuf.Timestamp create_time = 10;`

| **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-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

### setCreateTime(Timestamp.Builder builderForValue)

    public ConnectivityTest.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time the test was created.

`.google.protobuf.Timestamp create_time = 10;`

| **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-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

### setDescription(String value)

    public ConnectivityTest.Builder setDescription(String value)

The user-supplied description of the Connectivity Test.
Maximum of 512 characters.

`string description = 2;`

| **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-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` | This builder for chaining. |

### setDescriptionBytes(ByteString value)

    public ConnectivityTest.Builder setDescriptionBytes(ByteString value)

The user-supplied description of the Connectivity Test.
Maximum of 512 characters.

`string description = 2;`

| **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-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` | This builder for chaining. |

### setDestination(Endpoint value)

    public ConnectivityTest.Builder setDestination(Endpoint value)

Required. Destination specification of the Connectivity Test.
You can use a combination of destination IP address, Compute Engine
VM instance, or VPC network to uniquely identify the destination
location.
Even if the destination IP address is not unique, the source IP
location is unique. Usually, the analysis can infer the destination
endpoint from route information.
If the destination you specify is a VM instance and the instance has
multiple network interfaces, then you must also specify either
a destination IP address or VPC network to identify the destination
interface.
A reachability analysis proceeds even if the destination location is
ambiguous. However, the result can include endpoints that you don't
intend to test.

`.google.events.cloud.networkmanagement.v1.Endpoint destination = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.Endpoint` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

### setDestination(Endpoint.Builder builderForValue)

    public ConnectivityTest.Builder setDestination(Endpoint.Builder builderForValue)

Required. Destination specification of the Connectivity Test.
You can use a combination of destination IP address, Compute Engine
VM instance, or VPC network to uniquely identify the destination
location.
Even if the destination IP address is not unique, the source IP
location is unique. Usually, the analysis can infer the destination
endpoint from route information.
If the destination you specify is a VM instance and the instance has
multiple network interfaces, then you must also specify either
a destination IP address or VPC network to identify the destination
interface.
A reachability analysis proceeds even if the destination location is
ambiguous. However, the result can include endpoints that you don't
intend to test.

`.google.events.cloud.networkmanagement.v1.Endpoint destination = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.Endpoint.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

### setDisplayName(String value)

    public ConnectivityTest.Builder setDisplayName(String value)

Output only. The display name of a Connectivity Test.

`string display_name = 7;`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` | This builder for chaining. |

### setDisplayNameBytes(ByteString value)

    public ConnectivityTest.Builder setDisplayNameBytes(ByteString value)

Output only. The display name of a Connectivity Test.

`string display_name = 7;`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` | This builder for chaining. |

### setField(Descriptors.FieldDescriptor field, Object value)

    public ConnectivityTest.Builder setField(Descriptors.FieldDescriptor field, Object value)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `field` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Descriptors.FieldDescriptor.html` |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

**Overrides** [GeneratedMessageV3.Builder\<BuilderType\>.setField(Descriptors.FieldDescriptor field, Object value)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_setField_com_google_protobuf_Descriptors_FieldDescriptor_java_lang_Object_)

### setName(String value)

    public ConnectivityTest.Builder setName(String value)

Required. Unique name of the resource using the form:
`projects/{project_id}/locations/global/connectivityTests/{test_id}`

`string name = 1;`

| **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-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` | This builder for chaining. |

### setNameBytes(ByteString value)

    public ConnectivityTest.Builder setNameBytes(ByteString value)

Required. Unique name of the resource using the form:
`projects/{project_id}/locations/global/connectivityTests/{test_id}`

`string name = 1;`

| **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-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` | This builder for chaining. |

### setProtocol(String value)

    public ConnectivityTest.Builder setProtocol(String value)

IP Protocol of the test. When not provided, "TCP" is assumed.

`string protocol = 5;`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` | This builder for chaining. |

### setProtocolBytes(ByteString value)

    public ConnectivityTest.Builder setProtocolBytes(ByteString value)

IP Protocol of the test. When not provided, "TCP" is assumed.

`string protocol = 5;`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` | This builder for chaining. |

### setReachabilityDetails(ReachabilityDetails value)

    public ConnectivityTest.Builder setReachabilityDetails(ReachabilityDetails value)

Output only. The reachability details of this test from the latest run.
The details are updated when creating a new test, updating an
existing test, or triggering a one-time rerun of an existing test.

`
.google.events.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ReachabilityDetails` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

### setReachabilityDetails(ReachabilityDetails.Builder builderForValue)

    public ConnectivityTest.Builder setReachabilityDetails(ReachabilityDetails.Builder builderForValue)

Output only. The reachability details of this test from the latest run.
The details are updated when creating a new test, updating an
existing test, or triggering a one-time rerun of an existing test.

`
.google.events.cloud.networkmanagement.v1.ReachabilityDetails reachability_details = 12;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ReachabilityDetails.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

### setRelatedProjects(int index, String value)

    public ConnectivityTest.Builder setRelatedProjects(int index, String value)

Other projects that may be relevant for reachability analysis.
This is applicable to scenarios where a test can cross project boundaries.

`repeated string related_projects = 6;`

| **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 relatedProjects to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` | This builder for chaining. |

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

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `field` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Descriptors.FieldDescriptor.html` |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

**Overrides** [GeneratedMessageV3.Builder\<BuilderType\>.setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_setRepeatedField_com_google_protobuf_Descriptors_FieldDescriptor_int_java_lang_Object_)

### setSource(Endpoint value)

    public ConnectivityTest.Builder setSource(Endpoint value)

Required. Source specification of the Connectivity Test.
You can use a combination of source IP address, virtual machine
(VM) instance, or Compute Engine network to uniquely identify
the source location.
Examples:
If the source IP address is an internal IP address within a Google Cloud
Virtual Private Cloud (VPC) network, then you must also specify the VPC
network. Otherwise, specify the VM instance, which already contains its
internal IP address and VPC network information.
If the source of the test is within an on-premises network, then you must
provide the destination VPC network.
If the source endpoint is a Compute Engine VM instance with multiple
network interfaces, the instance itself is not sufficient to identify the
endpoint. So, you must also specify the source IP address or VPC network.
A reachability analysis proceeds even if the source location is
ambiguous. However, the test result may include endpoints that you don't
intend to test.

`.google.events.cloud.networkmanagement.v1.Endpoint source = 3;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.Endpoint` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

### setSource(Endpoint.Builder builderForValue)

    public ConnectivityTest.Builder setSource(Endpoint.Builder builderForValue)

Required. Source specification of the Connectivity Test.
You can use a combination of source IP address, virtual machine
(VM) instance, or Compute Engine network to uniquely identify
the source location.
Examples:
If the source IP address is an internal IP address within a Google Cloud
Virtual Private Cloud (VPC) network, then you must also specify the VPC
network. Otherwise, specify the VM instance, which already contains its
internal IP address and VPC network information.
If the source of the test is within an on-premises network, then you must
provide the destination VPC network.
If the source endpoint is a Compute Engine VM instance with multiple
network interfaces, the instance itself is not sufficient to identify the
endpoint. So, you must also specify the source IP address or VPC network.
A reachability analysis proceeds even if the source location is
ambiguous. However, the test result may include endpoints that you don't
intend to test.

`.google.events.cloud.networkmanagement.v1.Endpoint source = 3;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.Endpoint.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

### setUnknownFields(UnknownFieldSet unknownFields)

    public final ConnectivityTest.Builder setUnknownFields(UnknownFieldSet unknownFields)

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

**Overrides** [GeneratedMessageV3.Builder\<BuilderType\>.setUnknownFields(UnknownFieldSet unknownFields)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_setUnknownFields_com_google_protobuf_UnknownFieldSet_)

### setUpdateTime(Timestamp value)

    public ConnectivityTest.Builder setUpdateTime(Timestamp value)

Output only. The time the test's configuration was updated.

`.google.protobuf.Timestamp update_time = 11;`

| **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-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |

### setUpdateTime(Timestamp.Builder builderForValue)

    public ConnectivityTest.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time the test's configuration was updated.

`.google.protobuf.Timestamp update_time = 11;`

| **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-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.ConnectivityTest.Builder` |   |