Class Endpoint (1.16.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 1.16.0keyboard_arrow_down  
  
 
    
    
    
      
  
  
  
    
public   final   class  Endpoint   extends   GeneratedMessageV3   implements   EndpointOrBuilder  
   Source or destination of the Connectivity Test.
 Protobuf type google.cloud.networkmanagement.v1beta1.Endpoint
Static Fields
   
  CLOUD_FUNCTION_FIELD_NUMBER 
  
    
public   static   final   int   CLOUD_FUNCTION_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  CLOUD_SQL_INSTANCE_FIELD_NUMBER 
  
    
public   static   final   int   CLOUD_SQL_INSTANCE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  GKE_MASTER_CLUSTER_FIELD_NUMBER 
  
    
public   static   final   int   GKE_MASTER_CLUSTER_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  INSTANCE_FIELD_NUMBER 
  
    
public   static   final   int   INSTANCE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  IP_ADDRESS_FIELD_NUMBER 
  
    
public   static   final   int   IP_ADDRESS_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  NETWORK_FIELD_NUMBER 
  
    
public   static   final   int   NETWORK_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  NETWORK_TYPE_FIELD_NUMBER 
  
    
public   static   final   int   NETWORK_TYPE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  PORT_FIELD_NUMBER 
  
    
public   static   final   int   PORT_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  PROJECT_ID_FIELD_NUMBER 
  
    
public   static   final   int   PROJECT_ID_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   Endpoint   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   Endpoint . Builder   newBuilder ()  
  
  newBuilder(Endpoint prototype) 
  
    
public   static   Endpoint . Builder   newBuilder ( Endpoint   prototype )  
  
    
      
        Parameter  
      
        Name Description  
      
        prototypeEndpoint  
     
  
  
  
    
public   static   Endpoint   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   Endpoint   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   Endpoint   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Endpoint   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   Endpoint   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Endpoint   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Endpoint   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   Endpoint   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Endpoint   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   Endpoint   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   Endpoint   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Endpoint   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<Endpoint>   parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getCloudFunction() 
  
    
public   Endpoint . CloudFunctionEndpoint   getCloudFunction ()  
   A Cloud function .
 
 .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
 
getCloudFunctionOrBuilder() 
  
    
public   Endpoint . CloudFunctionEndpointOrBuilder   getCloudFunctionOrBuilder ()  
   A Cloud function .
 
 .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
 
getCloudSqlInstance() 
  
    
public   String   getCloudSqlInstance ()  
   A Cloud SQL  instance URI.
 string cloud_sql_instance = 8;
    
      
        Returns  
      
        Type Description  
      
        String The cloudSqlInstance.
 
     
  
  getCloudSqlInstanceBytes() 
  
    
public   ByteString   getCloudSqlInstanceBytes ()  
   A Cloud SQL  instance URI.
 string cloud_sql_instance = 8;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for cloudSqlInstance.
 
     
  
  getDefaultInstanceForType() 
  
    
public   Endpoint   getDefaultInstanceForType ()  
  
  getGkeMasterCluster() 
  
    
public   String   getGkeMasterCluster ()  
  
  
    
      
        Returns  
      
        Type Description  
      
        String The gkeMasterCluster.
 
     
  
  getGkeMasterClusterBytes() 
  
    
public   ByteString   getGkeMasterClusterBytes ()  
  
  
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for gkeMasterCluster.
 
     
  
  getInstance() 
  
    
public   String   getInstance ()  
   A Compute Engine instance URI.
 string instance = 3;
    
      
        Returns  
      
        Type Description  
      
        String The instance.
 
     
  
  getInstanceBytes() 
  
    
public   ByteString   getInstanceBytes ()  
   A Compute Engine instance URI.
 string instance = 3;
    
      
        Returns  
      
        Type Description  
      
        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  
      
        Type Description  
      
        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  
      
        Type Description  
      
        ByteString The bytes for ipAddress.
 
     
  
  getNetwork() 
  
    
public   String   getNetwork ()  
   A Compute Engine network URI.
 string network = 4;
    
      
        Returns  
      
        Type Description  
      
        String The network.
 
     
  
  getNetworkBytes() 
  
    
public   ByteString   getNetworkBytes ()  
   A Compute Engine network URI.
 string network = 4;
    
      
        Returns  
      
        Type Description  
      
        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.cloud.networkmanagement.v1beta1.Endpoint.NetworkType network_type = 5;
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.cloud.networkmanagement.v1beta1.Endpoint.NetworkType network_type = 5;
    
      
        Returns  
      
        Type Description  
      
        int The enum numeric value on the wire for networkType.
 
     
  
  getParserForType() 
  
    
public   Parser<Endpoint>   getParserForType ()  
  
  Overrides 
  
  getPort() 
  
   The IP protocol port of the endpoint.
 Only applicable when protocol is TCP or UDP.
 int32 port = 2;
    
      
        Returns  
      
        Type Description  
      
        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:
Only the IP address is specified, and the IP address is within a GCP
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. 
 
 string project_id = 6;
    
      
        Returns  
      
        Type Description  
      
        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:
Only the IP address is specified, and the IP address is within a GCP
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. 
 
 string project_id = 6;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for projectId.
 
     
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  getUnknownFields() 
  
    
public   final   UnknownFieldSet   getUnknownFields ()  
  
  Overrides 
  
  hasCloudFunction() 
  
    
public   boolean   hasCloudFunction ()  
   A Cloud function .
 
 .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
 
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the cloudFunction field is set.
 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   Endpoint . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   Endpoint . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   Endpoint . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]