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.GeneratedMessage.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.GeneratedMessage.Builder<Destination.Builder>
implements DestinationOrBuilder
Represents a target of an invocation over HTTP.Protobuf type
google.cloud.eventarc.v1.Destination-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The Cloud Function resource name.Cloud Run fully-managed resource that receives the events.clearGke()A GKE service capable of receiving events.An HTTP endpoint destination described by an URI.Optional.The resource name of the Workflow whose Executions are triggered by the events.The Cloud Function resource name.com.google.protobuf.ByteStringThe Cloud Function resource name.Cloud Run fully-managed resource that receives the events.Cloud Run fully-managed resource that receives the events.Cloud Run fully-managed resource that receives the events.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetGke()A GKE service capable of receiving events.A GKE service capable of receiving events.A GKE service capable of receiving events.An HTTP endpoint destination described by an URI.An HTTP endpoint destination described by an URI.An HTTP endpoint destination described by an URI.Optional.Optional.Optional.The resource name of the Workflow whose Executions are triggered by the events.com.google.protobuf.ByteStringThe resource name of the Workflow whose Executions are triggered by the events.booleanThe Cloud Function resource name.booleanCloud Run fully-managed resource that receives the events.booleanhasGke()A GKE service capable of receiving events.booleanAn HTTP endpoint destination described by an URI.booleanOptional.booleanThe resource name of the Workflow whose Executions are triggered by the events.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCloudRun(CloudRun value) Cloud Run fully-managed resource that receives the events.mergeFrom(Destination other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) A GKE service capable of receiving events.mergeHttpEndpoint(HttpEndpoint value) An HTTP endpoint destination described by an URI.mergeNetworkConfig(NetworkConfig value) Optional.setCloudFunction(String value) The Cloud Function resource name.setCloudFunctionBytes(com.google.protobuf.ByteString value) The Cloud Function resource name.setCloudRun(CloudRun value) Cloud Run fully-managed resource that receives the events.setCloudRun(CloudRun.Builder builderForValue) Cloud Run fully-managed resource that receives the events.A GKE service capable of receiving events.setGke(GKE.Builder builderForValue) A GKE service capable of receiving events.setHttpEndpoint(HttpEndpoint value) An HTTP endpoint destination described by an URI.setHttpEndpoint(HttpEndpoint.Builder builderForValue) An HTTP endpoint destination described by an URI.setNetworkConfig(NetworkConfig value) Optional.setNetworkConfig(NetworkConfig.Builder builderForValue) Optional.setWorkflow(String value) The resource name of the Workflow whose Executions are triggered by the events.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.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Destination.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<Destination.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Destination.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
- Specified by:
getDescriptorCasein interfaceDestinationOrBuilder
-
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
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
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
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
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
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
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
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. 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) = { ... }- Specified by:
hasCloudFunctionin interfaceDestinationOrBuilder- Returns:
- Whether the cloudFunction field is set.
-
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) = { ... }- Specified by:
getCloudFunctionin interfaceDestinationOrBuilder- Returns:
- The cloudFunction.
-
getCloudFunctionBytes
public com.google.protobuf.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) = { ... }- Specified by:
getCloudFunctionBytesin interfaceDestinationOrBuilder- Returns:
- The bytes for cloudFunction.
-
setCloudFunction
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) = { ... }- Parameters:
value- The cloudFunction to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setCloudFunctionBytes
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) = { ... }- 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
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
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
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
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
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
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
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
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
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
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
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.
-
hasHttpEndpoint
public boolean hasHttpEndpoint()An HTTP endpoint destination described by an URI.
.google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5;- Specified by:
hasHttpEndpointin interfaceDestinationOrBuilder- Returns:
- Whether the httpEndpoint field is set.
-
getHttpEndpoint
An HTTP endpoint destination described by an URI.
.google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5;- Specified by:
getHttpEndpointin interfaceDestinationOrBuilder- Returns:
- The httpEndpoint.
-
setHttpEndpoint
An HTTP endpoint destination described by an URI.
.google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5; -
setHttpEndpoint
An HTTP endpoint destination described by an URI.
.google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5; -
mergeHttpEndpoint
An HTTP endpoint destination described by an URI.
.google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5; -
clearHttpEndpoint
An HTTP endpoint destination described by an URI.
.google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5; -
getHttpEndpointBuilder
An HTTP endpoint destination described by an URI.
.google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5; -
getHttpEndpointOrBuilder
An HTTP endpoint destination described by an URI.
.google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5;- Specified by:
getHttpEndpointOrBuilderin interfaceDestinationOrBuilder
-
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];- Specified by:
hasNetworkConfigin interfaceDestinationOrBuilder- Returns:
- Whether the networkConfig field is set.
-
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];- Specified by:
getNetworkConfigin interfaceDestinationOrBuilder- Returns:
- The networkConfig.
-
setNetworkConfig
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]; -
setNetworkConfig
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]; -
mergeNetworkConfig
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]; -
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]; -
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]; -
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];- Specified by:
getNetworkConfigOrBuilderin interfaceDestinationOrBuilder
-