Class NotificationEndpoint.Builder (0.49.0)

public static final class NotificationEndpoint.Builder extends GeneratedMessage.Builder<NotificationEndpoint.Builder> implements NotificationEndpointOrBuilder

The endpoint where the subscription delivers events.

Protobuf type google.apps.events.subscriptions.v1.NotificationEndpoint

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public NotificationEndpoint build()
Returns
Type Description
NotificationEndpoint

buildPartial()

public NotificationEndpoint buildPartial()
Returns
Type Description
NotificationEndpoint

clear()

public NotificationEndpoint.Builder clear()
Returns
Type Description
NotificationEndpoint.Builder
Overrides

clearEndpoint()

public NotificationEndpoint.Builder clearEndpoint()
Returns
Type Description
NotificationEndpoint.Builder

clearPubsubTopic()

public NotificationEndpoint.Builder clearPubsubTopic()

Immutable. The Cloud Pub/Sub topic that receives events for the subscription.

Format: projects/{project}/topics/{topic}

You must create the topic in the same Google Cloud project where you create this subscription.

When the topic receives events, the events are encoded as Cloud Pub/Sub messages. For details, see the Google Cloud Pub/Sub Protocol Binding for CloudEvents.

string pubsub_topic = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
NotificationEndpoint.Builder

This builder for chaining.

getDefaultInstanceForType()

public NotificationEndpoint getDefaultInstanceForType()
Returns
Type Description
NotificationEndpoint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEndpointCase()

public NotificationEndpoint.EndpointCase getEndpointCase()
Returns
Type Description
NotificationEndpoint.EndpointCase

getPubsubTopic()

public String getPubsubTopic()

Immutable. The Cloud Pub/Sub topic that receives events for the subscription.

Format: projects/{project}/topics/{topic}

You must create the topic in the same Google Cloud project where you create this subscription.

When the topic receives events, the events are encoded as Cloud Pub/Sub messages. For details, see the Google Cloud Pub/Sub Protocol Binding for CloudEvents.

string pubsub_topic = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The pubsubTopic.

getPubsubTopicBytes()

public ByteString getPubsubTopicBytes()

Immutable. The Cloud Pub/Sub topic that receives events for the subscription.

Format: projects/{project}/topics/{topic}

You must create the topic in the same Google Cloud project where you create this subscription.

When the topic receives events, the events are encoded as Cloud Pub/Sub messages. For details, see the Google Cloud Pub/Sub Protocol Binding for CloudEvents.

string pubsub_topic = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for pubsubTopic.

hasPubsubTopic()

public boolean hasPubsubTopic()

Immutable. The Cloud Pub/Sub topic that receives events for the subscription.

Format: projects/{project}/topics/{topic}

You must create the topic in the same Google Cloud project where you create this subscription.

When the topic receives events, the events are encoded as Cloud Pub/Sub messages. For details, see the Google Cloud Pub/Sub Protocol Binding for CloudEvents.

string pubsub_topic = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the pubsubTopic field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NotificationEndpoint other)

public NotificationEndpoint.Builder mergeFrom(NotificationEndpoint other)
Parameter
Name Description
other NotificationEndpoint
Returns
Type Description
NotificationEndpoint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NotificationEndpoint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NotificationEndpoint.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public NotificationEndpoint.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
NotificationEndpoint.Builder
Overrides

setPubsubTopic(String value)

public NotificationEndpoint.Builder setPubsubTopic(String value)

Immutable. The Cloud Pub/Sub topic that receives events for the subscription.

Format: projects/{project}/topics/{topic}

You must create the topic in the same Google Cloud project where you create this subscription.

When the topic receives events, the events are encoded as Cloud Pub/Sub messages. For details, see the Google Cloud Pub/Sub Protocol Binding for CloudEvents.

string pubsub_topic = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The pubsubTopic to set.

Returns
Type Description
NotificationEndpoint.Builder

This builder for chaining.

setPubsubTopicBytes(ByteString value)

public NotificationEndpoint.Builder setPubsubTopicBytes(ByteString value)

Immutable. The Cloud Pub/Sub topic that receives events for the subscription.

Format: projects/{project}/topics/{topic}

You must create the topic in the same Google Cloud project where you create this subscription.

When the topic receives events, the events are encoded as Cloud Pub/Sub messages. For details, see the Google Cloud Pub/Sub Protocol Binding for CloudEvents.

string pubsub_topic = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for pubsubTopic to set.

Returns
Type Description
NotificationEndpoint.Builder

This builder for chaining.