public static final class Snapshot.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder> implements SnapshotOrBuilder
A snapshot resource.Protobuf type
google.pubsub.v1.Snapshot| Modifier and Type | Method and Description |
|---|---|
Snapshot.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Snapshot |
build() |
Snapshot |
buildPartial() |
Snapshot.Builder |
clear() |
Snapshot.Builder |
clearExpireTime()
The snapshot is guaranteed to exist up until this time.
|
Snapshot.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Snapshot.Builder |
clearLabels() |
Snapshot.Builder |
clearName()
The name of the snapshot.
|
Snapshot.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Snapshot.Builder |
clearTopic()
The name of the topic from which this snapshot is retaining messages.
|
Snapshot.Builder |
clone() |
boolean |
containsLabels(java.lang.String key)
User labels.
|
Snapshot |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.Timestamp |
getExpireTime()
The snapshot is guaranteed to exist up until this time.
|
com.google.protobuf.Timestamp.Builder |
getExpireTimeBuilder()
The snapshot is guaranteed to exist up until this time.
|
com.google.protobuf.TimestampOrBuilder |
getExpireTimeOrBuilder()
The snapshot is guaranteed to exist up until this time.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
User labels.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabelsMap()
User labels.
|
java.lang.String |
getLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
User labels.
|
java.lang.String |
getLabelsOrThrow(java.lang.String key)
User labels.
|
java.util.Map<java.lang.String,java.lang.String> |
getMutableLabels()
Deprecated.
|
java.lang.String |
getName()
The name of the snapshot.
|
SnapshotName |
getNameAsSnapshotName() |
com.google.protobuf.ByteString |
getNameBytes()
The name of the snapshot.
|
java.lang.String |
getTopic()
The name of the topic from which this snapshot is retaining messages.
|
TopicName |
getTopicAsTopicName() |
com.google.protobuf.ByteString |
getTopicBytes()
The name of the topic from which this snapshot is retaining messages.
|
boolean |
hasExpireTime()
The snapshot is guaranteed to exist up until this time.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Snapshot.Builder |
mergeExpireTime(com.google.protobuf.Timestamp value)
The snapshot is guaranteed to exist up until this time.
|
Snapshot.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Snapshot.Builder |
mergeFrom(com.google.protobuf.Message other) |
Snapshot.Builder |
mergeFrom(Snapshot other) |
Snapshot.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Snapshot.Builder |
putAllLabels(java.util.Map<java.lang.String,java.lang.String> values)
User labels.
|
Snapshot.Builder |
putLabels(java.lang.String key,
java.lang.String value)
User labels.
|
Snapshot.Builder |
removeLabels(java.lang.String key)
User labels.
|
Snapshot.Builder |
setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)
The snapshot is guaranteed to exist up until this time.
|
Snapshot.Builder |
setExpireTime(com.google.protobuf.Timestamp value)
The snapshot is guaranteed to exist up until this time.
|
Snapshot.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Snapshot.Builder |
setName(java.lang.String value)
The name of the snapshot.
|
Snapshot.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The name of the snapshot.
|
Snapshot.Builder |
setNameWithSnapshotName(SnapshotName value) |
Snapshot.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Snapshot.Builder |
setTopic(java.lang.String value)
The name of the topic from which this snapshot is retaining messages.
|
Snapshot.Builder |
setTopicBytes(com.google.protobuf.ByteString value)
The name of the topic from which this snapshot is retaining messages.
|
Snapshot.Builder |
setTopicWithTopicName(TopicName value) |
Snapshot.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.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<Snapshot.Builder>public Snapshot getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Snapshot build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Snapshot buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Snapshot.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Snapshot.Builder>public Snapshot.Builder mergeFrom(Snapshot other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Snapshot.Builder>java.io.IOExceptionpublic java.lang.String getName()
The name of the snapshot.
string name = 1;getName in interface SnapshotOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The name of the snapshot.
string name = 1;getNameBytes in interface SnapshotOrBuilderpublic Snapshot.Builder setName(java.lang.String value)
The name of the snapshot.
string name = 1;public Snapshot.Builder clearName()
The name of the snapshot.
string name = 1;public Snapshot.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of the snapshot.
string name = 1;public java.lang.String getTopic()
The name of the topic from which this snapshot is retaining messages.
string topic = 2;getTopic in interface SnapshotOrBuilderpublic com.google.protobuf.ByteString getTopicBytes()
The name of the topic from which this snapshot is retaining messages.
string topic = 2;getTopicBytes in interface SnapshotOrBuilderpublic Snapshot.Builder setTopic(java.lang.String value)
The name of the topic from which this snapshot is retaining messages.
string topic = 2;public Snapshot.Builder clearTopic()
The name of the topic from which this snapshot is retaining messages.
string topic = 2;public Snapshot.Builder setTopicBytes(com.google.protobuf.ByteString value)
The name of the topic from which this snapshot is retaining messages.
string topic = 2;public boolean hasExpireTime()
The snapshot is guaranteed to exist up until this time. A newly-created snapshot expires no later than 7 days from the time of its creation. Its exact lifetime is determined at creation by the existing backlog in the source subscription. Specifically, the lifetime of the snapshot is `7 days - (age of oldest unacked message in the subscription)`. For example, consider a subscription whose oldest unacked message is 3 days old. If a snapshot is created from this subscription, the snapshot -- which will always capture this 3-day-old backlog as long as the snapshot exists -- will expire in 4 days.
.google.protobuf.Timestamp expire_time = 3;hasExpireTime in interface SnapshotOrBuilderpublic com.google.protobuf.Timestamp getExpireTime()
The snapshot is guaranteed to exist up until this time. A newly-created snapshot expires no later than 7 days from the time of its creation. Its exact lifetime is determined at creation by the existing backlog in the source subscription. Specifically, the lifetime of the snapshot is `7 days - (age of oldest unacked message in the subscription)`. For example, consider a subscription whose oldest unacked message is 3 days old. If a snapshot is created from this subscription, the snapshot -- which will always capture this 3-day-old backlog as long as the snapshot exists -- will expire in 4 days.
.google.protobuf.Timestamp expire_time = 3;getExpireTime in interface SnapshotOrBuilderpublic Snapshot.Builder setExpireTime(com.google.protobuf.Timestamp value)
The snapshot is guaranteed to exist up until this time. A newly-created snapshot expires no later than 7 days from the time of its creation. Its exact lifetime is determined at creation by the existing backlog in the source subscription. Specifically, the lifetime of the snapshot is `7 days - (age of oldest unacked message in the subscription)`. For example, consider a subscription whose oldest unacked message is 3 days old. If a snapshot is created from this subscription, the snapshot -- which will always capture this 3-day-old backlog as long as the snapshot exists -- will expire in 4 days.
.google.protobuf.Timestamp expire_time = 3;public Snapshot.Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)
The snapshot is guaranteed to exist up until this time. A newly-created snapshot expires no later than 7 days from the time of its creation. Its exact lifetime is determined at creation by the existing backlog in the source subscription. Specifically, the lifetime of the snapshot is `7 days - (age of oldest unacked message in the subscription)`. For example, consider a subscription whose oldest unacked message is 3 days old. If a snapshot is created from this subscription, the snapshot -- which will always capture this 3-day-old backlog as long as the snapshot exists -- will expire in 4 days.
.google.protobuf.Timestamp expire_time = 3;public Snapshot.Builder mergeExpireTime(com.google.protobuf.Timestamp value)
The snapshot is guaranteed to exist up until this time. A newly-created snapshot expires no later than 7 days from the time of its creation. Its exact lifetime is determined at creation by the existing backlog in the source subscription. Specifically, the lifetime of the snapshot is `7 days - (age of oldest unacked message in the subscription)`. For example, consider a subscription whose oldest unacked message is 3 days old. If a snapshot is created from this subscription, the snapshot -- which will always capture this 3-day-old backlog as long as the snapshot exists -- will expire in 4 days.
.google.protobuf.Timestamp expire_time = 3;public Snapshot.Builder clearExpireTime()
The snapshot is guaranteed to exist up until this time. A newly-created snapshot expires no later than 7 days from the time of its creation. Its exact lifetime is determined at creation by the existing backlog in the source subscription. Specifically, the lifetime of the snapshot is `7 days - (age of oldest unacked message in the subscription)`. For example, consider a subscription whose oldest unacked message is 3 days old. If a snapshot is created from this subscription, the snapshot -- which will always capture this 3-day-old backlog as long as the snapshot exists -- will expire in 4 days.
.google.protobuf.Timestamp expire_time = 3;public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder()
The snapshot is guaranteed to exist up until this time. A newly-created snapshot expires no later than 7 days from the time of its creation. Its exact lifetime is determined at creation by the existing backlog in the source subscription. Specifically, the lifetime of the snapshot is `7 days - (age of oldest unacked message in the subscription)`. For example, consider a subscription whose oldest unacked message is 3 days old. If a snapshot is created from this subscription, the snapshot -- which will always capture this 3-day-old backlog as long as the snapshot exists -- will expire in 4 days.
.google.protobuf.Timestamp expire_time = 3;public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
The snapshot is guaranteed to exist up until this time. A newly-created snapshot expires no later than 7 days from the time of its creation. Its exact lifetime is determined at creation by the existing backlog in the source subscription. Specifically, the lifetime of the snapshot is `7 days - (age of oldest unacked message in the subscription)`. For example, consider a subscription whose oldest unacked message is 3 days old. If a snapshot is created from this subscription, the snapshot -- which will always capture this 3-day-old backlog as long as the snapshot exists -- will expire in 4 days.
.google.protobuf.Timestamp expire_time = 3;getExpireTimeOrBuilder in interface SnapshotOrBuilderpublic int getLabelsCount()
SnapshotOrBuilderUser labels.
map<string, string> labels = 4;getLabelsCount in interface SnapshotOrBuilderpublic boolean containsLabels(java.lang.String key)
User labels.
map<string, string> labels = 4;containsLabels in interface SnapshotOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.String> getLabels()
getLabelsMap() instead.getLabels in interface SnapshotOrBuilderpublic java.util.Map<java.lang.String,java.lang.String> getLabelsMap()
User labels.
map<string, string> labels = 4;getLabelsMap in interface SnapshotOrBuilderpublic java.lang.String getLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
User labels.
map<string, string> labels = 4;getLabelsOrDefault in interface SnapshotOrBuilderpublic java.lang.String getLabelsOrThrow(java.lang.String key)
User labels.
map<string, string> labels = 4;getLabelsOrThrow in interface SnapshotOrBuilderpublic Snapshot.Builder clearLabels()
public Snapshot.Builder removeLabels(java.lang.String key)
User labels.
map<string, string> labels = 4;@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableLabels()
public Snapshot.Builder putLabels(java.lang.String key, java.lang.String value)
User labels.
map<string, string> labels = 4;public Snapshot.Builder putAllLabels(java.util.Map<java.lang.String,java.lang.String> values)
User labels.
map<string, string> labels = 4;public final Snapshot.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public final Snapshot.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public final Snapshot.Builder setNameWithSnapshotName(SnapshotName value)
public final SnapshotName getNameAsSnapshotName()
public final Snapshot.Builder setTopicWithTopicName(TopicName value)
public final TopicName getTopicAsTopicName()