Class Endpoint.Builder (0.14.1)

public static final class Endpoint.Builder extends GeneratedMessageV3.Builder<Endpoint.Builder> implements EndpointOrBuilder

Source or destination of the Connectivity Test.

Protobuf type google.events.cloud.networkmanagement.v1.Endpoint

Implements

EndpointOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Endpoint build()
Returns
TypeDescription
Endpoint

buildPartial()

public Endpoint buildPartial()
Returns
TypeDescription
Endpoint

clear()

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

clearAppEngineVersion()

public Endpoint.Builder clearAppEngineVersion()

An App Engine service version.

.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;

Returns
TypeDescription
Endpoint.Builder

clearCloudFunction()

public Endpoint.Builder clearCloudFunction()

A Cloud Function.

.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;

Returns
TypeDescription
Endpoint.Builder

clearCloudRunRevision()

public Endpoint.Builder clearCloudRunRevision()

A Cloud Run revision

.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;

Returns
TypeDescription
Endpoint.Builder

clearCloudSqlInstance()

public Endpoint.Builder clearCloudSqlInstance()

A Cloud SQL instance URI.

string cloud_sql_instance = 8;

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGkeMasterCluster()

public Endpoint.Builder clearGkeMasterCluster()

A cluster URI for Google Kubernetes Engine master.

string gke_master_cluster = 7;

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

clearInstance()

public Endpoint.Builder clearInstance()

A Compute Engine instance URI.

string instance = 3;

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

clearIpAddress()

public Endpoint.Builder clearIpAddress()

The IP address of the endpoint, which can be an external or internal IP. An IPv6 address is only allowed when the test's destination is a global load balancer VIP.

string ip_address = 1;

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

clearNetwork()

public Endpoint.Builder clearNetwork()

A Compute Engine network URI.

string network = 4;

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

clearNetworkType()

public Endpoint.Builder clearNetworkType()

Type of the network where the endpoint is located. Applicable only to source endpoint, as destination network type can be inferred from the source.

.google.events.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5;

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Endpoint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Endpoint.Builder
Overrides

clearPort()

public Endpoint.Builder clearPort()

The IP protocol port of the endpoint. Only applicable when protocol is TCP or UDP.

int32 port = 2;

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

clearProjectId()

public Endpoint.Builder clearProjectId()

Project ID where the endpoint is located. The Project ID can be derived from the URI if you provide a VM instance or network URI. The following are two cases where you must provide the project ID:

  1. Only the IP address is specified, and the IP address is within a Google Cloud project.
  2. When you are using Shared VPC and the IP address that you provide is from the service project. In this case, the network that the IP address resides in is defined in the host project.

string project_id = 6;

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

clone()

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

getAppEngineVersion()

public Endpoint.AppEngineVersionEndpoint getAppEngineVersion()

An App Engine service version.

.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;

Returns
TypeDescription
Endpoint.AppEngineVersionEndpoint

The appEngineVersion.

getAppEngineVersionBuilder()

public Endpoint.AppEngineVersionEndpoint.Builder getAppEngineVersionBuilder()

An App Engine service version.

.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;

Returns
TypeDescription
Endpoint.AppEngineVersionEndpoint.Builder

getAppEngineVersionOrBuilder()

public Endpoint.AppEngineVersionEndpointOrBuilder getAppEngineVersionOrBuilder()

An App Engine service version.

.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;

Returns
TypeDescription
Endpoint.AppEngineVersionEndpointOrBuilder

getCloudFunction()

public Endpoint.CloudFunctionEndpoint getCloudFunction()

A Cloud Function.

.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;

Returns
TypeDescription
Endpoint.CloudFunctionEndpoint

The cloudFunction.

getCloudFunctionBuilder()

public Endpoint.CloudFunctionEndpoint.Builder getCloudFunctionBuilder()

A Cloud Function.

.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;

Returns
TypeDescription
Endpoint.CloudFunctionEndpoint.Builder

getCloudFunctionOrBuilder()

public Endpoint.CloudFunctionEndpointOrBuilder getCloudFunctionOrBuilder()

A Cloud Function.

.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;

Returns
TypeDescription
Endpoint.CloudFunctionEndpointOrBuilder

getCloudRunRevision()

public Endpoint.CloudRunRevisionEndpoint getCloudRunRevision()

A Cloud Run revision

.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;

Returns
TypeDescription
Endpoint.CloudRunRevisionEndpoint

The cloudRunRevision.

getCloudRunRevisionBuilder()

public Endpoint.CloudRunRevisionEndpoint.Builder getCloudRunRevisionBuilder()

A Cloud Run revision

.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;

Returns
TypeDescription
Endpoint.CloudRunRevisionEndpoint.Builder

getCloudRunRevisionOrBuilder()

public Endpoint.CloudRunRevisionEndpointOrBuilder getCloudRunRevisionOrBuilder()

A Cloud Run revision

.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;

Returns
TypeDescription
Endpoint.CloudRunRevisionEndpointOrBuilder

getCloudSqlInstance()

public String getCloudSqlInstance()

A Cloud SQL instance URI.

string cloud_sql_instance = 8;

Returns
TypeDescription
String

The cloudSqlInstance.

getCloudSqlInstanceBytes()

public ByteString getCloudSqlInstanceBytes()

A Cloud SQL instance URI.

string cloud_sql_instance = 8;

Returns
TypeDescription
ByteString

The bytes for cloudSqlInstance.

getDefaultInstanceForType()

public Endpoint getDefaultInstanceForType()
Returns
TypeDescription
Endpoint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGkeMasterCluster()

public String getGkeMasterCluster()

A cluster URI for Google Kubernetes Engine master.

string gke_master_cluster = 7;

Returns
TypeDescription
String

The gkeMasterCluster.

getGkeMasterClusterBytes()

public ByteString getGkeMasterClusterBytes()

A cluster URI for Google Kubernetes Engine master.

string gke_master_cluster = 7;

Returns
TypeDescription
ByteString

The bytes for gkeMasterCluster.

getInstance()

public String getInstance()

A Compute Engine instance URI.

string instance = 3;

Returns
TypeDescription
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

A Compute Engine instance URI.

string instance = 3;

Returns
TypeDescription
ByteString

The bytes for instance.

getIpAddress()

public String getIpAddress()

The IP address of the endpoint, which can be an external or internal IP. An IPv6 address is only allowed when the test's destination is a global load balancer VIP.

string ip_address = 1;

Returns
TypeDescription
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

The IP address of the endpoint, which can be an external or internal IP. An IPv6 address is only allowed when the test's destination is a global load balancer VIP.

string ip_address = 1;

Returns
TypeDescription
ByteString

The bytes for ipAddress.

getNetwork()

public String getNetwork()

A Compute Engine network URI.

string network = 4;

Returns
TypeDescription
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

A Compute Engine network URI.

string network = 4;

Returns
TypeDescription
ByteString

The bytes for network.

getNetworkType()

public Endpoint.NetworkType getNetworkType()

Type of the network where the endpoint is located. Applicable only to source endpoint, as destination network type can be inferred from the source.

.google.events.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5;

Returns
TypeDescription
Endpoint.NetworkType

The networkType.

getNetworkTypeValue()

public int getNetworkTypeValue()

Type of the network where the endpoint is located. Applicable only to source endpoint, as destination network type can be inferred from the source.

.google.events.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5;

Returns
TypeDescription
int

The enum numeric value on the wire for networkType.

getPort()

public int getPort()

The IP protocol port of the endpoint. Only applicable when protocol is TCP or UDP.

int32 port = 2;

Returns
TypeDescription
int

The port.

getProjectId()

public String getProjectId()

Project ID where the endpoint is located. The Project ID can be derived from the URI if you provide a VM instance or network URI. The following are two cases where you must provide the project ID:

  1. Only the IP address is specified, and the IP address is within a Google Cloud project.
  2. When you are using Shared VPC and the IP address that you provide is from the service project. In this case, the network that the IP address resides in is defined in the host project.

string project_id = 6;

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Project ID where the endpoint is located. The Project ID can be derived from the URI if you provide a VM instance or network URI. The following are two cases where you must provide the project ID:

  1. Only the IP address is specified, and the IP address is within a Google Cloud project.
  2. When you are using Shared VPC and the IP address that you provide is from the service project. In this case, the network that the IP address resides in is defined in the host project.

string project_id = 6;

Returns
TypeDescription
ByteString

The bytes for projectId.

hasAppEngineVersion()

public boolean hasAppEngineVersion()

An App Engine service version.

.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;

Returns
TypeDescription
boolean

Whether the appEngineVersion field is set.

hasCloudFunction()

public boolean hasCloudFunction()

A Cloud Function.

.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;

Returns
TypeDescription
boolean

Whether the cloudFunction field is set.

hasCloudRunRevision()

public boolean hasCloudRunRevision()

A Cloud Run revision

.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;

Returns
TypeDescription
boolean

Whether the cloudRunRevision field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAppEngineVersion(Endpoint.AppEngineVersionEndpoint value)

public Endpoint.Builder mergeAppEngineVersion(Endpoint.AppEngineVersionEndpoint value)

An App Engine service version.

.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;

Parameter
NameDescription
valueEndpoint.AppEngineVersionEndpoint
Returns
TypeDescription
Endpoint.Builder

mergeCloudFunction(Endpoint.CloudFunctionEndpoint value)

public Endpoint.Builder mergeCloudFunction(Endpoint.CloudFunctionEndpoint value)

A Cloud Function.

.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;

Parameter
NameDescription
valueEndpoint.CloudFunctionEndpoint
Returns
TypeDescription
Endpoint.Builder

mergeCloudRunRevision(Endpoint.CloudRunRevisionEndpoint value)

public Endpoint.Builder mergeCloudRunRevision(Endpoint.CloudRunRevisionEndpoint value)

A Cloud Run revision

.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;

Parameter
NameDescription
valueEndpoint.CloudRunRevisionEndpoint
Returns
TypeDescription
Endpoint.Builder

mergeFrom(Endpoint other)

public Endpoint.Builder mergeFrom(Endpoint other)
Parameter
NameDescription
otherEndpoint
Returns
TypeDescription
Endpoint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Endpoint.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Endpoint.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAppEngineVersion(Endpoint.AppEngineVersionEndpoint value)

public Endpoint.Builder setAppEngineVersion(Endpoint.AppEngineVersionEndpoint value)

An App Engine service version.

.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;

Parameter
NameDescription
valueEndpoint.AppEngineVersionEndpoint
Returns
TypeDescription
Endpoint.Builder

setAppEngineVersion(Endpoint.AppEngineVersionEndpoint.Builder builderForValue)

public Endpoint.Builder setAppEngineVersion(Endpoint.AppEngineVersionEndpoint.Builder builderForValue)

An App Engine service version.

.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;

Parameter
NameDescription
builderForValueEndpoint.AppEngineVersionEndpoint.Builder
Returns
TypeDescription
Endpoint.Builder

setCloudFunction(Endpoint.CloudFunctionEndpoint value)

public Endpoint.Builder setCloudFunction(Endpoint.CloudFunctionEndpoint value)

A Cloud Function.

.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;

Parameter
NameDescription
valueEndpoint.CloudFunctionEndpoint
Returns
TypeDescription
Endpoint.Builder

setCloudFunction(Endpoint.CloudFunctionEndpoint.Builder builderForValue)

public Endpoint.Builder setCloudFunction(Endpoint.CloudFunctionEndpoint.Builder builderForValue)

A Cloud Function.

.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;

Parameter
NameDescription
builderForValueEndpoint.CloudFunctionEndpoint.Builder
Returns
TypeDescription
Endpoint.Builder

setCloudRunRevision(Endpoint.CloudRunRevisionEndpoint value)

public Endpoint.Builder setCloudRunRevision(Endpoint.CloudRunRevisionEndpoint value)

A Cloud Run revision

.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;

Parameter
NameDescription
valueEndpoint.CloudRunRevisionEndpoint
Returns
TypeDescription
Endpoint.Builder

setCloudRunRevision(Endpoint.CloudRunRevisionEndpoint.Builder builderForValue)

public Endpoint.Builder setCloudRunRevision(Endpoint.CloudRunRevisionEndpoint.Builder builderForValue)

A Cloud Run revision

.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;

Parameter
NameDescription
builderForValueEndpoint.CloudRunRevisionEndpoint.Builder
Returns
TypeDescription
Endpoint.Builder

setCloudSqlInstance(String value)

public Endpoint.Builder setCloudSqlInstance(String value)

A Cloud SQL instance URI.

string cloud_sql_instance = 8;

Parameter
NameDescription
valueString

The cloudSqlInstance to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setCloudSqlInstanceBytes(ByteString value)

public Endpoint.Builder setCloudSqlInstanceBytes(ByteString value)

A Cloud SQL instance URI.

string cloud_sql_instance = 8;

Parameter
NameDescription
valueByteString

The bytes for cloudSqlInstance to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGkeMasterCluster(String value)

public Endpoint.Builder setGkeMasterCluster(String value)

A cluster URI for Google Kubernetes Engine master.

string gke_master_cluster = 7;

Parameter
NameDescription
valueString

The gkeMasterCluster to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setGkeMasterClusterBytes(ByteString value)

public Endpoint.Builder setGkeMasterClusterBytes(ByteString value)

A cluster URI for Google Kubernetes Engine master.

string gke_master_cluster = 7;

Parameter
NameDescription
valueByteString

The bytes for gkeMasterCluster to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setInstance(String value)

public Endpoint.Builder setInstance(String value)

A Compute Engine instance URI.

string instance = 3;

Parameter
NameDescription
valueString

The instance to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setInstanceBytes(ByteString value)

public Endpoint.Builder setInstanceBytes(ByteString value)

A Compute Engine instance URI.

string instance = 3;

Parameter
NameDescription
valueByteString

The bytes for instance to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setIpAddress(String value)

public Endpoint.Builder setIpAddress(String value)

The IP address of the endpoint, which can be an external or internal IP. An IPv6 address is only allowed when the test's destination is a global load balancer VIP.

string ip_address = 1;

Parameter
NameDescription
valueString

The ipAddress to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public Endpoint.Builder setIpAddressBytes(ByteString value)

The IP address of the endpoint, which can be an external or internal IP. An IPv6 address is only allowed when the test's destination is a global load balancer VIP.

string ip_address = 1;

Parameter
NameDescription
valueByteString

The bytes for ipAddress to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setNetwork(String value)

public Endpoint.Builder setNetwork(String value)

A Compute Engine network URI.

string network = 4;

Parameter
NameDescription
valueString

The network to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public Endpoint.Builder setNetworkBytes(ByteString value)

A Compute Engine network URI.

string network = 4;

Parameter
NameDescription
valueByteString

The bytes for network to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setNetworkType(Endpoint.NetworkType value)

public Endpoint.Builder setNetworkType(Endpoint.NetworkType value)

Type of the network where the endpoint is located. Applicable only to source endpoint, as destination network type can be inferred from the source.

.google.events.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5;

Parameter
NameDescription
valueEndpoint.NetworkType

The networkType to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setNetworkTypeValue(int value)

public Endpoint.Builder setNetworkTypeValue(int value)

Type of the network where the endpoint is located. Applicable only to source endpoint, as destination network type can be inferred from the source.

.google.events.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5;

Parameter
NameDescription
valueint

The enum numeric value on the wire for networkType to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setPort(int value)

public Endpoint.Builder setPort(int value)

The IP protocol port of the endpoint. Only applicable when protocol is TCP or UDP.

int32 port = 2;

Parameter
NameDescription
valueint

The port to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setProjectId(String value)

public Endpoint.Builder setProjectId(String value)

Project ID where the endpoint is located. The Project ID can be derived from the URI if you provide a VM instance or network URI. The following are two cases where you must provide the project ID:

  1. Only the IP address is specified, and the IP address is within a Google Cloud project.
  2. When you are using Shared VPC and the IP address that you provide is from the service project. In this case, the network that the IP address resides in is defined in the host project.

string project_id = 6;

Parameter
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public Endpoint.Builder setProjectIdBytes(ByteString value)

Project ID where the endpoint is located. The Project ID can be derived from the URI if you provide a VM instance or network URI. The following are two cases where you must provide the project ID:

  1. Only the IP address is specified, and the IP address is within a Google Cloud project.
  2. When you are using Shared VPC and the IP address that you provide is from the service project. In this case, the network that the IP address resides in is defined in the host project.

string project_id = 6;

Parameter
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

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

public Endpoint.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Endpoint.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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