public interface TopicOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(String key)
See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
|
Map<String,String> |
getLabelsMap()
See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
|
String |
getLabelsOrThrow(String key)
See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
|
MessageStoragePolicy |
getMessageStoragePolicy()
Policy constraining how messages published to the topic may be stored.
|
MessageStoragePolicyOrBuilder |
getMessageStoragePolicyOrBuilder()
Policy constraining how messages published to the topic may be stored.
|
String |
getName()
The name of the topic.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of the topic.
|
boolean |
hasMessageStoragePolicy()
Policy constraining how messages published to the topic may be stored.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getName()
The name of the topic. It must have the format
`"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
signs (`%`). It must be between 3 and 255 characters in length, and it
must not start with `"goog"`.
string name = 1;com.google.protobuf.ByteString getNameBytes()
The name of the topic. It must have the format
`"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
signs (`%`). It must be between 3 and 255 characters in length, and it
must not start with `"goog"`.
string name = 1;int getLabelsCount()
See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
map<string, string> labels = 2;boolean containsLabels(String key)
See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
map<string, string> labels = 2;@Deprecated Map<String,String> getLabels()
getLabelsMap() instead.Map<String,String> getLabelsMap()
See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
map<string, string> labels = 2;String getLabelsOrDefault(String key, String defaultValue)
See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
map<string, string> labels = 2;String getLabelsOrThrow(String key)
See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
map<string, string> labels = 2;boolean hasMessageStoragePolicy()
Policy constraining how messages published to the topic may be stored. It is determined when the topic is created based on the policy configured at the project level. It must not be set by the caller in the request to CreateTopic or to UpdateTopic. This field will be populated in the responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the response, then no constraints are in effect.
.google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3;MessageStoragePolicy getMessageStoragePolicy()
Policy constraining how messages published to the topic may be stored. It is determined when the topic is created based on the policy configured at the project level. It must not be set by the caller in the request to CreateTopic or to UpdateTopic. This field will be populated in the responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the response, then no constraints are in effect.
.google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3;MessageStoragePolicyOrBuilder getMessageStoragePolicyOrBuilder()
Policy constraining how messages published to the topic may be stored. It is determined when the topic is created based on the policy configured at the project level. It must not be set by the caller in the request to CreateTopic or to UpdateTopic. This field will be populated in the responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the response, then no constraints are in effect.
.google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3;Copyright © 2018 Google LLC. All rights reserved.