Class NotificationEndpoint.Builder (0.11.0)

public static final class NotificationEndpoint.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NotificationEndpoint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NotificationEndpoint.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public NotificationEndpoint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NotificationEndpoint.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public NotificationEndpoint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NotificationEndpoint.Builder
Overrides

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NotificationEndpoint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NotificationEndpoint.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public NotificationEndpoint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NotificationEndpoint.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NotificationEndpoint.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NotificationEndpoint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NotificationEndpoint.Builder
Overrides