Class Destination.Builder (1.14.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Destination.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Destination.Builder
Overrides

build()

public Destination build()
Returns
TypeDescription
Destination

buildPartial()

public Destination buildPartial()
Returns
TypeDescription
Destination

clear()

public Destination.Builder clear()
Returns
TypeDescription
Destination.Builder
Overrides

clearCloudFunction()

public Destination.Builder clearCloudFunction()

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

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

Returns
TypeDescription
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
TypeDescription
Destination.Builder

clearDescriptor()

public Destination.Builder clearDescriptor()
Returns
TypeDescription
Destination.Builder

clearField(Descriptors.FieldDescriptor field)

public Destination.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Destination.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Destination.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Destination.Builder

This builder for chaining.

clone()

public Destination.Builder clone()
Returns
TypeDescription
Destination.Builder
Overrides

getCloudFunction()

public String getCloudFunction()

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

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

Returns
TypeDescription
String

The cloudFunction.

getCloudFunctionBytes()

public ByteString getCloudFunctionBytes()

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

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CloudRunOrBuilder

getDefaultInstanceForType()

public Destination getDefaultInstanceForType()
Returns
TypeDescription
Destination

getDescriptorCase()

public Destination.DescriptorCase getDescriptorCase()
Returns
TypeDescription
Destination.DescriptorCase

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
GKEOrBuilder

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
TypeDescription
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
TypeDescription
ByteString

The bytes for workflow.

hasCloudFunction()

public boolean hasCloudFunction()

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

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the gke 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
TypeDescription
boolean

Whether the workflow field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueCloudRun
Returns
TypeDescription
Destination.Builder

mergeFrom(Destination other)

public Destination.Builder mergeFrom(Destination other)
Parameter
NameDescription
otherDestination
Returns
TypeDescription
Destination.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Destination.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Destination.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Destination.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueGKE
Returns
TypeDescription
Destination.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Destination.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Destination.Builder
Overrides

setCloudFunction(String value)

public Destination.Builder setCloudFunction(String value)

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

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

Parameter
NameDescription
valueString

The cloudFunction to set.

Returns
TypeDescription
Destination.Builder

This builder for chaining.

setCloudFunctionBytes(ByteString value)

public Destination.Builder setCloudFunctionBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for cloudFunction to set.

Returns
TypeDescription
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
NameDescription
valueCloudRun
Returns
TypeDescription
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
NameDescription
builderForValueCloudRun.Builder
Returns
TypeDescription
Destination.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Destination.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueGKE
Returns
TypeDescription
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
NameDescription
builderForValueGKE.Builder
Returns
TypeDescription
Destination.Builder

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

public Destination.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Destination.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Destination.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The workflow to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for workflow to set.

Returns
TypeDescription
Destination.Builder

This builder for chaining.