Class Destination (1.6.0)

public final class Destination extends GeneratedMessageV3 implements DestinationOrBuilder

Represents a target of an invocation over HTTP.

Protobuf type google.cloud.eventarc.v1.Destination

Static Fields

CLOUD_FUNCTION_FIELD_NUMBER

public static final int CLOUD_FUNCTION_FIELD_NUMBER
Field Value
TypeDescription
int

CLOUD_RUN_FIELD_NUMBER

public static final int CLOUD_RUN_FIELD_NUMBER
Field Value
TypeDescription
int

GKE_FIELD_NUMBER

public static final int GKE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Destination getDefaultInstance()
Returns
TypeDescription
Destination

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Destination.Builder newBuilder()
Returns
TypeDescription
Destination.Builder

newBuilder(Destination prototype)

public static Destination.Builder newBuilder(Destination prototype)
Parameter
NameDescription
prototypeDestination
Returns
TypeDescription
Destination.Builder

parseDelimitedFrom(InputStream input)

public static Destination parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Destination
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Destination parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Destination
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Destination parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Destination
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Destination parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Destination
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Destination parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Destination
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Destination parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Destination
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Destination parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Destination
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Destination parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Destination
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Destination parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Destination
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Destination parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Destination
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Destination parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Destination
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Destination parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Destination
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Destination> parser()
Returns
TypeDescription
Parser<Destination>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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
TypeDescription
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
TypeDescription
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
TypeDescription
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;

Returns
TypeDescription
CloudRunOrBuilder

getDefaultInstanceForType()

public Destination getDefaultInstanceForType()
Returns
TypeDescription
Destination

getDescriptorCase()

public Destination.DescriptorCase getDescriptorCase()
Returns
TypeDescription
Destination.DescriptorCase

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;

Returns
TypeDescription
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;

Returns
TypeDescription
GKEOrBuilder

getParserForType()

public Parser<Destination> getParserForType()
Returns
TypeDescription
Parser<Destination>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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
TypeDescription
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
TypeDescription
boolean

Whether the cloudRun field is set.

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;

Returns
TypeDescription
boolean

Whether the gke field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Destination.Builder newBuilderForType()
Returns
TypeDescription
Destination.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Destination.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Destination.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Destination.Builder toBuilder()
Returns
TypeDescription
Destination.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException