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 |
|
HTTP_ENDPOINT_FIELD_NUMBER
public static final int HTTP_ENDPOINT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NETWORK_CONFIG_FIELD_NUMBER
public static final int NETWORK_CONFIG_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 |
data |
byte[]
|
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 |
obj |
Object
|
Overrides
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) = { ... }
Returns |
Type |
Description |
String |
The cloudFunction.
|
getCloudFunctionBytes()
public 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) = { ... }
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;
getHttpEndpoint()
public HttpEndpoint getHttpEndpoint()
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;
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];
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];
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. 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 |
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.
|
hasHttpEndpoint()
public boolean hasHttpEndpoint()
An HTTP endpoint destination described by an URI.
.google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5;
Returns |
Type |
Description |
boolean |
Whether the httpEndpoint field is set.
|
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];
Returns |
Type |
Description |
boolean |
Whether the networkConfig 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