Send feedback
Class Subscription.Builder (1.6.3)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.6.3 keyboard_arrow_down
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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Subscription . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public Subscription build ()
Returns
buildPartial()
public Subscription buildPartial ()
Returns
clear()
public Subscription . Builder clear ()
Returns
Overrides
clearDeliveryConfig()
public Subscription . Builder clearDeliveryConfig ()
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;
Returns
clearField(Descriptors.FieldDescriptor field)
public Subscription . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public Subscription . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
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
clone()
public Subscription . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public Subscription getDefaultInstanceForType ()
Returns
getDeliveryConfig()
public Subscription . DeliveryConfig getDeliveryConfig ()
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;
Returns
getDeliveryConfigBuilder()
public Subscription . DeliveryConfig . Builder getDeliveryConfigBuilder ()
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;
Returns
getDeliveryConfigOrBuilder()
public Subscription . DeliveryConfigOrBuilder getDeliveryConfigOrBuilder ()
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getName()
The name of the subscription.
Structured like:
projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
string name = 1;
Returns
Type Description 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
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
Type Description 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
hasDeliveryConfig()
public boolean hasDeliveryConfig ()
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;
Returns
Type Description boolean Whether the deliveryConfig field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
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
Returns
mergeFrom(Subscription other)
public Subscription . Builder mergeFrom ( Subscription other )
Parameter
Returns
public Subscription . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Subscription . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Subscription . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Subscription . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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
Name Description value String
The name to set.
Returns
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
Name Description value ByteString
The bytes for name to set.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Subscription . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
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
Name Description value String
The topic to set.
Returns
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
Name Description value ByteString
The bytes for topic to set.
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Subscription . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]