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.
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.
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:
Only the IP address is specified, and the IP address is within a Google
Cloud project.
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.
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:
Only the IP address is specified, and the IP address is within a Google
Cloud project.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Interface EndpointOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkmanagement.v1.EndpointOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.networkmanagement.v1.EndpointOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.networkmanagement.v1.EndpointOrBuilder) \n\n public interface EndpointOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getAppEngineVersion()\n\n public abstract Endpoint.AppEngineVersionEndpoint getAppEngineVersion()\n\nAn [App Engine](https://cloud.google.com/appengine) [service\nversion](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions).\n\n`\n.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;\n`\n\n### getAppEngineVersionOrBuilder()\n\n public abstract Endpoint.AppEngineVersionEndpointOrBuilder getAppEngineVersionOrBuilder()\n\nAn [App Engine](https://cloud.google.com/appengine) [service\nversion](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions).\n\n`\n.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;\n`\n\n### getCloudFunction()\n\n public abstract Endpoint.CloudFunctionEndpoint getCloudFunction()\n\nA [Cloud Function](https://cloud.google.com/functions).\n\n`\n.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;\n`\n\n### getCloudFunctionOrBuilder()\n\n public abstract Endpoint.CloudFunctionEndpointOrBuilder getCloudFunctionOrBuilder()\n\nA [Cloud Function](https://cloud.google.com/functions).\n\n`\n.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;\n`\n\n### getCloudRunRevision()\n\n public abstract Endpoint.CloudRunRevisionEndpoint getCloudRunRevision()\n\nA [Cloud Run](https://cloud.google.com/run)\n[revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)\n\n`\n.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;\n`\n\n### getCloudRunRevisionOrBuilder()\n\n public abstract Endpoint.CloudRunRevisionEndpointOrBuilder getCloudRunRevisionOrBuilder()\n\nA [Cloud Run](https://cloud.google.com/run)\n[revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)\n\n`\n.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;\n`\n\n### getCloudSqlInstance()\n\n public abstract String getCloudSqlInstance()\n\nA [Cloud SQL](https://cloud.google.com/sql) instance URI.\n\n`string cloud_sql_instance = 8;`\n\n### getCloudSqlInstanceBytes()\n\n public abstract ByteString getCloudSqlInstanceBytes()\n\nA [Cloud SQL](https://cloud.google.com/sql) instance URI.\n\n`string cloud_sql_instance = 8;`\n\n### getGkeMasterCluster()\n\n public abstract String getGkeMasterCluster()\n\nA cluster URI for [Google Kubernetes Engine\nmaster](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).\n\n`string gke_master_cluster = 7;`\n\n### getGkeMasterClusterBytes()\n\n public abstract ByteString getGkeMasterClusterBytes()\n\nA cluster URI for [Google Kubernetes Engine\nmaster](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).\n\n`string gke_master_cluster = 7;`\n\n### getInstance()\n\n public abstract String getInstance()\n\nA Compute Engine instance URI.\n\n`string instance = 3;`\n\n### getInstanceBytes()\n\n public abstract ByteString getInstanceBytes()\n\nA Compute Engine instance URI.\n\n`string instance = 3;`\n\n### getIpAddress()\n\n public abstract String getIpAddress()\n\nThe IP address of the endpoint, which can be an external or internal IP.\nAn IPv6 address is only allowed when the test's destination is a\n[global load balancer VIP](/load-balancing/docs/load-balancing-overview).\n\n`string ip_address = 1;`\n\n### getIpAddressBytes()\n\n public abstract ByteString getIpAddressBytes()\n\nThe IP address of the endpoint, which can be an external or internal IP.\nAn IPv6 address is only allowed when the test's destination is a\n[global load balancer VIP](/load-balancing/docs/load-balancing-overview).\n\n`string ip_address = 1;`\n\n### getNetwork()\n\n public abstract String getNetwork()\n\nA Compute Engine network URI.\n\n`string network = 4;`\n\n### getNetworkBytes()\n\n public abstract ByteString getNetworkBytes()\n\nA Compute Engine network URI.\n\n`string network = 4;`\n\n### getNetworkType()\n\n public abstract Endpoint.NetworkType getNetworkType()\n\nType of the network where the endpoint is located.\nApplicable only to source endpoint, as destination network type can be\ninferred from the source.\n\n`.google.events.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5;`\n\n### getNetworkTypeValue()\n\n public abstract int getNetworkTypeValue()\n\nType of the network where the endpoint is located.\nApplicable only to source endpoint, as destination network type can be\ninferred from the source.\n\n`.google.events.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5;`\n\n### getPort()\n\n public abstract int getPort()\n\nThe IP protocol port of the endpoint.\nOnly applicable when protocol is TCP or UDP.\n\n`int32 port = 2;`\n\n### getProjectId()\n\n public abstract String getProjectId()\n\nProject ID where the endpoint is located.\nThe Project ID can be derived from the URI if you provide a VM instance or\nnetwork URI.\nThe following are two cases where you must provide the project ID:\n\n1. Only the IP address is specified, and the IP address is within a Google Cloud project.\n2. 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.\n\n`string project_id = 6;`\n\n### getProjectIdBytes()\n\n public abstract ByteString getProjectIdBytes()\n\nProject ID where the endpoint is located.\nThe Project ID can be derived from the URI if you provide a VM instance or\nnetwork URI.\nThe following are two cases where you must provide the project ID:\n\n1. Only the IP address is specified, and the IP address is within a Google Cloud project.\n2. 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.\n\n`string project_id = 6;`\n\n### hasAppEngineVersion()\n\n public abstract boolean hasAppEngineVersion()\n\nAn [App Engine](https://cloud.google.com/appengine) [service\nversion](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions).\n\n`\n.google.events.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;\n`\n\n### hasCloudFunction()\n\n public abstract boolean hasCloudFunction()\n\nA [Cloud Function](https://cloud.google.com/functions).\n\n`\n.google.events.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloud_function = 10;\n`\n\n### hasCloudRunRevision()\n\n public abstract boolean hasCloudRunRevision()\n\nA [Cloud Run](https://cloud.google.com/run)\n[revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)\n\n`\n.google.events.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;\n`"]]