Package com.google.cloud.eventarc.v1
Class Destination.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
-
- com.google.cloud.eventarc.v1.Destination.Builder
-
- All Implemented Interfaces:
DestinationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Destination
public static final class Destination.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder> implements DestinationOrBuilder
Represents a target of an invocation over HTTP.
Protobuf typegoogle.cloud.eventarc.v1.Destination
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Destination.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Destinationbuild()DestinationbuildPartial()Destination.Builderclear()Destination.BuilderclearCloudFunction()The Cloud Function resource name.Destination.BuilderclearCloudRun()Cloud Run fully-managed resource that receives the events.Destination.BuilderclearDescriptor()Destination.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Destination.BuilderclearGke()A GKE service capable of receiving events.Destination.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Destination.BuilderclearWorkflow()The resource name of the Workflow whose Executions are triggered by the events.Destination.Builderclone()StringgetCloudFunction()The Cloud Function resource name.com.google.protobuf.ByteStringgetCloudFunctionBytes()The Cloud Function resource name.CloudRungetCloudRun()Cloud Run fully-managed resource that receives the events.CloudRun.BuildergetCloudRunBuilder()Cloud Run fully-managed resource that receives the events.CloudRunOrBuildergetCloudRunOrBuilder()Cloud Run fully-managed resource that receives the events.DestinationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Destination.DescriptorCasegetDescriptorCase()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()GKEgetGke()A GKE service capable of receiving events.GKE.BuildergetGkeBuilder()A GKE service capable of receiving events.GKEOrBuildergetGkeOrBuilder()A GKE service capable of receiving events.StringgetWorkflow()The resource name of the Workflow whose Executions are triggered by the events.com.google.protobuf.ByteStringgetWorkflowBytes()The resource name of the Workflow whose Executions are triggered by the events.booleanhasCloudFunction()The Cloud Function resource name.booleanhasCloudRun()Cloud Run fully-managed resource that receives the events.booleanhasGke()A GKE service capable of receiving events.booleanhasWorkflow()The resource name of the Workflow whose Executions are triggered by the events.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Destination.BuildermergeCloudRun(CloudRun value)Cloud Run fully-managed resource that receives the events.Destination.BuildermergeFrom(Destination other)Destination.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Destination.BuildermergeFrom(com.google.protobuf.Message other)Destination.BuildermergeGke(GKE value)A GKE service capable of receiving events.Destination.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Destination.BuildersetCloudFunction(String value)The Cloud Function resource name.Destination.BuildersetCloudFunctionBytes(com.google.protobuf.ByteString value)The Cloud Function resource name.Destination.BuildersetCloudRun(CloudRun value)Cloud Run fully-managed resource that receives the events.Destination.BuildersetCloudRun(CloudRun.Builder builderForValue)Cloud Run fully-managed resource that receives the events.Destination.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Destination.BuildersetGke(GKE value)A GKE service capable of receiving events.Destination.BuildersetGke(GKE.Builder builderForValue)A GKE service capable of receiving events.Destination.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Destination.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Destination.BuildersetWorkflow(String value)The resource name of the Workflow whose Executions are triggered by the events.Destination.BuildersetWorkflowBytes(com.google.protobuf.ByteString value)The resource name of the Workflow whose Executions are triggered by the events.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
-
clear
public Destination.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
-
getDefaultInstanceForType
public Destination getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Destination build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Destination buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Destination.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
-
setField
public Destination.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
-
clearField
public Destination.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
-
clearOneof
public Destination.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
-
setRepeatedField
public Destination.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
-
addRepeatedField
public Destination.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
-
mergeFrom
public Destination.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Destination.Builder>
-
mergeFrom
public Destination.Builder mergeFrom(Destination other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
-
mergeFrom
public Destination.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Destination.Builder>- Throws:
IOException
-
getDescriptorCase
public Destination.DescriptorCase getDescriptorCase()
- Specified by:
getDescriptorCasein interfaceDestinationOrBuilder
-
clearDescriptor
public Destination.Builder clearDescriptor()
-
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;- Specified by:
hasCloudRunin interfaceDestinationOrBuilder- Returns:
- Whether the cloudRun field is set.
-
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;- Specified by:
getCloudRunin interfaceDestinationOrBuilder- Returns:
- The cloudRun.
-
setCloudRun
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;
-
setCloudRun
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;
-
mergeCloudRun
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;
-
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;
-
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;
-
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;- Specified by:
getCloudRunOrBuilderin interfaceDestinationOrBuilder
-
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) = { ... }- Specified by:
hasCloudFunctionin interfaceDestinationOrBuilder- Returns:
- Whether the cloudFunction field is set.
-
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) = { ... }- Specified by:
getCloudFunctionin interfaceDestinationOrBuilder- Returns:
- The cloudFunction.
-
getCloudFunctionBytes
public com.google.protobuf.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) = { ... }- Specified by:
getCloudFunctionBytesin interfaceDestinationOrBuilder- Returns:
- The bytes for cloudFunction.
-
setCloudFunction
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) = { ... }- Parameters:
value- The cloudFunction to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setCloudFunctionBytes
public Destination.Builder setCloudFunctionBytes(com.google.protobuf.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) = { ... }- Parameters:
value- The bytes for cloudFunction to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasGkein interfaceDestinationOrBuilder- Returns:
- Whether the gke field is set.
-
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;- Specified by:
getGkein interfaceDestinationOrBuilder- Returns:
- The gke.
-
setGke
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;
-
setGke
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;
-
mergeGke
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;
-
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;
-
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;
-
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;- Specified by:
getGkeOrBuilderin interfaceDestinationOrBuilder
-
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) = { ... }- Specified by:
hasWorkflowin interfaceDestinationOrBuilder- Returns:
- Whether the workflow field is set.
-
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) = { ... }- Specified by:
getWorkflowin interfaceDestinationOrBuilder- Returns:
- The workflow.
-
getWorkflowBytes
public com.google.protobuf.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) = { ... }- Specified by:
getWorkflowBytesin interfaceDestinationOrBuilder- Returns:
- The bytes for workflow.
-
setWorkflow
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) = { ... }- Parameters:
value- The workflow to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setWorkflowBytes
public Destination.Builder setWorkflowBytes(com.google.protobuf.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) = { ... }- Parameters:
value- The bytes for workflow to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Destination.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
-
mergeUnknownFields
public final Destination.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
-
-