public static final class Snapshot.Builder extends GeneratedMessageV3.Builder<Snapshot.Builder> implements SnapshotOrBuilder
A snapshot resource.Protobuf type
google.pubsub.v1.Snapshot
Modifier and Type | Method and Description |
---|---|
Snapshot.Builder |
addRepeatedField(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(Descriptors.FieldDescriptor field) |
Snapshot.Builder |
clearLabels() |
Snapshot.Builder |
clearName()
The name of the snapshot.
|
Snapshot.Builder |
clearOneof(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 Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Timestamp |
getExpireTime()
The snapshot is guaranteed to exist up until this time.
|
Timestamp.Builder |
getExpireTimeBuilder()
The snapshot is guaranteed to exist up until this time.
|
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.
|
ByteString |
getNameBytes()
The name of the snapshot.
|
java.lang.String |
getTopic()
The name of the topic from which this snapshot is retaining messages.
|
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 GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
protected MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Snapshot.Builder |
mergeExpireTime(Timestamp value)
The snapshot is guaranteed to exist up until this time.
|
Snapshot.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Snapshot.Builder |
mergeFrom(Message other) |
Snapshot.Builder |
mergeFrom(Snapshot other) |
Snapshot.Builder |
mergeUnknownFields(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(Timestamp.Builder builderForValue)
The snapshot is guaranteed to exist up until this time.
|
Snapshot.Builder |
setExpireTime(Timestamp value)
The snapshot is guaranteed to exist up until this time.
|
Snapshot.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Snapshot.Builder |
setName(java.lang.String value)
The name of the snapshot.
|
Snapshot.Builder |
setNameBytes(ByteString value)
The name of the snapshot.
|
Snapshot.Builder |
setRepeatedField(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(ByteString value)
The name of the topic from which this snapshot is retaining messages.
|
Snapshot.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3.Builder<Snapshot.Builder>
protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class GeneratedMessageV3.Builder<Snapshot.Builder>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Snapshot.Builder>
public Snapshot.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Snapshot.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Snapshot.Builder>
public Snapshot getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Snapshot build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Snapshot buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Snapshot.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Snapshot.Builder>
public Snapshot.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Snapshot.Builder>
public Snapshot.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Snapshot.Builder>
public Snapshot.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Snapshot.Builder>
public Snapshot.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Snapshot.Builder>
public Snapshot.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Snapshot.Builder>
public Snapshot.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Snapshot.Builder>
public Snapshot.Builder mergeFrom(Snapshot other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Snapshot.Builder>
public Snapshot.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Snapshot.Builder>
java.io.IOException
public java.lang.String getName()
The name of the snapshot.
string name = 1;
getName
in interface SnapshotOrBuilder
public ByteString getNameBytes()
The name of the snapshot.
string name = 1;
getNameBytes
in interface SnapshotOrBuilder
public 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(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 SnapshotOrBuilder
public ByteString getTopicBytes()
The name of the topic from which this snapshot is retaining messages.
string topic = 2;
getTopicBytes
in interface SnapshotOrBuilder
public 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(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 SnapshotOrBuilder
public 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 SnapshotOrBuilder
public Snapshot.Builder setExpireTime(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(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(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 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 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 SnapshotOrBuilder
public int getLabelsCount()
SnapshotOrBuilder
User labels.
map<string, string> labels = 4;
getLabelsCount
in interface SnapshotOrBuilder
public 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 SnapshotOrBuilder
public java.util.Map<java.lang.String,java.lang.String> getLabelsMap()
User labels.
map<string, string> labels = 4;
getLabelsMap
in interface SnapshotOrBuilder
public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue)
User labels.
map<string, string> labels = 4;
getLabelsOrDefault
in interface SnapshotOrBuilder
public java.lang.String getLabelsOrThrow(java.lang.String key)
User labels.
map<string, string> labels = 4;
getLabelsOrThrow
in interface SnapshotOrBuilder
public 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(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Snapshot.Builder>
public final Snapshot.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Snapshot.Builder>