Class 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 type google.cloud.eventarc.v1.Destination
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
      • clear

        public Destination.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
      • getDefaultInstanceForType

        public Destination getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Destination build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Destination buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Destination.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
      • setField

        public Destination.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
      • clearField

        public Destination.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
      • clearOneof

        public Destination.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
      • addRepeatedField

        public Destination.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
      • mergeFrom

        public Destination.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Destination.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Destination.Builder>
        Throws:
        IOException
      • 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 interface DestinationOrBuilder
        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 interface DestinationOrBuilder
        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 interface DestinationOrBuilder
      • 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 interface DestinationOrBuilder
        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 interface DestinationOrBuilder
        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 interface DestinationOrBuilder
        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 interface DestinationOrBuilder
        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 interface DestinationOrBuilder
        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 interface DestinationOrBuilder
      • 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 interface DestinationOrBuilder
        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 interface DestinationOrBuilder
        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 interface DestinationOrBuilder
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>
      • mergeUnknownFields

        public final Destination.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Destination.Builder>