All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.pubsub.v1.SnapshotOrBuilder Maven / Gradle / Ivy

There is a newer version: 1.114.2
Show newest version
/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/pubsub/v1/pubsub.proto

package com.google.pubsub.v1;

public interface SnapshotOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.pubsub.v1.Snapshot)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * 
   * The name of the snapshot.
   * 
* * string name = 1; * * @return The name. */ java.lang.String getName(); /** * * *
   * The name of the snapshot.
   * 
* * string name = 1; * * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * * *
   * The name of the topic from which this snapshot is retaining messages.
   * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } * * @return The topic. */ java.lang.String getTopic(); /** * * *
   * The name of the topic from which this snapshot is retaining messages.
   * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } * * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** * * *
   * 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 service will refuse to create a
   * snapshot that would expire in less than 1 hour after creation.
   * 
* * .google.protobuf.Timestamp expire_time = 3; * * @return Whether the expireTime field is set. */ 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. The service will refuse to create a
   * snapshot that would expire in less than 1 hour after creation.
   * 
* * .google.protobuf.Timestamp expire_time = 3; * * @return The expireTime. */ 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. The service will refuse to create a
   * snapshot that would expire in less than 1 hour after creation.
   * 
* * .google.protobuf.Timestamp expire_time = 3; */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** * * *
   * See [Creating and managing labels]
   * (https://cloud.google.com/pubsub/docs/labels).
   * 
* * map<string, string> labels = 4; */ int getLabelsCount(); /** * * *
   * See [Creating and managing labels]
   * (https://cloud.google.com/pubsub/docs/labels).
   * 
* * map<string, string> labels = 4; */ boolean containsLabels(java.lang.String key); /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** * * *
   * See [Creating and managing labels]
   * (https://cloud.google.com/pubsub/docs/labels).
   * 
* * map<string, string> labels = 4; */ java.util.Map getLabelsMap(); /** * * *
   * See [Creating and managing labels]
   * (https://cloud.google.com/pubsub/docs/labels).
   * 
* * map<string, string> labels = 4; */ java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); /** * * *
   * See [Creating and managing labels]
   * (https://cloud.google.com/pubsub/docs/labels).
   * 
* * map<string, string> labels = 4; */ java.lang.String getLabelsOrThrow(java.lang.String key); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy