Class Destination.Builder (1.54.0)

public static final class Destination.Builder extends GeneratedMessageV3.Builder<Destination.Builder> implements DestinationOrBuilder

Represents a target of an invocation over HTTP.

Protobuf type google.cloud.eventarc.v1.Destination

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Destination build()
Returns
Type Description
Destination

buildPartial()

public Destination buildPartial()
Returns
Type Description
Destination

clear()

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

clearCloudFunction()

public Destination.Builder clearCloudFunction()

The Cloud Function resource name. Cloud Functions V1 and V2 are supported. Format: projects/{project}/locations/{location}/functions/{function}

This is a read-only field. Creating Cloud Functions V1/V2 triggers is only supported via the Cloud Functions product. An error will be returned if the user sets this value.

string cloud_function = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
Destination.Builder

This builder for chaining.

clearCloudRun()

public Destination.Builder clearCloudRun()

Cloud Run fully-managed resource that receives the events. The resource should be in the same project as the trigger.

.google.cloud.eventarc.v1.CloudRun cloud_run = 1;

Returns
Type Description
Destination.Builder

clearDescriptor()

public Destination.Builder clearDescriptor()
Returns
Type Description
Destination.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGke()

public Destination.Builder clearGke()

A GKE service capable of receiving events. The service should be running in the same project as the trigger.

.google.cloud.eventarc.v1.GKE gke = 3;

Returns
Type Description
Destination.Builder

clearHttpEndpoint()

public Destination.Builder clearHttpEndpoint()

An HTTP endpoint destination described by an URI.

.google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5;

Returns
Type Description
Destination.Builder

clearNetworkConfig()

public Destination.Builder clearNetworkConfig()

Optional. Network config is used to configure how Eventarc resolves and connect to a destination. This should only be used with HttpEndpoint destination type.

.google.cloud.eventarc.v1.NetworkConfig network_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Destination.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Destination.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Destination.Builder
Overrides

clearWorkflow()

public Destination.Builder clearWorkflow()

The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger. Format: projects/{project}/locations/{location}/workflows/{workflow}

string workflow = 4 [(.google.api.resource_reference) = { ... }

Returns
Type Description
Destination.Builder

This builder for chaining.

clone()

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

getCloudFunction()

public String getCloudFunction()

The Cloud Function resource name. Cloud Functions V1 and V2 are supported. Format: projects/{project}/locations/{location}/functions/{function}

This is a read-only field. Creating Cloud Functions V1/V2 triggers is only supported via the Cloud Functions product. An error will be returned if the user sets this value.

string cloud_function = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The cloudFunction.

getCloudFunctionBytes()

public ByteString getCloudFunctionBytes()

The Cloud Function resource name. Cloud Functions V1 and V2 are supported. Format: projects/{project}/locations/{location}/functions/{function}

This is a read-only field. Creating Cloud Functions V1/V2 triggers is only supported via the Cloud Functions product. An error will be returned if the user sets this value.

string cloud_function = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for cloudFunction.

getCloudRun()

public CloudRun getCloudRun()

Cloud Run fully-managed resource that receives the events. The resource should be in the same project as the trigger.

.google.cloud.eventarc.v1.CloudRun cloud_run = 1;

Returns
Type Description
CloudRun

The cloudRun.

getCloudRunBuilder()

public CloudRun.Builder getCloudRunBuilder()

Cloud Run fully-managed resource that receives the events. The resource should be in the same project as the trigger.

.google.cloud.eventarc.v1.CloudRun cloud_run = 1;

Returns
Type Description
CloudRun.Builder

getCloudRunOrBuilder()

public CloudRunOrBuilder getCloudRunOrBuilder()

Cloud Run fully-managed resource that receives the events. The resource should be in the same project as the trigger.

.google.cloud.eventarc.v1.CloudRun cloud_run = 1;

Returns
Type Description
CloudRunOrBuilder

getDefaultInstanceForType()

public Destination getDefaultInstanceForType()
Returns
Type Description
Destination

getDescriptorCase()

public Destination.DescriptorCase getDescriptorCase()
Returns
Type Description
Destination.DescriptorCase

getDescriptorForType()

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

getGke()

public GKE getGke()

A GKE service capable of receiving events. The service should be running in the same project as the trigger.

.google.cloud.eventarc.v1.GKE gke = 3;

Returns
Type Description
GKE

The gke.

getGkeBuilder()

public GKE.Builder getGkeBuilder()

A GKE service capable of receiving events. The service should be running in the same project as the trigger.

.google.cloud.eventarc.v1.GKE gke = 3;

Returns
Type Description
GKE.Builder

getGkeOrBuilder()

public GKEOrBuilder getGkeOrBuilder()

A GKE service capable of receiving events. The service should be running in the same project as the trigger.

.google.cloud.eventarc.v1.GKE gke = 3;

Returns
Type Description
GKEOrBuilder

getHttpEndpoint()

public HttpEndpoint getHttpEndpoint()

An HTTP endpoint destination described by an URI.

.google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5;

Returns
Type Description
HttpEndpoint

The httpEndpoint.

getHttpEndpointBuilder()

public HttpEndpoint.Builder getHttpEndpointBuilder()

An HTTP endpoint destination described by an URI.

.google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5;

Returns
Type Description
HttpEndpoint.Builder

getHttpEndpointOrBuilder()

public HttpEndpointOrBuilder getHttpEndpointOrBuilder()

An HTTP endpoint destination described by an URI.

.google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5;

Returns
Type Description
HttpEndpointOrBuilder

getNetworkConfig()

public NetworkConfig getNetworkConfig()

Optional. Network config is used to configure how Eventarc resolves and connect to a destination. This should only be used with HttpEndpoint destination type.

.google.cloud.eventarc.v1.NetworkConfig network_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NetworkConfig

The networkConfig.

getNetworkConfigBuilder()

public NetworkConfig.Builder getNetworkConfigBuilder()

Optional. Network config is used to configure how Eventarc resolves and connect to a destination. This should only be used with HttpEndpoint destination type.

.google.cloud.eventarc.v1.NetworkConfig network_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NetworkConfig.Builder

getNetworkConfigOrBuilder()

public NetworkConfigOrBuilder getNetworkConfigOrBuilder()

Optional. Network config is used to configure how Eventarc resolves and connect to a destination. This should only be used with HttpEndpoint destination type.

.google.cloud.eventarc.v1.NetworkConfig network_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NetworkConfigOrBuilder

getWorkflow()

public String getWorkflow()

The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger. Format: projects/{project}/locations/{location}/workflows/{workflow}

string workflow = 4 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The workflow.

getWorkflowBytes()

public ByteString getWorkflowBytes()

The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger. Format: projects/{project}/locations/{location}/workflows/{workflow}

string workflow = 4 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for workflow.

hasCloudFunction()

public boolean hasCloudFunction()

The Cloud Function resource name. Cloud Functions V1 and V2 are supported. Format: projects/{project}/locations/{location}/functions/{function}

This is a read-only field. Creating Cloud Functions V1/V2 triggers is only supported via the Cloud Functions product. An error will be returned if the user sets this value.

string cloud_function = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the cloudFunction field is set.

hasCloudRun()

public boolean hasCloudRun()

Cloud Run fully-managed resource that receives the events. The resource should be in the same project as the trigger.

.google.cloud.eventarc.v1.CloudRun cloud_run = 1;

Returns
Type Description
boolean

Whether the cloudRun field is set.

hasGke()

public boolean hasGke()

A GKE service capable of receiving events. The service should be running in the same project as the trigger.

.google.cloud.eventarc.v1.GKE gke = 3;

Returns
Type Description
boolean

Whether the gke field is set.

hasHttpEndpoint()

public boolean hasHttpEndpoint()

An HTTP endpoint destination described by an URI.

.google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5;

Returns
Type Description
boolean

Whether the httpEndpoint field is set.

hasNetworkConfig()

public boolean hasNetworkConfig()

Optional. Network config is used to configure how Eventarc resolves and connect to a destination. This should only be used with HttpEndpoint destination type.

.google.cloud.eventarc.v1.NetworkConfig network_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the networkConfig field is set.

hasWorkflow()

public boolean hasWorkflow()

The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger. Format: projects/{project}/locations/{location}/workflows/{workflow}

string workflow = 4 [(.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the workflow field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCloudRun(CloudRun value)

public Destination.Builder mergeCloudRun(CloudRun value)

Cloud Run fully-managed resource that receives the events. The resource should be in the same project as the trigger.

.google.cloud.eventarc.v1.CloudRun cloud_run = 1;

Parameter
Name Description
value CloudRun
Returns
Type Description
Destination.Builder

mergeFrom(Destination other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGke(GKE value)

public Destination.Builder mergeGke(GKE value)

A GKE service capable of receiving events. The service should be running in the same project as the trigger.

.google.cloud.eventarc.v1.GKE gke = 3;

Parameter
Name Description
value GKE
Returns
Type Description
Destination.Builder

mergeHttpEndpoint(HttpEndpoint value)

public Destination.Builder mergeHttpEndpoint(HttpEndpoint value)

An HTTP endpoint destination described by an URI.

.google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5;

Parameter
Name Description
value HttpEndpoint
Returns
Type Description
Destination.Builder

mergeNetworkConfig(NetworkConfig value)

public Destination.Builder mergeNetworkConfig(NetworkConfig value)

Optional. Network config is used to configure how Eventarc resolves and connect to a destination. This should only be used with HttpEndpoint destination type.

.google.cloud.eventarc.v1.NetworkConfig network_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value NetworkConfig
Returns
Type Description
Destination.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCloudFunction(String value)

public Destination.Builder setCloudFunction(String value)

The Cloud Function resource name. Cloud Functions V1 and V2 are supported. Format: projects/{project}/locations/{location}/functions/{function}

This is a read-only field. Creating Cloud Functions V1/V2 triggers is only supported via the Cloud Functions product. An error will be returned if the user sets this value.

string cloud_function = 2 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The cloudFunction to set.

Returns
Type Description
Destination.Builder

This builder for chaining.

setCloudFunctionBytes(ByteString value)

public Destination.Builder setCloudFunctionBytes(ByteString value)

The Cloud Function resource name. Cloud Functions V1 and V2 are supported. Format: projects/{project}/locations/{location}/functions/{function}

This is a read-only field. Creating Cloud Functions V1/V2 triggers is only supported via the Cloud Functions product. An error will be returned if the user sets this value.

string cloud_function = 2 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for cloudFunction to set.

Returns
Type Description
Destination.Builder

This builder for chaining.

setCloudRun(CloudRun value)

public Destination.Builder setCloudRun(CloudRun value)

Cloud Run fully-managed resource that receives the events. The resource should be in the same project as the trigger.

.google.cloud.eventarc.v1.CloudRun cloud_run = 1;

Parameter
Name Description
value CloudRun
Returns
Type Description
Destination.Builder

setCloudRun(CloudRun.Builder builderForValue)

public Destination.Builder setCloudRun(CloudRun.Builder builderForValue)

Cloud Run fully-managed resource that receives the events. The resource should be in the same project as the trigger.

.google.cloud.eventarc.v1.CloudRun cloud_run = 1;

Parameter
Name Description
builderForValue CloudRun.Builder
Returns
Type Description
Destination.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGke(GKE value)

public Destination.Builder setGke(GKE value)

A GKE service capable of receiving events. The service should be running in the same project as the trigger.

.google.cloud.eventarc.v1.GKE gke = 3;

Parameter
Name Description
value GKE
Returns
Type Description
Destination.Builder

setGke(GKE.Builder builderForValue)

public Destination.Builder setGke(GKE.Builder builderForValue)

A GKE service capable of receiving events. The service should be running in the same project as the trigger.

.google.cloud.eventarc.v1.GKE gke = 3;

Parameter
Name Description
builderForValue GKE.Builder
Returns
Type Description
Destination.Builder

setHttpEndpoint(HttpEndpoint value)

public Destination.Builder setHttpEndpoint(HttpEndpoint value)

An HTTP endpoint destination described by an URI.

.google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5;

Parameter
Name Description
value HttpEndpoint
Returns
Type Description
Destination.Builder

setHttpEndpoint(HttpEndpoint.Builder builderForValue)

public Destination.Builder setHttpEndpoint(HttpEndpoint.Builder builderForValue)

An HTTP endpoint destination described by an URI.

.google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5;

Parameter
Name Description
builderForValue HttpEndpoint.Builder
Returns
Type Description
Destination.Builder

setNetworkConfig(NetworkConfig value)

public Destination.Builder setNetworkConfig(NetworkConfig value)

Optional. Network config is used to configure how Eventarc resolves and connect to a destination. This should only be used with HttpEndpoint destination type.

.google.cloud.eventarc.v1.NetworkConfig network_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value NetworkConfig
Returns
Type Description
Destination.Builder

setNetworkConfig(NetworkConfig.Builder builderForValue)

public Destination.Builder setNetworkConfig(NetworkConfig.Builder builderForValue)

Optional. Network config is used to configure how Eventarc resolves and connect to a destination. This should only be used with HttpEndpoint destination type.

.google.cloud.eventarc.v1.NetworkConfig network_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue NetworkConfig.Builder
Returns
Type Description
Destination.Builder

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

public Destination.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Destination.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setWorkflow(String value)

public Destination.Builder setWorkflow(String value)

The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger. Format: projects/{project}/locations/{location}/workflows/{workflow}

string workflow = 4 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The workflow to set.

Returns
Type Description
Destination.Builder

This builder for chaining.

setWorkflowBytes(ByteString value)

public Destination.Builder setWorkflowBytes(ByteString value)

The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger. Format: projects/{project}/locations/{location}/workflows/{workflow}

string workflow = 4 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for workflow to set.

Returns
Type Description
Destination.Builder

This builder for chaining.