public static final class CreateSnapshotRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CreateSnapshotRequest.Builder> implements CreateSnapshotRequestOrBuilder
Request for the `CreateSnapshot` method.<br><br> <b>ALPHA:</b> This feature is part of an alpha release. This API might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.Protobuf type
google.pubsub.v1.CreateSnapshotRequest| Modifier and Type | Method and Description |
|---|---|
CreateSnapshotRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CreateSnapshotRequest |
build() |
CreateSnapshotRequest |
buildPartial() |
CreateSnapshotRequest.Builder |
clear() |
CreateSnapshotRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CreateSnapshotRequest.Builder |
clearLabels() |
CreateSnapshotRequest.Builder |
clearName()
Optional user-provided name for this snapshot.
|
CreateSnapshotRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
CreateSnapshotRequest.Builder |
clearSubscription()
The subscription whose backlog the snapshot retains.
|
CreateSnapshotRequest.Builder |
clone() |
boolean |
containsLabels(String key)
User labels.
|
CreateSnapshotRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
User labels.
|
Map<String,String> |
getLabelsMap()
User labels.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
User labels.
|
String |
getLabelsOrThrow(String key)
User labels.
|
Map<String,String> |
getMutableLabels()
Deprecated.
|
String |
getName()
Optional user-provided name for this snapshot.
|
com.google.protobuf.ByteString |
getNameBytes()
Optional user-provided name for this snapshot.
|
String |
getSubscription()
The subscription whose backlog the snapshot retains.
|
com.google.protobuf.ByteString |
getSubscriptionBytes()
The subscription whose backlog the snapshot retains.
|
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() |
CreateSnapshotRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CreateSnapshotRequest.Builder |
mergeFrom(CreateSnapshotRequest other) |
CreateSnapshotRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
CreateSnapshotRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CreateSnapshotRequest.Builder |
putAllLabels(Map<String,String> values)
User labels.
|
CreateSnapshotRequest.Builder |
putLabels(String key,
String value)
User labels.
|
CreateSnapshotRequest.Builder |
removeLabels(String key)
User labels.
|
CreateSnapshotRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CreateSnapshotRequest.Builder |
setName(String value)
Optional user-provided name for this snapshot.
|
CreateSnapshotRequest.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Optional user-provided name for this snapshot.
|
CreateSnapshotRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
CreateSnapshotRequest.Builder |
setSubscription(String value)
The subscription whose backlog the snapshot retains.
|
CreateSnapshotRequest.Builder |
setSubscriptionBytes(com.google.protobuf.ByteString value)
The subscription whose backlog the snapshot retains.
|
CreateSnapshotRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, 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<CreateSnapshotRequest.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSnapshotRequest.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSnapshotRequest.Builder>public CreateSnapshotRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSnapshotRequest.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<CreateSnapshotRequest.Builder>public CreateSnapshotRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CreateSnapshotRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CreateSnapshotRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CreateSnapshotRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSnapshotRequest.Builder>public CreateSnapshotRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSnapshotRequest.Builder>public CreateSnapshotRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSnapshotRequest.Builder>public CreateSnapshotRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSnapshotRequest.Builder>public CreateSnapshotRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSnapshotRequest.Builder>public CreateSnapshotRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSnapshotRequest.Builder>public CreateSnapshotRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateSnapshotRequest.Builder>public CreateSnapshotRequest.Builder mergeFrom(CreateSnapshotRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSnapshotRequest.Builder>public CreateSnapshotRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateSnapshotRequest.Builder>IOExceptionpublic String getName()
Optional user-provided name for this snapshot.
If the name is not provided in the request, the server will assign a random
name for this snapshot on the same project as the subscription.
Note that for REST API requests, you must specify a name.
Format is `projects/{project}/snapshots/{snap}`.
string name = 1;getName in interface CreateSnapshotRequestOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Optional user-provided name for this snapshot.
If the name is not provided in the request, the server will assign a random
name for this snapshot on the same project as the subscription.
Note that for REST API requests, you must specify a name.
Format is `projects/{project}/snapshots/{snap}`.
string name = 1;getNameBytes in interface CreateSnapshotRequestOrBuilderpublic CreateSnapshotRequest.Builder setName(String value)
Optional user-provided name for this snapshot.
If the name is not provided in the request, the server will assign a random
name for this snapshot on the same project as the subscription.
Note that for REST API requests, you must specify a name.
Format is `projects/{project}/snapshots/{snap}`.
string name = 1;public CreateSnapshotRequest.Builder clearName()
Optional user-provided name for this snapshot.
If the name is not provided in the request, the server will assign a random
name for this snapshot on the same project as the subscription.
Note that for REST API requests, you must specify a name.
Format is `projects/{project}/snapshots/{snap}`.
string name = 1;public CreateSnapshotRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
Optional user-provided name for this snapshot.
If the name is not provided in the request, the server will assign a random
name for this snapshot on the same project as the subscription.
Note that for REST API requests, you must specify a name.
Format is `projects/{project}/snapshots/{snap}`.
string name = 1;public String getSubscription()
The subscription whose backlog the snapshot retains.
Specifically, the created snapshot is guaranteed to retain:
(a) The existing backlog on the subscription. More precisely, this is
defined as the messages in the subscription's backlog that are
unacknowledged upon the successful completion of the
`CreateSnapshot` request; as well as:
(b) Any messages published to the subscription's topic following the
successful completion of the CreateSnapshot request.
Format is `projects/{project}/subscriptions/{sub}`.
string subscription = 2;getSubscription in interface CreateSnapshotRequestOrBuilderpublic com.google.protobuf.ByteString getSubscriptionBytes()
The subscription whose backlog the snapshot retains.
Specifically, the created snapshot is guaranteed to retain:
(a) The existing backlog on the subscription. More precisely, this is
defined as the messages in the subscription's backlog that are
unacknowledged upon the successful completion of the
`CreateSnapshot` request; as well as:
(b) Any messages published to the subscription's topic following the
successful completion of the CreateSnapshot request.
Format is `projects/{project}/subscriptions/{sub}`.
string subscription = 2;getSubscriptionBytes in interface CreateSnapshotRequestOrBuilderpublic CreateSnapshotRequest.Builder setSubscription(String value)
The subscription whose backlog the snapshot retains.
Specifically, the created snapshot is guaranteed to retain:
(a) The existing backlog on the subscription. More precisely, this is
defined as the messages in the subscription's backlog that are
unacknowledged upon the successful completion of the
`CreateSnapshot` request; as well as:
(b) Any messages published to the subscription's topic following the
successful completion of the CreateSnapshot request.
Format is `projects/{project}/subscriptions/{sub}`.
string subscription = 2;public CreateSnapshotRequest.Builder clearSubscription()
The subscription whose backlog the snapshot retains.
Specifically, the created snapshot is guaranteed to retain:
(a) The existing backlog on the subscription. More precisely, this is
defined as the messages in the subscription's backlog that are
unacknowledged upon the successful completion of the
`CreateSnapshot` request; as well as:
(b) Any messages published to the subscription's topic following the
successful completion of the CreateSnapshot request.
Format is `projects/{project}/subscriptions/{sub}`.
string subscription = 2;public CreateSnapshotRequest.Builder setSubscriptionBytes(com.google.protobuf.ByteString value)
The subscription whose backlog the snapshot retains.
Specifically, the created snapshot is guaranteed to retain:
(a) The existing backlog on the subscription. More precisely, this is
defined as the messages in the subscription's backlog that are
unacknowledged upon the successful completion of the
`CreateSnapshot` request; as well as:
(b) Any messages published to the subscription's topic following the
successful completion of the CreateSnapshot request.
Format is `projects/{project}/subscriptions/{sub}`.
string subscription = 2;public int getLabelsCount()
CreateSnapshotRequestOrBuilderUser labels.
map<string, string> labels = 3;getLabelsCount in interface CreateSnapshotRequestOrBuilderpublic boolean containsLabels(String key)
User labels.
map<string, string> labels = 3;containsLabels in interface CreateSnapshotRequestOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface CreateSnapshotRequestOrBuilderpublic Map<String,String> getLabelsMap()
User labels.
map<string, string> labels = 3;getLabelsMap in interface CreateSnapshotRequestOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
User labels.
map<string, string> labels = 3;getLabelsOrDefault in interface CreateSnapshotRequestOrBuilderpublic String getLabelsOrThrow(String key)
User labels.
map<string, string> labels = 3;getLabelsOrThrow in interface CreateSnapshotRequestOrBuilderpublic CreateSnapshotRequest.Builder clearLabels()
public CreateSnapshotRequest.Builder removeLabels(String key)
User labels.
map<string, string> labels = 3;@Deprecated public Map<String,String> getMutableLabels()
public CreateSnapshotRequest.Builder putLabels(String key, String value)
User labels.
map<string, string> labels = 3;public CreateSnapshotRequest.Builder putAllLabels(Map<String,String> values)
User labels.
map<string, string> labels = 3;public final CreateSnapshotRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSnapshotRequest.Builder>public final CreateSnapshotRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSnapshotRequest.Builder>Copyright © 2018 Google LLC. All rights reserved.