Class Subscription.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>
-
- com.google.cloud.pubsublite.proto.Subscription.Builder
-
- All Implemented Interfaces:
SubscriptionOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Subscription
public static final class Subscription.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder> implements SubscriptionOrBuilder
Metadata about a subscription resource.
Protobuf typegoogle.cloud.pubsublite.v1.Subscription
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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(Subscription other)
Subscription.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Subscription.Builder
mergeFrom(com.google.protobuf.Message other)
Subscription.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Subscription.Builder
setDeliveryConfig(Subscription.DeliveryConfig value)
The settings for this subscription's message delivery.Subscription.Builder
setDeliveryConfig(Subscription.DeliveryConfig.Builder builderForValue)
The settings for this subscription's message delivery.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
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
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)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>
-
clear
public Subscription.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>
-
getDefaultInstanceForType
public Subscription getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Subscription build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Subscription buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Subscription.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>
-
setField
public Subscription.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>
-
clearField
public Subscription.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>
-
clearOneof
public Subscription.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>
-
setRepeatedField
public Subscription.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>
-
addRepeatedField
public Subscription.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>
-
mergeFrom
public Subscription.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Subscription.Builder>
-
mergeFrom
public Subscription.Builder mergeFrom(Subscription other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>
-
mergeFrom
public Subscription.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Subscription.Builder>
- Throws:
IOException
-
getName
public String getName()
The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
string name = 1;
- Specified by:
getName
in interfaceSubscriptionOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
string name = 1;
- Specified by:
getNameBytes
in interfaceSubscriptionOrBuilder
- Returns:
- The bytes for name.
-
setName
public Subscription.Builder setName(String value)
The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Subscription.Builder clearName()
The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
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;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
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) = { ... }
- Specified by:
getTopic
in interfaceSubscriptionOrBuilder
- Returns:
- The topic.
-
getTopicBytes
public 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) = { ... }
- Specified by:
getTopicBytes
in interfaceSubscriptionOrBuilder
- Returns:
- The bytes for topic.
-
setTopic
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) = { ... }
- Parameters:
value
- The topic to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setTopicBytes
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) = { ... }
- Parameters:
value
- The bytes for topic to set.- Returns:
- This builder for chaining.
-
hasDeliveryConfig
public boolean hasDeliveryConfig()
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;
- Specified by:
hasDeliveryConfig
in interfaceSubscriptionOrBuilder
- Returns:
- Whether the deliveryConfig field is set.
-
getDeliveryConfig
public Subscription.DeliveryConfig getDeliveryConfig()
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;
- Specified by:
getDeliveryConfig
in interfaceSubscriptionOrBuilder
- Returns:
- The deliveryConfig.
-
setDeliveryConfig
public Subscription.Builder setDeliveryConfig(Subscription.DeliveryConfig value)
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;
-
setDeliveryConfig
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;
-
mergeDeliveryConfig
public Subscription.Builder mergeDeliveryConfig(Subscription.DeliveryConfig value)
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;
-
clearDeliveryConfig
public Subscription.Builder clearDeliveryConfig()
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;
-
getDeliveryConfigBuilder
public Subscription.DeliveryConfig.Builder getDeliveryConfigBuilder()
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;
-
getDeliveryConfigOrBuilder
public Subscription.DeliveryConfigOrBuilder getDeliveryConfigOrBuilder()
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;
- Specified by:
getDeliveryConfigOrBuilder
in interfaceSubscriptionOrBuilder
-
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;
- Specified by:
hasExportConfig
in interfaceSubscriptionOrBuilder
- Returns:
- Whether the exportConfig field is set.
-
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;
- Specified by:
getExportConfig
in interfaceSubscriptionOrBuilder
- Returns:
- The exportConfig.
-
setExportConfig
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;
-
setExportConfig
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;
-
mergeExportConfig
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;
-
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;
-
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;
-
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;
- Specified by:
getExportConfigOrBuilder
in interfaceSubscriptionOrBuilder
-
setUnknownFields
public final Subscription.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>
-
mergeUnknownFields
public final Subscription.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>
-
-