public static final class Subscription.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder> implements SubscriptionOrBuilder
Metadata about a subscription resource.Protobuf type
google.cloud.pubsublite.v1.Subscription| Modifier and Type | Method and Description |
|---|---|
Subscription.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Subscription |
build() |
Subscription |
buildPartial() |
Subscription.Builder |
clear() |
Subscription.Builder |
clearDeliveryConfig()
The settings for this subscription's message delivery.
|
Subscription.Builder |
clearExportConfig()
If present, messages are automatically written from the Pub/Sub Lite topic
associated with this subscription to a destination.
|
Subscription.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Subscription.Builder |
clearName()
The name of the subscription.
|
Subscription.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Subscription.Builder |
clearTopic()
The name of the topic this subscription is attached to.
|
Subscription.Builder |
clone() |
Subscription |
getDefaultInstanceForType() |
Subscription.DeliveryConfig |
getDeliveryConfig()
The settings for this subscription's message delivery.
|
Subscription.DeliveryConfig.Builder |
getDeliveryConfigBuilder()
The settings for this subscription's message delivery.
|
Subscription.DeliveryConfigOrBuilder |
getDeliveryConfigOrBuilder()
The settings for this subscription's message delivery.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
ExportConfig |
getExportConfig()
If present, messages are automatically written from the Pub/Sub Lite topic
associated with this subscription to a destination.
|
ExportConfig.Builder |
getExportConfigBuilder()
If present, messages are automatically written from the Pub/Sub Lite topic
associated with this subscription to a destination.
|
ExportConfigOrBuilder |
getExportConfigOrBuilder()
If present, messages are automatically written from the Pub/Sub Lite topic
associated with this subscription to a destination.
|
String |
getName()
The name of the subscription.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of the subscription.
|
String |
getTopic()
The name of the topic this subscription is attached to.
|
com.google.protobuf.ByteString |
getTopicBytes()
The name of the topic this subscription is attached to.
|
boolean |
hasDeliveryConfig()
The settings for this subscription's message delivery.
|
boolean |
hasExportConfig()
If present, messages are automatically written from the Pub/Sub Lite topic
associated with this subscription to a destination.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Subscription.Builder |
mergeDeliveryConfig(Subscription.DeliveryConfig value)
The settings for this subscription's message delivery.
|
Subscription.Builder |
mergeExportConfig(ExportConfig value)
If present, messages are automatically written from the Pub/Sub Lite topic
associated with this subscription to a destination.
|
Subscription.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Subscription.Builder |
mergeFrom(com.google.protobuf.Message other) |
Subscription.Builder |
mergeFrom(Subscription other) |
Subscription.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Subscription.Builder |
setDeliveryConfig(Subscription.DeliveryConfig.Builder builderForValue)
The settings for this subscription's message delivery.
|
Subscription.Builder |
setDeliveryConfig(Subscription.DeliveryConfig value)
The settings for this subscription's message delivery.
|
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.
|
Subscription.Builder |
setExportConfig(ExportConfig value)
If present, messages are automatically written from the Pub/Sub Lite topic
associated with this subscription to a destination.
|
Subscription.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Subscription.Builder |
setName(String value)
The name of the subscription.
|
Subscription.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The name of the subscription.
|
Subscription.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Subscription.Builder |
setTopic(String value)
The name of the topic this subscription is attached to.
|
Subscription.Builder |
setTopicBytes(com.google.protobuf.ByteString value)
The name of the topic this subscription is attached to.
|
Subscription.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>public Subscription.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>public Subscription getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Subscription build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Subscription buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Subscription.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>public Subscription.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>public Subscription.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>public Subscription.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>public Subscription.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>public Subscription.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>public Subscription.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Subscription.Builder>public Subscription.Builder mergeFrom(Subscription other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>public Subscription.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Subscription.Builder>IOExceptionpublic String getName()
The name of the subscription.
Structured like:
projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
string name = 1;getName in interface SubscriptionOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The name of the subscription.
Structured like:
projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
string name = 1;getNameBytes in interface SubscriptionOrBuilderpublic Subscription.Builder setName(String value)
The name of the subscription.
Structured like:
projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
string name = 1;value - The name to set.public Subscription.Builder clearName()
The name of the subscription.
Structured like:
projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
string name = 1;public Subscription.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of the subscription.
Structured like:
projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
string name = 1;value - The bytes for name to set.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) = { ... }getTopic in interface SubscriptionOrBuilderpublic com.google.protobuf.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) = { ... }getTopicBytes in interface SubscriptionOrBuilderpublic 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) = { ... }value - The topic to set.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) = { ... }public Subscription.Builder setTopicBytes(com.google.protobuf.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) = { ... }value - The bytes for topic to set.public boolean hasDeliveryConfig()
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;hasDeliveryConfig in interface SubscriptionOrBuilderpublic Subscription.DeliveryConfig getDeliveryConfig()
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;getDeliveryConfig in interface SubscriptionOrBuilderpublic Subscription.Builder setDeliveryConfig(Subscription.DeliveryConfig value)
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;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;public Subscription.Builder mergeDeliveryConfig(Subscription.DeliveryConfig value)
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;public Subscription.Builder clearDeliveryConfig()
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;public Subscription.DeliveryConfig.Builder getDeliveryConfigBuilder()
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;public Subscription.DeliveryConfigOrBuilder getDeliveryConfigOrBuilder()
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;getDeliveryConfigOrBuilder in interface SubscriptionOrBuilderpublic 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;hasExportConfig in interface SubscriptionOrBuilderpublic 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;getExportConfig in interface SubscriptionOrBuilderpublic 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;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;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;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;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;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;getExportConfigOrBuilder in interface SubscriptionOrBuilderpublic final Subscription.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>public final Subscription.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>Copyright © 2023 Google LLC. All rights reserved.