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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public Destination.Builder mergeFrom(Destination other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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
    • getDescriptorCase

      public Destination.DescriptorCase getDescriptorCase()
      Specified by:
      getDescriptorCase in interface DestinationOrBuilder
    • 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 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. 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:
      hasCloudFunction in interface DestinationOrBuilder
      Returns:
      Whether the cloudFunction field is set.
    • getCloudFunction

      public String 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:
      getCloudFunction in interface DestinationOrBuilder
      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:
      getCloudFunctionBytes in interface DestinationOrBuilder
      Returns:
      The bytes for cloudFunction.
    • setCloudFunction

      public Destination.Builder setCloudFunction(String value)
       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

      public Destination.Builder 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

      public Destination.Builder setCloudFunctionBytes(com.google.protobuf.ByteString value)
       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:
      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.
    • hasHttpEndpoint

      public boolean hasHttpEndpoint()
       An HTTP endpoint destination described by an URI.
       
      .google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5;
      Specified by:
      hasHttpEndpoint in interface DestinationOrBuilder
      Returns:
      Whether the httpEndpoint field is set.
    • getHttpEndpoint

      public HttpEndpoint getHttpEndpoint()
       An HTTP endpoint destination described by an URI.
       
      .google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5;
      Specified by:
      getHttpEndpoint in interface DestinationOrBuilder
      Returns:
      The httpEndpoint.
    • setHttpEndpoint

      public Destination.Builder setHttpEndpoint(HttpEndpoint value)
       An HTTP endpoint destination described by an URI.
       
      .google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5;
    • setHttpEndpoint

      public Destination.Builder setHttpEndpoint(HttpEndpoint.Builder builderForValue)
       An HTTP endpoint destination described by an URI.
       
      .google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5;
    • mergeHttpEndpoint

      public Destination.Builder mergeHttpEndpoint(HttpEndpoint value)
       An HTTP endpoint destination described by an URI.
       
      .google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5;
    • clearHttpEndpoint

      public Destination.Builder clearHttpEndpoint()
       An HTTP endpoint destination described by an URI.
       
      .google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5;
    • getHttpEndpointBuilder

      public HttpEndpoint.Builder getHttpEndpointBuilder()
       An HTTP endpoint destination described by an URI.
       
      .google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5;
    • getHttpEndpointOrBuilder

      public HttpEndpointOrBuilder getHttpEndpointOrBuilder()
       An HTTP endpoint destination described by an URI.
       
      .google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5;
      Specified by:
      getHttpEndpointOrBuilder in interface DestinationOrBuilder
    • 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:
      hasNetworkConfig in interface DestinationOrBuilder
      Returns:
      Whether the networkConfig field is set.
    • getNetworkConfig

      public NetworkConfig 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:
      getNetworkConfig in interface DestinationOrBuilder
      Returns:
      The networkConfig.
    • setNetworkConfig

      public Destination.Builder setNetworkConfig(NetworkConfig value)
       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

      public Destination.Builder setNetworkConfig(NetworkConfig.Builder builderForValue)
       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

      public Destination.Builder mergeNetworkConfig(NetworkConfig value)
       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

      public Destination.Builder 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

      public NetworkConfig.Builder 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

      public NetworkConfigOrBuilder 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:
      getNetworkConfigOrBuilder in interface DestinationOrBuilder