Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* The name of the topic from which this snapshot is retaining messages.
*
*
* string topic = 2;
*/
public com.google.protobuf.ByteString
getTopicBytes() {
java.lang.Object ref = topic_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
topic_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXPIRE_TIME_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp expireTime_;
/**
*
* 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.
*
* 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.
*
* 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() {
return getExpireTime();
}
public static final int LABELS_FIELD_NUMBER = 4;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
* User labels.
*
*
* map<string, string> labels = 4;
*/
public boolean containsLabels(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetLabels().getMap().containsKey(key);
}
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
* 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.
*
* 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.
*
* 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 Builder setExpireTime(com.google.protobuf.Timestamp value) {
if (expireTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expireTime_ = value;
onChanged();
} else {
expireTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*