public static final class Destination.Builder extends GeneratedMessageV3.Builder<Destination.Builder> implements DestinationOrBuilder
Represents a target of an invocation over HTTP.
Protobuf type google.cloud.eventarc.v1.Destination
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Destination.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Destination build()
Returns
buildPartial()
public Destination buildPartial()
Returns
clear()
public Destination.Builder clear()
Returns
Overrides
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
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;
Returns
clearDescriptor()
public Destination.Builder clearDescriptor()
Returns
clearField(Descriptors.FieldDescriptor field)
public Destination.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
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;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Destination.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public Destination.Builder clone()
Returns
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
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;
Returns
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;
Returns
getDefaultInstanceForType()
public Destination getDefaultInstanceForType()
Returns
getDescriptorCase()
public Destination.DescriptorCase getDescriptorCase()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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.
|
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;
Returns
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;
Returns
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeCloudRun(CloudRun value)
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;
Parameter
Returns
mergeFrom(Destination other)
public Destination.Builder mergeFrom(Destination other)
Parameter
Returns
public Destination.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Destination.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeGke(GKE value)
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;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Destination.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setCloudFunction(String value)
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) = { ... }
Parameter
Name | Description |
value | String
The cloudFunction to set.
|
Returns
setCloudFunctionBytes(ByteString value)
public Destination.Builder setCloudFunctionBytes(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) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for cloudFunction to set.
|
Returns
setCloudRun(CloudRun value)
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;
Parameter
Returns
setCloudRun(CloudRun.Builder builderForValue)
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;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Destination.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setGke(GKE value)
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;
Parameter
Returns
setGke(GKE.Builder builderForValue)
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;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Destination.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Destination.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides