Class Subscription.Builder (1.6.3)

public static final class Subscription.Builder extends GeneratedMessageV3.Builder<Subscription.Builder> implements SubscriptionOrBuilder

Metadata about a subscription resource.

Protobuf type google.cloud.pubsublite.v1.Subscription

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Subscription build()
Returns
TypeDescription
Subscription

buildPartial()

public Subscription buildPartial()
Returns
TypeDescription
Subscription

clear()

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

clearDeliveryConfig()

public Subscription.Builder clearDeliveryConfig()

The settings for this subscription's message delivery.

.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;

Returns
TypeDescription
Subscription.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Subscription.Builder clearName()

The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}

string name = 1;

Returns
TypeDescription
Subscription.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Subscription.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Subscription.Builder
Overrides

clearTopic()

public Subscription.Builder clearTopic()

The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}

string topic = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
Subscription.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Subscription getDefaultInstanceForType()
Returns
TypeDescription
Subscription

getDeliveryConfig()

public Subscription.DeliveryConfig getDeliveryConfig()

The settings for this subscription's message delivery.

.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;

Returns
TypeDescription
Subscription.DeliveryConfig

The deliveryConfig.

getDeliveryConfigBuilder()

public Subscription.DeliveryConfig.Builder getDeliveryConfigBuilder()

The settings for this subscription's message delivery.

.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;

Returns
TypeDescription
Subscription.DeliveryConfig.Builder

getDeliveryConfigOrBuilder()

public Subscription.DeliveryConfigOrBuilder getDeliveryConfigOrBuilder()

The settings for this subscription's message delivery.

.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;

Returns
TypeDescription
Subscription.DeliveryConfigOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getTopic()

public String getTopic()

The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}

string topic = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The topic.

getTopicBytes()

public ByteString getTopicBytes()

The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}

string topic = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for topic.

hasDeliveryConfig()

public boolean hasDeliveryConfig()

The settings for this subscription's message delivery.

.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;

Returns
TypeDescription
boolean

Whether the deliveryConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDeliveryConfig(Subscription.DeliveryConfig value)

public Subscription.Builder mergeDeliveryConfig(Subscription.DeliveryConfig value)

The settings for this subscription's message delivery.

.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;

Parameter
NameDescription
valueSubscription.DeliveryConfig
Returns
TypeDescription
Subscription.Builder

mergeFrom(Subscription other)

public Subscription.Builder mergeFrom(Subscription other)
Parameter
NameDescription
otherSubscription
Returns
TypeDescription
Subscription.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDeliveryConfig(Subscription.DeliveryConfig value)

public Subscription.Builder setDeliveryConfig(Subscription.DeliveryConfig value)

The settings for this subscription's message delivery.

.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;

Parameter
NameDescription
valueSubscription.DeliveryConfig
Returns
TypeDescription
Subscription.Builder

setDeliveryConfig(Subscription.DeliveryConfig.Builder builderForValue)

public Subscription.Builder setDeliveryConfig(Subscription.DeliveryConfig.Builder builderForValue)

The settings for this subscription's message delivery.

.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;

Parameter
NameDescription
builderForValueSubscription.DeliveryConfig.Builder
Returns
TypeDescription
Subscription.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Subscription.Builder setName(String value)

The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Subscription.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Subscription.Builder setNameBytes(ByteString value)

The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Subscription.Builder

This builder for chaining.

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

public Subscription.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Subscription.Builder
Overrides

setTopic(String value)

public Subscription.Builder setTopic(String value)

The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}

string topic = 2 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The topic to set.

Returns
TypeDescription
Subscription.Builder

This builder for chaining.

setTopicBytes(ByteString value)

public Subscription.Builder setTopicBytes(ByteString value)

The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}

string topic = 2 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for topic to set.

Returns
TypeDescription
Subscription.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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