Class Destination (1.34.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 1.34.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  Destination   extends   GeneratedMessageV3   implements   DestinationOrBuilder  
   Represents a target of an invocation over HTTP.
 Protobuf type google.cloud.eventarc.v1.Destination
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  CLOUD_FUNCTION_FIELD_NUMBER 
  
    
public   static   final   int   CLOUD_FUNCTION_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  CLOUD_RUN_FIELD_NUMBER 
  
    
public   static   final   int   CLOUD_RUN_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  GKE_FIELD_NUMBER 
  
    
public   static   final   int   GKE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  WORKFLOW_FIELD_NUMBER 
  
    
public   static   final   int   WORKFLOW_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   Destination   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   Destination . Builder   newBuilder ()  
  
  newBuilder(Destination prototype) 
  
    
public   static   Destination . Builder   newBuilder ( Destination   prototype )  
  
  
  
    
public   static   Destination   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   Destination   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   Destination   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Destination   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   Destination   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Destination   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Destination   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   Destination   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Destination   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   Destination   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   Destination   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Destination   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<Destination>   parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  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) = { ... }
    
      
        Returns  
      
        Type Description  
      
        String The cloudFunction.
 
     
  
  getCloudFunctionBytes() 
  
    
public   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) = { ... }
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for cloudFunction.
 
     
  
  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;
    
      
        Returns  
      
        Type Description  
      
        CloudRun The cloudRun.
 
     
  
  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;
getDefaultInstanceForType() 
  
    
public   Destination   getDefaultInstanceForType ()  
  
  getDescriptorCase() 
  
    
public   Destination . DescriptorCase   getDescriptorCase ()  
  
  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;
    
      
        Returns  
      
        Type Description  
      
        GKE The gke.
 
     
  
  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;
getParserForType() 
  
    
public   Parser<Destination>   getParserForType ()  
  
  Overrides 
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  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) = { ... }
    
      
        Returns  
      
        Type Description  
      
        String The workflow.
 
     
  
  getWorkflowBytes() 
  
    
public   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) = { ... }
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for workflow.
 
     
  
  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) = { ... }
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the cloudFunction field is set.
 
     
  
  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;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the cloudRun field is set.
 
     
  
  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;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the gke field is set.
 
     
  
  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) = { ... }
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the workflow field is set.
 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   Destination . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   Destination . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   Destination . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]