Class NotificationEndpoint.Builder (0.5.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NotificationEndpoint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NotificationEndpoint.Builder
Overrides

build()

public NotificationEndpoint build()
Returns
TypeDescription
NotificationEndpoint

buildPartial()

public NotificationEndpoint buildPartial()
Returns
TypeDescription
NotificationEndpoint

clear()

public NotificationEndpoint.Builder clear()
Returns
TypeDescription
NotificationEndpoint.Builder
Overrides

clearEndpoint()

public NotificationEndpoint.Builder clearEndpoint()
Returns
TypeDescription
NotificationEndpoint.Builder

clearField(Descriptors.FieldDescriptor field)

public NotificationEndpoint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NotificationEndpoint.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public NotificationEndpoint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
NotificationEndpoint.Builder

This builder for chaining.

clone()

public NotificationEndpoint.Builder clone()
Returns
TypeDescription
NotificationEndpoint.Builder
Overrides

getDefaultInstanceForType()

public NotificationEndpoint getDefaultInstanceForType()
Returns
TypeDescription
NotificationEndpoint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndpointCase()

public NotificationEndpoint.EndpointCase getEndpointCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the pubsubTopic field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NotificationEndpoint other)

public NotificationEndpoint.Builder mergeFrom(NotificationEndpoint other)
Parameter
NameDescription
otherNotificationEndpoint
Returns
TypeDescription
NotificationEndpoint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NotificationEndpoint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NotificationEndpoint.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NotificationEndpoint.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NotificationEndpoint.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NotificationEndpoint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NotificationEndpoint.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public NotificationEndpoint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The pubsubTopic to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for pubsubTopic to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NotificationEndpoint.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NotificationEndpoint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NotificationEndpoint.Builder
Overrides