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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Destination
build()
Destination
buildPartial()
Destination.Builder
clear()
Destination.Builder
clearCloudFunction()
The Cloud Function resource name.Destination.Builder
clearCloudRun()
Cloud Run fully-managed resource that receives the events.Destination.Builder
clearDescriptor()
Destination.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Destination.Builder
clearGke()
A GKE service capable of receiving events.Destination.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Destination.Builder
clearWorkflow()
The resource name of the Workflow whose Executions are triggered by the events.Destination.Builder
clone()
String
getCloudFunction()
The Cloud Function resource name.com.google.protobuf.ByteString
getCloudFunctionBytes()
The Cloud Function resource name.CloudRun
getCloudRun()
Cloud Run fully-managed resource that receives the events.CloudRun.Builder
getCloudRunBuilder()
Cloud Run fully-managed resource that receives the events.CloudRunOrBuilder
getCloudRunOrBuilder()
Cloud Run fully-managed resource that receives the events.Destination
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
Destination.DescriptorCase
getDescriptorCase()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
GKE
getGke()
A GKE service capable of receiving events.GKE.Builder
getGkeBuilder()
A GKE service capable of receiving events.GKEOrBuilder
getGkeOrBuilder()
A GKE service capable of receiving events.String
getWorkflow()
The resource name of the Workflow whose Executions are triggered by the events.com.google.protobuf.ByteString
getWorkflowBytes()
The resource name of the Workflow whose Executions are triggered by the events.boolean
hasCloudFunction()
The Cloud Function resource name.boolean
hasCloudRun()
Cloud Run fully-managed resource that receives the events.boolean
hasGke()
A GKE service capable of receiving events.boolean
hasWorkflow()
The resource name of the Workflow whose Executions are triggered by the events.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Destination.Builder
mergeCloudRun(CloudRun value)
Cloud Run fully-managed resource that receives the events.Destination.Builder
mergeFrom(Destination other)
Destination.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Destination.Builder
mergeFrom(com.google.protobuf.Message other)
Destination.Builder
mergeGke(GKE value)
A GKE service capable of receiving events.Destination.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Destination.Builder
setCloudFunction(String value)
The Cloud Function resource name.Destination.Builder
setCloudFunctionBytes(com.google.protobuf.ByteString value)
The Cloud Function resource name.Destination.Builder
setCloudRun(CloudRun value)
Cloud Run fully-managed resource that receives the events.Destination.Builder
setCloudRun(CloudRun.Builder builderForValue)
Cloud Run fully-managed resource that receives the events.Destination.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Destination.Builder
setGke(GKE value)
A GKE service capable of receiving events.Destination.Builder
setGke(GKE.Builder builderForValue)
A GKE service capable of receiving events.Destination.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Destination.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Destination.Builder
setWorkflow(String value)
The resource name of the Workflow whose Executions are triggered by the events.Destination.Builder
setWorkflowBytes(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
-
clear
public Destination.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
-
getDefaultInstanceForType
public Destination getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Destination build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Destination buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Destination.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
-
setField
public Destination.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
-
clearField
public Destination.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
-
clearOneof
public Destination.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
-
setRepeatedField
public Destination.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
-
addRepeatedField
public Destination.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
-
mergeFrom
public Destination.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Destination.Builder>
-
mergeFrom
public Destination.Builder mergeFrom(Destination other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Destination.Builder>
- Throws:
IOException
-
getDescriptorCase
public Destination.DescriptorCase getDescriptorCase()
- Specified by:
getDescriptorCase
in 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:
hasCloudRun
in 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:
getCloudRun
in 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:
getCloudRunOrBuilder
in 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:
hasCloudFunction
in 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:
getCloudFunction
in 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:
getCloudFunctionBytes
in 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:
hasGke
in 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:
getGke
in 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:
getGkeOrBuilder
in 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:
hasWorkflow
in 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:
getWorkflow
in 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:
getWorkflowBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
-
mergeUnknownFields
public final Destination.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
-
-