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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Subscription.BuilderImplements
SubscriptionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Subscription.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Subscription.Builder |
build()
public Subscription build()
Returns | |
---|---|
Type | Description |
Subscription |
buildPartial()
public Subscription buildPartial()
Returns | |
---|---|
Type | Description |
Subscription |
clear()
public Subscription.Builder clear()
Returns | |
---|---|
Type | Description |
Subscription.Builder |
clearDeliveryConfig()
public Subscription.Builder clearDeliveryConfig()
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;
Returns | |
---|---|
Type | Description |
Subscription.Builder |
clearExportConfig()
public Subscription.Builder clearExportConfig()
If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
.google.cloud.pubsublite.v1.ExportConfig export_config = 4;
Returns | |
---|---|
Type | Description |
Subscription.Builder |
clearField(Descriptors.FieldDescriptor field)
public Subscription.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Subscription.Builder |
clearName()
public Subscription.Builder clearName()
The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
string name = 1;
Returns | |
---|---|
Type | Description |
Subscription.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Subscription.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Subscription.Builder |
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 | |
---|---|
Type | Description |
Subscription.Builder |
This builder for chaining. |
clone()
public Subscription.Builder clone()
Returns | |
---|---|
Type | Description |
Subscription.Builder |
getDefaultInstanceForType()
public Subscription getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Subscription |
getDeliveryConfig()
public Subscription.DeliveryConfig getDeliveryConfig()
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Subscription.DeliveryConfigOrBuilder |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getExportConfig()
public ExportConfig getExportConfig()
If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
.google.cloud.pubsublite.v1.ExportConfig export_config = 4;
Returns | |
---|---|
Type | Description |
ExportConfig |
The exportConfig. |
getExportConfigBuilder()
public ExportConfig.Builder getExportConfigBuilder()
If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
.google.cloud.pubsublite.v1.ExportConfig export_config = 4;
Returns | |
---|---|
Type | Description |
ExportConfig.Builder |
getExportConfigOrBuilder()
public ExportConfigOrBuilder getExportConfigOrBuilder()
If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
.google.cloud.pubsublite.v1.ExportConfig export_config = 4;
Returns | |
---|---|
Type | Description |
ExportConfigOrBuilder |
getName()
public String 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 | |
---|---|
Type | Description |
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 | |
---|---|
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean |
Whether the deliveryConfig field is set. |
hasExportConfig()
public boolean hasExportConfig()
If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
.google.cloud.pubsublite.v1.ExportConfig export_config = 4;
Returns | |
---|---|
Type | Description |
boolean |
Whether the exportConfig field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 | |
---|---|
Name | Description |
value |
Subscription.DeliveryConfig |
Returns | |
---|---|
Type | Description |
Subscription.Builder |
mergeExportConfig(ExportConfig value)
public Subscription.Builder mergeExportConfig(ExportConfig value)
If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
.google.cloud.pubsublite.v1.ExportConfig export_config = 4;
Parameter | |
---|---|
Name | Description |
value |
ExportConfig |
Returns | |
---|---|
Type | Description |
Subscription.Builder |
mergeFrom(Subscription other)
public Subscription.Builder mergeFrom(Subscription other)
Parameter | |
---|---|
Name | Description |
other |
Subscription |
Returns | |
---|---|
Type | Description |
Subscription.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Subscription.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Subscription.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Subscription.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
Subscription.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Subscription.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Subscription.Builder |
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 | |
---|---|
Name | Description |
value |
Subscription.DeliveryConfig |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue |
Subscription.DeliveryConfig.Builder |
Returns | |
---|---|
Type | Description |
Subscription.Builder |
setExportConfig(ExportConfig value)
public Subscription.Builder setExportConfig(ExportConfig value)
If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
.google.cloud.pubsublite.v1.ExportConfig export_config = 4;
Parameter | |
---|---|
Name | Description |
value |
ExportConfig |
Returns | |
---|---|
Type | Description |
Subscription.Builder |
setExportConfig(ExportConfig.Builder builderForValue)
public Subscription.Builder setExportConfig(ExportConfig.Builder builderForValue)
If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
.google.cloud.pubsublite.v1.ExportConfig export_config = 4;
Parameter | |
---|---|
Name | Description |
builderForValue |
ExportConfig.Builder |
Returns | |
---|---|
Type | Description |
Subscription.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Subscription.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Subscription.Builder |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Subscription.Builder |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for topic to set. |
Returns | |
---|---|
Type | Description |
Subscription.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Subscription.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Subscription.Builder |