Class Endpoint.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Endpoint.Builder>
com.google.cloud.networkmanagement.v1beta1.Endpoint.Builder
All Implemented Interfaces:
EndpointOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Endpoint

public static final class Endpoint.Builder extends com.google.protobuf.GeneratedMessage.Builder<Endpoint.Builder> implements EndpointOrBuilder
 Source or destination of the Connectivity Test.
 
Protobuf type google.cloud.networkmanagement.v1beta1.Endpoint
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Endpoint.Builder>
    • clear

      public Endpoint.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Endpoint.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Endpoint.Builder>
    • getDefaultInstanceForType

      public Endpoint getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Endpoint build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Endpoint buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Endpoint.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Endpoint.Builder>
    • mergeFrom

      public Endpoint.Builder mergeFrom(Endpoint other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Endpoint.Builder>
    • mergeFrom

      public Endpoint.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Endpoint.Builder>
      Throws:
      IOException
    • getIpAddress

      public String getIpAddress()
       The IP address of the endpoint, which can be an external or internal IP.
       
      string ip_address = 1;
      Specified by:
      getIpAddress in interface EndpointOrBuilder
      Returns:
      The ipAddress.
    • getIpAddressBytes

      public com.google.protobuf.ByteString getIpAddressBytes()
       The IP address of the endpoint, which can be an external or internal IP.
       
      string ip_address = 1;
      Specified by:
      getIpAddressBytes in interface EndpointOrBuilder
      Returns:
      The bytes for ipAddress.
    • setIpAddress

      public Endpoint.Builder setIpAddress(String value)
       The IP address of the endpoint, which can be an external or internal IP.
       
      string ip_address = 1;
      Parameters:
      value - The ipAddress to set.
      Returns:
      This builder for chaining.
    • clearIpAddress

      public Endpoint.Builder clearIpAddress()
       The IP address of the endpoint, which can be an external or internal IP.
       
      string ip_address = 1;
      Returns:
      This builder for chaining.
    • setIpAddressBytes

      public Endpoint.Builder setIpAddressBytes(com.google.protobuf.ByteString value)
       The IP address of the endpoint, which can be an external or internal IP.
       
      string ip_address = 1;
      Parameters:
      value - The bytes for ipAddress to set.
      Returns:
      This builder for chaining.
    • getPort

      public int getPort()
       The IP protocol port of the endpoint.
       Only applicable when protocol is TCP or UDP.
       
      int32 port = 2;
      Specified by:
      getPort in interface EndpointOrBuilder
      Returns:
      The port.
    • setPort

      public Endpoint.Builder setPort(int value)
       The IP protocol port of the endpoint.
       Only applicable when protocol is TCP or UDP.
       
      int32 port = 2;
      Parameters:
      value - The port to set.
      Returns:
      This builder for chaining.
    • clearPort

      public Endpoint.Builder clearPort()
       The IP protocol port of the endpoint.
       Only applicable when protocol is TCP or UDP.
       
      int32 port = 2;
      Returns:
      This builder for chaining.
    • getInstance

      public String getInstance()
       A Compute Engine instance URI.
       
      string instance = 3;
      Specified by:
      getInstance in interface EndpointOrBuilder
      Returns:
      The instance.
    • getInstanceBytes

      public com.google.protobuf.ByteString getInstanceBytes()
       A Compute Engine instance URI.
       
      string instance = 3;
      Specified by:
      getInstanceBytes in interface EndpointOrBuilder
      Returns:
      The bytes for instance.
    • setInstance

      public Endpoint.Builder setInstance(String value)
       A Compute Engine instance URI.
       
      string instance = 3;
      Parameters:
      value - The instance to set.
      Returns:
      This builder for chaining.
    • clearInstance

      public Endpoint.Builder clearInstance()
       A Compute Engine instance URI.
       
      string instance = 3;
      Returns:
      This builder for chaining.
    • setInstanceBytes

      public Endpoint.Builder setInstanceBytes(com.google.protobuf.ByteString value)
       A Compute Engine instance URI.
       
      string instance = 3;
      Parameters:
      value - The bytes for instance to set.
      Returns:
      This builder for chaining.
    • getForwardingRule

      public String getForwardingRule()
       A forwarding rule and its corresponding IP address represent the frontend
       configuration of a Google Cloud load balancer. Forwarding rules are also
       used for protocol forwarding, Private Service Connect and other network
       services to provide forwarding information in the control plane. Applicable
       only to destination endpoint. Format:
       `projects/{project}/global/forwardingRules/{id}` or
       `projects/{project}/regions/{region}/forwardingRules/{id}`
       
      string forwarding_rule = 13;
      Specified by:
      getForwardingRule in interface EndpointOrBuilder
      Returns:
      The forwardingRule.
    • getForwardingRuleBytes

      public com.google.protobuf.ByteString getForwardingRuleBytes()
       A forwarding rule and its corresponding IP address represent the frontend
       configuration of a Google Cloud load balancer. Forwarding rules are also
       used for protocol forwarding, Private Service Connect and other network
       services to provide forwarding information in the control plane. Applicable
       only to destination endpoint. Format:
       `projects/{project}/global/forwardingRules/{id}` or
       `projects/{project}/regions/{region}/forwardingRules/{id}`
       
      string forwarding_rule = 13;
      Specified by:
      getForwardingRuleBytes in interface EndpointOrBuilder
      Returns:
      The bytes for forwardingRule.
    • setForwardingRule

      public Endpoint.Builder setForwardingRule(String value)
       A forwarding rule and its corresponding IP address represent the frontend
       configuration of a Google Cloud load balancer. Forwarding rules are also
       used for protocol forwarding, Private Service Connect and other network
       services to provide forwarding information in the control plane. Applicable
       only to destination endpoint. Format:
       `projects/{project}/global/forwardingRules/{id}` or
       `projects/{project}/regions/{region}/forwardingRules/{id}`
       
      string forwarding_rule = 13;
      Parameters:
      value - The forwardingRule to set.
      Returns:
      This builder for chaining.
    • clearForwardingRule

      public Endpoint.Builder clearForwardingRule()
       A forwarding rule and its corresponding IP address represent the frontend
       configuration of a Google Cloud load balancer. Forwarding rules are also
       used for protocol forwarding, Private Service Connect and other network
       services to provide forwarding information in the control plane. Applicable
       only to destination endpoint. Format:
       `projects/{project}/global/forwardingRules/{id}` or
       `projects/{project}/regions/{region}/forwardingRules/{id}`
       
      string forwarding_rule = 13;
      Returns:
      This builder for chaining.
    • setForwardingRuleBytes

      public Endpoint.Builder setForwardingRuleBytes(com.google.protobuf.ByteString value)
       A forwarding rule and its corresponding IP address represent the frontend
       configuration of a Google Cloud load balancer. Forwarding rules are also
       used for protocol forwarding, Private Service Connect and other network
       services to provide forwarding information in the control plane. Applicable
       only to destination endpoint. Format:
       `projects/{project}/global/forwardingRules/{id}` or
       `projects/{project}/regions/{region}/forwardingRules/{id}`
       
      string forwarding_rule = 13;
      Parameters:
      value - The bytes for forwardingRule to set.
      Returns:
      This builder for chaining.
    • hasForwardingRuleTarget

      public boolean hasForwardingRuleTarget()
       Output only. Specifies the type of the target of the forwarding rule.
       
      optional .google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasForwardingRuleTarget in interface EndpointOrBuilder
      Returns:
      Whether the forwardingRuleTarget field is set.
    • getForwardingRuleTargetValue

      public int getForwardingRuleTargetValue()
       Output only. Specifies the type of the target of the forwarding rule.
       
      optional .google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getForwardingRuleTargetValue in interface EndpointOrBuilder
      Returns:
      The enum numeric value on the wire for forwardingRuleTarget.
    • setForwardingRuleTargetValue

      public Endpoint.Builder setForwardingRuleTargetValue(int value)
       Output only. Specifies the type of the target of the forwarding rule.
       
      optional .google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for forwardingRuleTarget to set.
      Returns:
      This builder for chaining.
    • getForwardingRuleTarget

      public Endpoint.ForwardingRuleTarget getForwardingRuleTarget()
       Output only. Specifies the type of the target of the forwarding rule.
       
      optional .google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getForwardingRuleTarget in interface EndpointOrBuilder
      Returns:
      The forwardingRuleTarget.
    • setForwardingRuleTarget

      public Endpoint.Builder setForwardingRuleTarget(Endpoint.ForwardingRuleTarget value)
       Output only. Specifies the type of the target of the forwarding rule.
       
      optional .google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The forwardingRuleTarget to set.
      Returns:
      This builder for chaining.
    • clearForwardingRuleTarget

      public Endpoint.Builder clearForwardingRuleTarget()
       Output only. Specifies the type of the target of the forwarding rule.
       
      optional .google.cloud.networkmanagement.v1beta1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasLoadBalancerId

      public boolean hasLoadBalancerId()
       Output only. ID of the load balancer the forwarding rule points to. Empty
       for forwarding rules not related to load balancers.
       
      optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasLoadBalancerId in interface EndpointOrBuilder
      Returns:
      Whether the loadBalancerId field is set.
    • getLoadBalancerId

      public String getLoadBalancerId()
       Output only. ID of the load balancer the forwarding rule points to. Empty
       for forwarding rules not related to load balancers.
       
      optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLoadBalancerId in interface EndpointOrBuilder
      Returns:
      The loadBalancerId.
    • getLoadBalancerIdBytes

      public com.google.protobuf.ByteString getLoadBalancerIdBytes()
       Output only. ID of the load balancer the forwarding rule points to. Empty
       for forwarding rules not related to load balancers.
       
      optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLoadBalancerIdBytes in interface EndpointOrBuilder
      Returns:
      The bytes for loadBalancerId.
    • setLoadBalancerId

      public Endpoint.Builder setLoadBalancerId(String value)
       Output only. ID of the load balancer the forwarding rule points to. Empty
       for forwarding rules not related to load balancers.
       
      optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The loadBalancerId to set.
      Returns:
      This builder for chaining.
    • clearLoadBalancerId

      public Endpoint.Builder clearLoadBalancerId()
       Output only. ID of the load balancer the forwarding rule points to. Empty
       for forwarding rules not related to load balancers.
       
      optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setLoadBalancerIdBytes

      public Endpoint.Builder setLoadBalancerIdBytes(com.google.protobuf.ByteString value)
       Output only. ID of the load balancer the forwarding rule points to. Empty
       for forwarding rules not related to load balancers.
       
      optional string load_balancer_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for loadBalancerId to set.
      Returns:
      This builder for chaining.
    • hasLoadBalancerType

      public boolean hasLoadBalancerType()
       Output only. Type of the load balancer the forwarding rule points to.
       
      optional .google.cloud.networkmanagement.v1beta1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasLoadBalancerType in interface EndpointOrBuilder
      Returns:
      Whether the loadBalancerType field is set.
    • getLoadBalancerTypeValue

      public int getLoadBalancerTypeValue()
       Output only. Type of the load balancer the forwarding rule points to.
       
      optional .google.cloud.networkmanagement.v1beta1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLoadBalancerTypeValue in interface EndpointOrBuilder
      Returns:
      The enum numeric value on the wire for loadBalancerType.
    • setLoadBalancerTypeValue

      public Endpoint.Builder setLoadBalancerTypeValue(int value)
       Output only. Type of the load balancer the forwarding rule points to.
       
      optional .google.cloud.networkmanagement.v1beta1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for loadBalancerType to set.
      Returns:
      This builder for chaining.
    • getLoadBalancerType

      public LoadBalancerType getLoadBalancerType()
       Output only. Type of the load balancer the forwarding rule points to.
       
      optional .google.cloud.networkmanagement.v1beta1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLoadBalancerType in interface EndpointOrBuilder
      Returns:
      The loadBalancerType.
    • setLoadBalancerType

      public Endpoint.Builder setLoadBalancerType(LoadBalancerType value)
       Output only. Type of the load balancer the forwarding rule points to.
       
      optional .google.cloud.networkmanagement.v1beta1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The loadBalancerType to set.
      Returns:
      This builder for chaining.
    • clearLoadBalancerType

      public Endpoint.Builder clearLoadBalancerType()
       Output only. Type of the load balancer the forwarding rule points to.
       
      optional .google.cloud.networkmanagement.v1beta1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getGkeMasterCluster

      public String getGkeMasterCluster()
       A cluster URI for [Google Kubernetes Engine cluster control
       plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).
       
      string gke_master_cluster = 7;
      Specified by:
      getGkeMasterCluster in interface EndpointOrBuilder
      Returns:
      The gkeMasterCluster.
    • getGkeMasterClusterBytes

      public com.google.protobuf.ByteString getGkeMasterClusterBytes()
       A cluster URI for [Google Kubernetes Engine cluster control
       plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).
       
      string gke_master_cluster = 7;
      Specified by:
      getGkeMasterClusterBytes in interface EndpointOrBuilder
      Returns:
      The bytes for gkeMasterCluster.
    • setGkeMasterCluster

      public Endpoint.Builder setGkeMasterCluster(String value)
       A cluster URI for [Google Kubernetes Engine cluster control
       plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).
       
      string gke_master_cluster = 7;
      Parameters:
      value - The gkeMasterCluster to set.
      Returns:
      This builder for chaining.
    • clearGkeMasterCluster

      public Endpoint.Builder clearGkeMasterCluster()
       A cluster URI for [Google Kubernetes Engine cluster control
       plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).
       
      string gke_master_cluster = 7;
      Returns:
      This builder for chaining.
    • setGkeMasterClusterBytes

      public Endpoint.Builder setGkeMasterClusterBytes(com.google.protobuf.ByteString value)
       A cluster URI for [Google Kubernetes Engine cluster control
       plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).
       
      string gke_master_cluster = 7;
      Parameters:
      value - The bytes for gkeMasterCluster to set.
      Returns:
      This builder for chaining.
    • getFqdn

      public String getFqdn()
       DNS endpoint of [Google Kubernetes Engine cluster control
       plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).
       Requires gke_master_cluster to be set, can't be used simultaneoulsly with
       ip_address or network. Applicable only to destination endpoint.
       
      string fqdn = 19;
      Specified by:
      getFqdn in interface EndpointOrBuilder
      Returns:
      The fqdn.
    • getFqdnBytes

      public com.google.protobuf.ByteString getFqdnBytes()
       DNS endpoint of [Google Kubernetes Engine cluster control
       plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).
       Requires gke_master_cluster to be set, can't be used simultaneoulsly with
       ip_address or network. Applicable only to destination endpoint.
       
      string fqdn = 19;
      Specified by:
      getFqdnBytes in interface EndpointOrBuilder
      Returns:
      The bytes for fqdn.
    • setFqdn

      public Endpoint.Builder setFqdn(String value)
       DNS endpoint of [Google Kubernetes Engine cluster control
       plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).
       Requires gke_master_cluster to be set, can't be used simultaneoulsly with
       ip_address or network. Applicable only to destination endpoint.
       
      string fqdn = 19;
      Parameters:
      value - The fqdn to set.
      Returns:
      This builder for chaining.
    • clearFqdn

      public Endpoint.Builder clearFqdn()
       DNS endpoint of [Google Kubernetes Engine cluster control
       plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).
       Requires gke_master_cluster to be set, can't be used simultaneoulsly with
       ip_address or network. Applicable only to destination endpoint.
       
      string fqdn = 19;
      Returns:
      This builder for chaining.
    • setFqdnBytes

      public Endpoint.Builder setFqdnBytes(com.google.protobuf.ByteString value)
       DNS endpoint of [Google Kubernetes Engine cluster control
       plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).
       Requires gke_master_cluster to be set, can't be used simultaneoulsly with
       ip_address or network. Applicable only to destination endpoint.
       
      string fqdn = 19;
      Parameters:
      value - The bytes for fqdn to set.
      Returns:
      This builder for chaining.
    • getCloudSqlInstance

      public String getCloudSqlInstance()
       A [Cloud SQL](https://cloud.google.com/sql) instance URI.
       
      string cloud_sql_instance = 8;
      Specified by:
      getCloudSqlInstance in interface EndpointOrBuilder
      Returns:
      The cloudSqlInstance.
    • getCloudSqlInstanceBytes

      public com.google.protobuf.ByteString getCloudSqlInstanceBytes()
       A [Cloud SQL](https://cloud.google.com/sql) instance URI.
       
      string cloud_sql_instance = 8;
      Specified by:
      getCloudSqlInstanceBytes in interface EndpointOrBuilder
      Returns:
      The bytes for cloudSqlInstance.
    • setCloudSqlInstance

      public Endpoint.Builder setCloudSqlInstance(String value)
       A [Cloud SQL](https://cloud.google.com/sql) instance URI.
       
      string cloud_sql_instance = 8;
      Parameters:
      value - The cloudSqlInstance to set.
      Returns:
      This builder for chaining.
    • clearCloudSqlInstance

      public Endpoint.Builder clearCloudSqlInstance()
       A [Cloud SQL](https://cloud.google.com/sql) instance URI.
       
      string cloud_sql_instance = 8;
      Returns:
      This builder for chaining.
    • setCloudSqlInstanceBytes

      public Endpoint.Builder setCloudSqlInstanceBytes(com.google.protobuf.ByteString value)
       A [Cloud SQL](https://cloud.google.com/sql) instance URI.
       
      string cloud_sql_instance = 8;
      Parameters:
      value - The bytes for cloudSqlInstance to set.
      Returns:
      This builder for chaining.
    • getRedisInstance

      public String getRedisInstance()
       A [Redis Instance](https://cloud.google.com/memorystore/docs/redis) URI.
       Applicable only to destination endpoint.
       
      string redis_instance = 17;
      Specified by:
      getRedisInstance in interface EndpointOrBuilder
      Returns:
      The redisInstance.
    • getRedisInstanceBytes

      public com.google.protobuf.ByteString getRedisInstanceBytes()
       A [Redis Instance](https://cloud.google.com/memorystore/docs/redis) URI.
       Applicable only to destination endpoint.
       
      string redis_instance = 17;
      Specified by:
      getRedisInstanceBytes in interface EndpointOrBuilder
      Returns:
      The bytes for redisInstance.
    • setRedisInstance

      public Endpoint.Builder setRedisInstance(String value)
       A [Redis Instance](https://cloud.google.com/memorystore/docs/redis) URI.
       Applicable only to destination endpoint.
       
      string redis_instance = 17;
      Parameters:
      value - The redisInstance to set.
      Returns:
      This builder for chaining.
    • clearRedisInstance

      public Endpoint.Builder clearRedisInstance()
       A [Redis Instance](https://cloud.google.com/memorystore/docs/redis) URI.
       Applicable only to destination endpoint.
       
      string redis_instance = 17;
      Returns:
      This builder for chaining.
    • setRedisInstanceBytes

      public Endpoint.Builder setRedisInstanceBytes(com.google.protobuf.ByteString value)
       A [Redis Instance](https://cloud.google.com/memorystore/docs/redis) URI.
       Applicable only to destination endpoint.
       
      string redis_instance = 17;
      Parameters:
      value - The bytes for redisInstance to set.
      Returns:
      This builder for chaining.
    • getRedisCluster

      public String getRedisCluster()
       A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster) URI.
       Applicable only to destination endpoint.
       
      string redis_cluster = 18;
      Specified by:
      getRedisCluster in interface EndpointOrBuilder
      Returns:
      The redisCluster.
    • getRedisClusterBytes

      public com.google.protobuf.ByteString getRedisClusterBytes()
       A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster) URI.
       Applicable only to destination endpoint.
       
      string redis_cluster = 18;
      Specified by:
      getRedisClusterBytes in interface EndpointOrBuilder
      Returns:
      The bytes for redisCluster.
    • setRedisCluster

      public Endpoint.Builder setRedisCluster(String value)
       A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster) URI.
       Applicable only to destination endpoint.
       
      string redis_cluster = 18;
      Parameters:
      value - The redisCluster to set.
      Returns:
      This builder for chaining.
    • clearRedisCluster

      public Endpoint.Builder clearRedisCluster()
       A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster) URI.
       Applicable only to destination endpoint.
       
      string redis_cluster = 18;
      Returns:
      This builder for chaining.
    • setRedisClusterBytes

      public Endpoint.Builder setRedisClusterBytes(com.google.protobuf.ByteString value)
       A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster) URI.
       Applicable only to destination endpoint.
       
      string redis_cluster = 18;
      Parameters:
      value - The bytes for redisCluster to set.
      Returns:
      This builder for chaining.
    • getGkePod

      public String getGkePod()
       A [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod)
       URI.
       
      string gke_pod = 21;
      Specified by:
      getGkePod in interface EndpointOrBuilder
      Returns:
      The gkePod.
    • getGkePodBytes

      public com.google.protobuf.ByteString getGkePodBytes()
       A [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod)
       URI.
       
      string gke_pod = 21;
      Specified by:
      getGkePodBytes in interface EndpointOrBuilder
      Returns:
      The bytes for gkePod.
    • setGkePod

      public Endpoint.Builder setGkePod(String value)
       A [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod)
       URI.
       
      string gke_pod = 21;
      Parameters:
      value - The gkePod to set.
      Returns:
      This builder for chaining.
    • clearGkePod

      public Endpoint.Builder clearGkePod()
       A [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod)
       URI.
       
      string gke_pod = 21;
      Returns:
      This builder for chaining.
    • setGkePodBytes

      public Endpoint.Builder setGkePodBytes(com.google.protobuf.ByteString value)
       A [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod)
       URI.
       
      string gke_pod = 21;
      Parameters:
      value - The bytes for gkePod to set.
      Returns:
      This builder for chaining.
    • hasCloudFunction

      public boolean hasCloudFunction()
       A [Cloud Function](https://cloud.google.com/functions). Applicable only to
       source endpoint.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
      Specified by:
      hasCloudFunction in interface EndpointOrBuilder
      Returns:
      Whether the cloudFunction field is set.
    • getCloudFunction

      public Endpoint.CloudFunctionEndpoint getCloudFunction()
       A [Cloud Function](https://cloud.google.com/functions). Applicable only to
       source endpoint.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
      Specified by:
      getCloudFunction in interface EndpointOrBuilder
      Returns:
      The cloudFunction.
    • setCloudFunction

      public Endpoint.Builder setCloudFunction(Endpoint.CloudFunctionEndpoint value)
       A [Cloud Function](https://cloud.google.com/functions). Applicable only to
       source endpoint.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
    • setCloudFunction

      public Endpoint.Builder setCloudFunction(Endpoint.CloudFunctionEndpoint.Builder builderForValue)
       A [Cloud Function](https://cloud.google.com/functions). Applicable only to
       source endpoint.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
    • mergeCloudFunction

      public Endpoint.Builder mergeCloudFunction(Endpoint.CloudFunctionEndpoint value)
       A [Cloud Function](https://cloud.google.com/functions). Applicable only to
       source endpoint.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
    • clearCloudFunction

      public Endpoint.Builder clearCloudFunction()
       A [Cloud Function](https://cloud.google.com/functions). Applicable only to
       source endpoint.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
    • getCloudFunctionBuilder

      public Endpoint.CloudFunctionEndpoint.Builder getCloudFunctionBuilder()
       A [Cloud Function](https://cloud.google.com/functions). Applicable only to
       source endpoint.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
    • getCloudFunctionOrBuilder

      public Endpoint.CloudFunctionEndpointOrBuilder getCloudFunctionOrBuilder()
       A [Cloud Function](https://cloud.google.com/functions). Applicable only to
       source endpoint.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloud_function = 10;
      Specified by:
      getCloudFunctionOrBuilder in interface EndpointOrBuilder
    • hasAppEngineVersion

      public boolean hasAppEngineVersion()
       An [App Engine](https://cloud.google.com/appengine) [service
       version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions).
       Applicable only to source endpoint.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
      Specified by:
      hasAppEngineVersion in interface EndpointOrBuilder
      Returns:
      Whether the appEngineVersion field is set.
    • getAppEngineVersion

      public Endpoint.AppEngineVersionEndpoint getAppEngineVersion()
       An [App Engine](https://cloud.google.com/appengine) [service
       version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions).
       Applicable only to source endpoint.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
      Specified by:
      getAppEngineVersion in interface EndpointOrBuilder
      Returns:
      The appEngineVersion.
    • setAppEngineVersion

      public Endpoint.Builder setAppEngineVersion(Endpoint.AppEngineVersionEndpoint value)
       An [App Engine](https://cloud.google.com/appengine) [service
       version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions).
       Applicable only to source endpoint.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
    • setAppEngineVersion

      public Endpoint.Builder setAppEngineVersion(Endpoint.AppEngineVersionEndpoint.Builder builderForValue)
       An [App Engine](https://cloud.google.com/appengine) [service
       version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions).
       Applicable only to source endpoint.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
    • mergeAppEngineVersion

      public Endpoint.Builder mergeAppEngineVersion(Endpoint.AppEngineVersionEndpoint value)
       An [App Engine](https://cloud.google.com/appengine) [service
       version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions).
       Applicable only to source endpoint.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
    • clearAppEngineVersion

      public Endpoint.Builder clearAppEngineVersion()
       An [App Engine](https://cloud.google.com/appengine) [service
       version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions).
       Applicable only to source endpoint.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
    • getAppEngineVersionBuilder

      public Endpoint.AppEngineVersionEndpoint.Builder getAppEngineVersionBuilder()
       An [App Engine](https://cloud.google.com/appengine) [service
       version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions).
       Applicable only to source endpoint.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
    • getAppEngineVersionOrBuilder

      public Endpoint.AppEngineVersionEndpointOrBuilder getAppEngineVersionOrBuilder()
       An [App Engine](https://cloud.google.com/appengine) [service
       version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions).
       Applicable only to source endpoint.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint app_engine_version = 11;
      Specified by:
      getAppEngineVersionOrBuilder in interface EndpointOrBuilder
    • hasCloudRunRevision

      public boolean hasCloudRunRevision()
       A [Cloud Run](https://cloud.google.com/run)
       [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
       Applicable only to source endpoint.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
      Specified by:
      hasCloudRunRevision in interface EndpointOrBuilder
      Returns:
      Whether the cloudRunRevision field is set.
    • getCloudRunRevision

      public Endpoint.CloudRunRevisionEndpoint getCloudRunRevision()
       A [Cloud Run](https://cloud.google.com/run)
       [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
       Applicable only to source endpoint.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
      Specified by:
      getCloudRunRevision in interface EndpointOrBuilder
      Returns:
      The cloudRunRevision.
    • setCloudRunRevision

      public Endpoint.Builder setCloudRunRevision(Endpoint.CloudRunRevisionEndpoint value)
       A [Cloud Run](https://cloud.google.com/run)
       [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
       Applicable only to source endpoint.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
    • setCloudRunRevision

      public Endpoint.Builder setCloudRunRevision(Endpoint.CloudRunRevisionEndpoint.Builder builderForValue)
       A [Cloud Run](https://cloud.google.com/run)
       [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
       Applicable only to source endpoint.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
    • mergeCloudRunRevision

      public Endpoint.Builder mergeCloudRunRevision(Endpoint.CloudRunRevisionEndpoint value)
       A [Cloud Run](https://cloud.google.com/run)
       [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
       Applicable only to source endpoint.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
    • clearCloudRunRevision

      public Endpoint.Builder clearCloudRunRevision()
       A [Cloud Run](https://cloud.google.com/run)
       [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
       Applicable only to source endpoint.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
    • getCloudRunRevisionBuilder

      public Endpoint.CloudRunRevisionEndpoint.Builder getCloudRunRevisionBuilder()
       A [Cloud Run](https://cloud.google.com/run)
       [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
       Applicable only to source endpoint.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
    • getCloudRunRevisionOrBuilder

      public Endpoint.CloudRunRevisionEndpointOrBuilder getCloudRunRevisionOrBuilder()
       A [Cloud Run](https://cloud.google.com/run)
       [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
       Applicable only to source endpoint.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint cloud_run_revision = 12;
      Specified by:
      getCloudRunRevisionOrBuilder in interface EndpointOrBuilder
    • getNetwork

      public String getNetwork()
       A VPC network URI. For source endpoints, used according to the
       `network_type`. For destination endpoints, used only when the source is an
       external IP address endpoint, and the destination is an internal IP address
       endpoint.
       
      string network = 4;
      Specified by:
      getNetwork in interface EndpointOrBuilder
      Returns:
      The network.
    • getNetworkBytes

      public com.google.protobuf.ByteString getNetworkBytes()
       A VPC network URI. For source endpoints, used according to the
       `network_type`. For destination endpoints, used only when the source is an
       external IP address endpoint, and the destination is an internal IP address
       endpoint.
       
      string network = 4;
      Specified by:
      getNetworkBytes in interface EndpointOrBuilder
      Returns:
      The bytes for network.
    • setNetwork

      public Endpoint.Builder setNetwork(String value)
       A VPC network URI. For source endpoints, used according to the
       `network_type`. For destination endpoints, used only when the source is an
       external IP address endpoint, and the destination is an internal IP address
       endpoint.
       
      string network = 4;
      Parameters:
      value - The network to set.
      Returns:
      This builder for chaining.
    • clearNetwork

      public Endpoint.Builder clearNetwork()
       A VPC network URI. For source endpoints, used according to the
       `network_type`. For destination endpoints, used only when the source is an
       external IP address endpoint, and the destination is an internal IP address
       endpoint.
       
      string network = 4;
      Returns:
      This builder for chaining.
    • setNetworkBytes

      public Endpoint.Builder setNetworkBytes(com.google.protobuf.ByteString value)
       A VPC network URI. For source endpoints, used according to the
       `network_type`. For destination endpoints, used only when the source is an
       external IP address endpoint, and the destination is an internal IP address
       endpoint.
       
      string network = 4;
      Parameters:
      value - The bytes for network to set.
      Returns:
      This builder for chaining.
    • getNetworkTypeValue

      public int getNetworkTypeValue()
       For source endpoints, type of the network where the endpoint is located.
       Not relevant for destination endpoints.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.NetworkType network_type = 5;
      Specified by:
      getNetworkTypeValue in interface EndpointOrBuilder
      Returns:
      The enum numeric value on the wire for networkType.
    • setNetworkTypeValue

      public Endpoint.Builder setNetworkTypeValue(int value)
       For source endpoints, type of the network where the endpoint is located.
       Not relevant for destination endpoints.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.NetworkType network_type = 5;
      Parameters:
      value - The enum numeric value on the wire for networkType to set.
      Returns:
      This builder for chaining.
    • getNetworkType

      public Endpoint.NetworkType getNetworkType()
       For source endpoints, type of the network where the endpoint is located.
       Not relevant for destination endpoints.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.NetworkType network_type = 5;
      Specified by:
      getNetworkType in interface EndpointOrBuilder
      Returns:
      The networkType.
    • setNetworkType

      public Endpoint.Builder setNetworkType(Endpoint.NetworkType value)
       For source endpoints, type of the network where the endpoint is located.
       Not relevant for destination endpoints.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.NetworkType network_type = 5;
      Parameters:
      value - The networkType to set.
      Returns:
      This builder for chaining.
    • clearNetworkType

      public Endpoint.Builder clearNetworkType()
       For source endpoints, type of the network where the endpoint is located.
       Not relevant for destination endpoints.
       
      .google.cloud.networkmanagement.v1beta1.Endpoint.NetworkType network_type = 5;
      Returns:
      This builder for chaining.
    • getProjectId

      public String getProjectId()
       For source endpoints, endpoint project ID. Used according to the
       `network_type`. Not relevant for destination endpoints.
       
      string project_id = 6;
      Specified by:
      getProjectId in interface EndpointOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       For source endpoints, endpoint project ID. Used according to the
       `network_type`. Not relevant for destination endpoints.
       
      string project_id = 6;
      Specified by:
      getProjectIdBytes in interface EndpointOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public Endpoint.Builder setProjectId(String value)
       For source endpoints, endpoint project ID. Used according to the
       `network_type`. Not relevant for destination endpoints.
       
      string project_id = 6;
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

      public Endpoint.Builder clearProjectId()
       For source endpoints, endpoint project ID. Used according to the
       `network_type`. Not relevant for destination endpoints.
       
      string project_id = 6;
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      public Endpoint.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
       For source endpoints, endpoint project ID. Used according to the
       `network_type`. Not relevant for destination endpoints.
       
      string project_id = 6;
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.