Class Endpoint.Builder (1.56.0)

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

Source or destination of the Connectivity Test.

Protobuf type google.cloud.networkmanagement.v1.Endpoint

Implements

EndpointOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Endpoint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Endpoint.Builder
Overrides

build()

public Endpoint build()
Returns
Type Description
Endpoint

buildPartial()

public Endpoint buildPartial()
Returns
Type Description
Endpoint

clear()

public Endpoint.Builder clear()
Returns
Type Description
Endpoint.Builder
Overrides

clearAppEngineVersion()

public Endpoint.Builder clearAppEngineVersion()

An App Engine service version.

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

Returns
Type Description
Endpoint.Builder

clearCloudFunction()

public Endpoint.Builder clearCloudFunction()

A Cloud Function.

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

Returns
Type Description
Endpoint.Builder

clearCloudRunRevision()

public Endpoint.Builder clearCloudRunRevision()

A Cloud Run revision

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

Returns
Type Description
Endpoint.Builder

clearCloudSqlInstance()

public Endpoint.Builder clearCloudSqlInstance()

A Cloud SQL instance URI.

string cloud_sql_instance = 8;

Returns
Type Description
Endpoint.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Endpoint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Endpoint.Builder
Overrides

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. Format: projects/{project}/global/forwardingRules/{id} or projects/{project}/regions/{region}/forwardingRules/{id}

string forwarding_rule = 13;

Returns
Type Description
Endpoint.Builder

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.v1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Endpoint.Builder

This builder for chaining.

clearFqdn()

public Endpoint.Builder clearFqdn()

DNS endpoint of Google Kubernetes Engine cluster control plane. 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
Type Description
Endpoint.Builder

This builder for chaining.

clearGkeMasterCluster()

public Endpoint.Builder clearGkeMasterCluster()

A cluster URI for Google Kubernetes Engine cluster control plane.

string gke_master_cluster = 7;

Returns
Type Description
Endpoint.Builder

This builder for chaining.

clearInstance()

public Endpoint.Builder clearInstance()

A Compute Engine instance URI.

string instance = 3;

Returns
Type Description
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.

string ip_address = 1;

Returns
Type Description
Endpoint.Builder

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
Type Description
Endpoint.Builder

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.v1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Endpoint.Builder

This builder for chaining.

clearNetwork()

public Endpoint.Builder clearNetwork()

A Compute Engine network URI.

string network = 4;

Returns
Type Description
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.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5;

Returns
Type Description
Endpoint.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Endpoint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
Endpoint.Builder

This builder for chaining.

clearRedisCluster()

public Endpoint.Builder clearRedisCluster()

A Redis Cluster URI.

string redis_cluster = 18;

Returns
Type Description
Endpoint.Builder

This builder for chaining.

clearRedisInstance()

public Endpoint.Builder clearRedisInstance()

A Redis Instance URI.

string redis_instance = 17;

Returns
Type Description
Endpoint.Builder

This builder for chaining.

clone()

public Endpoint.Builder clone()
Returns
Type Description
Endpoint.Builder
Overrides

getAppEngineVersion()

public Endpoint.AppEngineVersionEndpoint getAppEngineVersion()

An App Engine service version.

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

Returns
Type Description
Endpoint.AppEngineVersionEndpoint

The appEngineVersion.

getAppEngineVersionBuilder()

public Endpoint.AppEngineVersionEndpoint.Builder getAppEngineVersionBuilder()

An App Engine service version.

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

Returns
Type Description
Endpoint.AppEngineVersionEndpoint.Builder

getAppEngineVersionOrBuilder()

public Endpoint.AppEngineVersionEndpointOrBuilder getAppEngineVersionOrBuilder()

An App Engine service version.

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

Returns
Type Description
Endpoint.AppEngineVersionEndpointOrBuilder

getCloudFunction()

public Endpoint.CloudFunctionEndpoint getCloudFunction()

A Cloud Function.

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

Returns
Type Description
Endpoint.CloudFunctionEndpoint

The cloudFunction.

getCloudFunctionBuilder()

public Endpoint.CloudFunctionEndpoint.Builder getCloudFunctionBuilder()

A Cloud Function.

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

Returns
Type Description
Endpoint.CloudFunctionEndpoint.Builder

getCloudFunctionOrBuilder()

public Endpoint.CloudFunctionEndpointOrBuilder getCloudFunctionOrBuilder()

A Cloud Function.

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

Returns
Type Description
Endpoint.CloudFunctionEndpointOrBuilder

getCloudRunRevision()

public Endpoint.CloudRunRevisionEndpoint getCloudRunRevision()

A Cloud Run revision

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

Returns
Type Description
Endpoint.CloudRunRevisionEndpoint

The cloudRunRevision.

getCloudRunRevisionBuilder()

public Endpoint.CloudRunRevisionEndpoint.Builder getCloudRunRevisionBuilder()

A Cloud Run revision

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

Returns
Type Description
Endpoint.CloudRunRevisionEndpoint.Builder

getCloudRunRevisionOrBuilder()

public Endpoint.CloudRunRevisionEndpointOrBuilder getCloudRunRevisionOrBuilder()

A Cloud Run revision

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

Returns
Type Description
Endpoint.CloudRunRevisionEndpointOrBuilder

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()
Returns
Type Description
Endpoint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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. Format: projects/{project}/global/forwardingRules/{id} or projects/{project}/regions/{region}/forwardingRules/{id}

string forwarding_rule = 13;

Returns
Type Description
String

The forwardingRule.

getForwardingRuleBytes()

public 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. Format: projects/{project}/global/forwardingRules/{id} or projects/{project}/regions/{region}/forwardingRules/{id}

string forwarding_rule = 13;

Returns
Type Description
ByteString

The bytes for forwardingRule.

getForwardingRuleTarget()

public Endpoint.ForwardingRuleTarget getForwardingRuleTarget()

Output only. Specifies the type of the target of the forwarding rule.

optional .google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Endpoint.ForwardingRuleTarget

The forwardingRuleTarget.

getForwardingRuleTargetValue()

public int getForwardingRuleTargetValue()

Output only. Specifies the type of the target of the forwarding rule.

optional .google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for forwardingRuleTarget.

getFqdn()

public String getFqdn()

DNS endpoint of Google Kubernetes Engine cluster control plane. 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
Type Description
String

The fqdn.

getFqdnBytes()

public ByteString getFqdnBytes()

DNS endpoint of Google Kubernetes Engine cluster control plane. 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
Type Description
ByteString

The bytes for fqdn.

getGkeMasterCluster()

public String getGkeMasterCluster()

A cluster URI for Google Kubernetes Engine cluster control plane.

string gke_master_cluster = 7;

Returns
Type Description
String

The gkeMasterCluster.

getGkeMasterClusterBytes()

public ByteString getGkeMasterClusterBytes()

A cluster URI for Google Kubernetes Engine cluster control plane.

string gke_master_cluster = 7;

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.

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.

string ip_address = 1;

Returns
Type Description
ByteString

The bytes for ipAddress.

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];

Returns
Type Description
String

The loadBalancerId.

getLoadBalancerIdBytes()

public 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];

Returns
Type Description
ByteString

The bytes for loadBalancerId.

getLoadBalancerType()

public LoadBalancerType getLoadBalancerType()

Output only. Type of the load balancer the forwarding rule points to.

optional .google.cloud.networkmanagement.v1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LoadBalancerType

The loadBalancerType.

getLoadBalancerTypeValue()

public int getLoadBalancerTypeValue()

Output only. Type of the load balancer the forwarding rule points to.

optional .google.cloud.networkmanagement.v1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for loadBalancerType.

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.v1.Endpoint.NetworkType network_type = 5;

Returns
Type Description
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.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5;

Returns
Type Description
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
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:

  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
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:

  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
Type Description
ByteString

The bytes for projectId.

getRedisCluster()

public String getRedisCluster()

A Redis Cluster URI.

string redis_cluster = 18;

Returns
Type Description
String

The redisCluster.

getRedisClusterBytes()

public ByteString getRedisClusterBytes()

A Redis Cluster URI.

string redis_cluster = 18;

Returns
Type Description
ByteString

The bytes for redisCluster.

getRedisInstance()

public String getRedisInstance()

A Redis Instance URI.

string redis_instance = 17;

Returns
Type Description
String

The redisInstance.

getRedisInstanceBytes()

public ByteString getRedisInstanceBytes()

A Redis Instance URI.

string redis_instance = 17;

Returns
Type Description
ByteString

The bytes for redisInstance.

hasAppEngineVersion()

public boolean hasAppEngineVersion()

An App Engine service version.

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

Returns
Type Description
boolean

Whether the appEngineVersion field is set.

hasCloudFunction()

public boolean hasCloudFunction()

A Cloud Function.

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

Returns
Type Description
boolean

Whether the cloudFunction field is set.

hasCloudRunRevision()

public boolean hasCloudRunRevision()

A Cloud Run revision

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

Returns
Type Description
boolean

Whether the cloudRunRevision field is set.

hasForwardingRuleTarget()

public boolean hasForwardingRuleTarget()

Output only. Specifies the type of the target of the forwarding rule.

optional .google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the forwardingRuleTarget field is set.

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];

Returns
Type Description
boolean

Whether the loadBalancerId field is set.

hasLoadBalancerType()

public boolean hasLoadBalancerType()

Output only. Type of the load balancer the forwarding rule points to.

optional .google.cloud.networkmanagement.v1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the loadBalancerType field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAppEngineVersion(Endpoint.AppEngineVersionEndpoint value)

public Endpoint.Builder mergeAppEngineVersion(Endpoint.AppEngineVersionEndpoint value)

An App Engine service version.

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

Parameter
Name Description
value Endpoint.AppEngineVersionEndpoint
Returns
Type Description
Endpoint.Builder

mergeCloudFunction(Endpoint.CloudFunctionEndpoint value)

public Endpoint.Builder mergeCloudFunction(Endpoint.CloudFunctionEndpoint value)

A Cloud Function.

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

Parameter
Name Description
value Endpoint.CloudFunctionEndpoint
Returns
Type Description
Endpoint.Builder

mergeCloudRunRevision(Endpoint.CloudRunRevisionEndpoint value)

public Endpoint.Builder mergeCloudRunRevision(Endpoint.CloudRunRevisionEndpoint value)

A Cloud Run revision

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

Parameter
Name Description
value Endpoint.CloudRunRevisionEndpoint
Returns
Type Description
Endpoint.Builder

mergeFrom(Endpoint other)

public Endpoint.Builder mergeFrom(Endpoint other)
Parameter
Name Description
other Endpoint
Returns
Type Description
Endpoint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Endpoint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Endpoint.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Endpoint.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Endpoint.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Endpoint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Endpoint.Builder
Overrides

setAppEngineVersion(Endpoint.AppEngineVersionEndpoint value)

public Endpoint.Builder setAppEngineVersion(Endpoint.AppEngineVersionEndpoint value)

An App Engine service version.

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

Parameter
Name Description
value Endpoint.AppEngineVersionEndpoint
Returns
Type Description
Endpoint.Builder

setAppEngineVersion(Endpoint.AppEngineVersionEndpoint.Builder builderForValue)

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

An App Engine service version.

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

Parameter
Name Description
builderForValue Endpoint.AppEngineVersionEndpoint.Builder
Returns
Type Description
Endpoint.Builder

setCloudFunction(Endpoint.CloudFunctionEndpoint value)

public Endpoint.Builder setCloudFunction(Endpoint.CloudFunctionEndpoint value)

A Cloud Function.

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

Parameter
Name Description
value Endpoint.CloudFunctionEndpoint
Returns
Type Description
Endpoint.Builder

setCloudFunction(Endpoint.CloudFunctionEndpoint.Builder builderForValue)

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

A Cloud Function.

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

Parameter
Name Description
builderForValue Endpoint.CloudFunctionEndpoint.Builder
Returns
Type Description
Endpoint.Builder

setCloudRunRevision(Endpoint.CloudRunRevisionEndpoint value)

public Endpoint.Builder setCloudRunRevision(Endpoint.CloudRunRevisionEndpoint value)

A Cloud Run revision

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

Parameter
Name Description
value Endpoint.CloudRunRevisionEndpoint
Returns
Type Description
Endpoint.Builder

setCloudRunRevision(Endpoint.CloudRunRevisionEndpoint.Builder builderForValue)

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

A Cloud Run revision

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

Parameter
Name Description
builderForValue Endpoint.CloudRunRevisionEndpoint.Builder
Returns
Type Description
Endpoint.Builder

setCloudSqlInstance(String value)

public Endpoint.Builder setCloudSqlInstance(String value)

A Cloud SQL instance URI.

string cloud_sql_instance = 8;

Parameter
Name Description
value String

The cloudSqlInstance to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for cloudSqlInstance to set.

Returns
Type Description
Endpoint.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Endpoint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Endpoint.Builder
Overrides

setForwardingRule(String value)

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. Format: projects/{project}/global/forwardingRules/{id} or projects/{project}/regions/{region}/forwardingRules/{id}

string forwarding_rule = 13;

Parameter
Name Description
value String

The forwardingRule to set.

Returns
Type Description
Endpoint.Builder

This builder for chaining.

setForwardingRuleBytes(ByteString value)

public Endpoint.Builder setForwardingRuleBytes(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. Format: projects/{project}/global/forwardingRules/{id} or projects/{project}/regions/{region}/forwardingRules/{id}

string forwarding_rule = 13;

Parameter
Name Description
value ByteString

The bytes for forwardingRule to set.

Returns
Type Description
Endpoint.Builder

This builder for chaining.

setForwardingRuleTarget(Endpoint.ForwardingRuleTarget value)

public Endpoint.Builder setForwardingRuleTarget(Endpoint.ForwardingRuleTarget value)

Output only. Specifies the type of the target of the forwarding rule.

optional .google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Endpoint.ForwardingRuleTarget

The forwardingRuleTarget to set.

Returns
Type Description
Endpoint.Builder

This builder for chaining.

setForwardingRuleTargetValue(int value)

public Endpoint.Builder setForwardingRuleTargetValue(int value)

Output only. Specifies the type of the target of the forwarding rule.

optional .google.cloud.networkmanagement.v1.Endpoint.ForwardingRuleTarget forwarding_rule_target = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
Endpoint.Builder

This builder for chaining.

setFqdn(String value)

public Endpoint.Builder setFqdn(String value)

DNS endpoint of Google Kubernetes Engine cluster control plane. 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;

Parameter
Name Description
value String

The fqdn to set.

Returns
Type Description
Endpoint.Builder

This builder for chaining.

setFqdnBytes(ByteString value)

public Endpoint.Builder setFqdnBytes(ByteString value)

DNS endpoint of Google Kubernetes Engine cluster control plane. 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;

Parameter
Name Description
value ByteString

The bytes for fqdn to set.

Returns
Type Description
Endpoint.Builder

This builder for chaining.

setGkeMasterCluster(String value)

public Endpoint.Builder setGkeMasterCluster(String value)

A cluster URI for Google Kubernetes Engine cluster control plane.

string gke_master_cluster = 7;

Parameter
Name Description
value String

The gkeMasterCluster to set.

Returns
Type Description
Endpoint.Builder

This builder for chaining.

setGkeMasterClusterBytes(ByteString value)

public Endpoint.Builder setGkeMasterClusterBytes(ByteString value)

A cluster URI for Google Kubernetes Engine cluster control plane.

string gke_master_cluster = 7;

Parameter
Name Description
value ByteString

The bytes for gkeMasterCluster to set.

Returns
Type Description
Endpoint.Builder

This builder for chaining.

setInstance(String value)

public Endpoint.Builder setInstance(String value)

A Compute Engine instance URI.

string instance = 3;

Parameter
Name Description
value String

The instance to set.

Returns
Type Description
Endpoint.Builder

This builder for chaining.

setInstanceBytes(ByteString value)

public Endpoint.Builder setInstanceBytes(ByteString value)

A Compute Engine instance URI.

string instance = 3;

Parameter
Name Description
value ByteString

The bytes for instance to set.

Returns
Type Description
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.

string ip_address = 1;

Parameter
Name Description
value String

The ipAddress to set.

Returns
Type Description
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.

string ip_address = 1;

Parameter
Name Description
value ByteString

The bytes for ipAddress to set.

Returns
Type Description
Endpoint.Builder

This builder for chaining.

setLoadBalancerId(String value)

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];

Parameter
Name Description
value String

The loadBalancerId to set.

Returns
Type Description
Endpoint.Builder

This builder for chaining.

setLoadBalancerIdBytes(ByteString value)

public Endpoint.Builder setLoadBalancerIdBytes(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];

Parameter
Name Description
value ByteString

The bytes for loadBalancerId to set.

Returns
Type Description
Endpoint.Builder

This builder for chaining.

setLoadBalancerType(LoadBalancerType value)

public Endpoint.Builder setLoadBalancerType(LoadBalancerType value)

Output only. Type of the load balancer the forwarding rule points to.

optional .google.cloud.networkmanagement.v1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value LoadBalancerType

The loadBalancerType to set.

Returns
Type Description
Endpoint.Builder

This builder for chaining.

setLoadBalancerTypeValue(int value)

public Endpoint.Builder setLoadBalancerTypeValue(int value)

Output only. Type of the load balancer the forwarding rule points to.

optional .google.cloud.networkmanagement.v1.LoadBalancerType load_balancer_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
Endpoint.Builder

This builder for chaining.

setNetwork(String value)

public Endpoint.Builder setNetwork(String value)

A Compute Engine network URI.

string network = 4;

Parameter
Name Description
value String

The network to set.

Returns
Type Description
Endpoint.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public Endpoint.Builder setNetworkBytes(ByteString value)

A Compute Engine network URI.

string network = 4;

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
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.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5;

Parameter
Name Description
value Endpoint.NetworkType

The networkType to set.

Returns
Type Description
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.cloud.networkmanagement.v1.Endpoint.NetworkType network_type = 5;

Parameter
Name Description
value int

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

Returns
Type Description
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
Name Description
value int

The port to set.

Returns
Type Description
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
Name Description
value String

The projectId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
Endpoint.Builder

This builder for chaining.

setRedisCluster(String value)

public Endpoint.Builder setRedisCluster(String value)

A Redis Cluster URI.

string redis_cluster = 18;

Parameter
Name Description
value String

The redisCluster to set.

Returns
Type Description
Endpoint.Builder

This builder for chaining.

setRedisClusterBytes(ByteString value)

public Endpoint.Builder setRedisClusterBytes(ByteString value)

A Redis Cluster URI.

string redis_cluster = 18;

Parameter
Name Description
value ByteString

The bytes for redisCluster to set.

Returns
Type Description
Endpoint.Builder

This builder for chaining.

setRedisInstance(String value)

public Endpoint.Builder setRedisInstance(String value)

A Redis Instance URI.

string redis_instance = 17;

Parameter
Name Description
value String

The redisInstance to set.

Returns
Type Description
Endpoint.Builder

This builder for chaining.

setRedisInstanceBytes(ByteString value)

public Endpoint.Builder setRedisInstanceBytes(ByteString value)

A Redis Instance URI.

string redis_instance = 17;

Parameter
Name Description
value ByteString

The bytes for redisInstance to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Endpoint.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Endpoint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Endpoint.Builder
Overrides