public static final class ListTopicSnapshotsResponse.Builder extends GeneratedMessageV3.Builder<ListTopicSnapshotsResponse.Builder> implements ListTopicSnapshotsResponseOrBuilder
Response for the ListTopicSnapshots
method.
Protobuf type google.pubsub.v1.ListTopicSnapshotsResponse
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ListTopicSnapshotsResponse.BuilderImplements
ListTopicSnapshotsResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllSnapshots(Iterable<String> values)
public ListTopicSnapshotsResponse.Builder addAllSnapshots(Iterable<String> values)
The names of the snapshots that match the request.
repeated string snapshots = 1;
Name | Description |
values | Iterable<String> The snapshots to add. |
Type | Description |
ListTopicSnapshotsResponse.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListTopicSnapshotsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ListTopicSnapshotsResponse.Builder |
addSnapshots(String value)
public ListTopicSnapshotsResponse.Builder addSnapshots(String value)
The names of the snapshots that match the request.
repeated string snapshots = 1;
Name | Description |
value | String The snapshots to add. |
Type | Description |
ListTopicSnapshotsResponse.Builder | This builder for chaining. |
addSnapshotsBytes(ByteString value)
public ListTopicSnapshotsResponse.Builder addSnapshotsBytes(ByteString value)
The names of the snapshots that match the request.
repeated string snapshots = 1;
Name | Description |
value | ByteString The bytes of the snapshots to add. |
Type | Description |
ListTopicSnapshotsResponse.Builder | This builder for chaining. |
build()
public ListTopicSnapshotsResponse build()
Type | Description |
ListTopicSnapshotsResponse |
buildPartial()
public ListTopicSnapshotsResponse buildPartial()
Type | Description |
ListTopicSnapshotsResponse |
clear()
public ListTopicSnapshotsResponse.Builder clear()
Type | Description |
ListTopicSnapshotsResponse.Builder |
clearField(Descriptors.FieldDescriptor field)
public ListTopicSnapshotsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ListTopicSnapshotsResponse.Builder |
clearNextPageToken()
public ListTopicSnapshotsResponse.Builder clearNextPageToken()
If not empty, indicates that there may be more snapshots that match
the request; this value should be passed in a new
ListTopicSnapshotsRequest
to get more snapshots.
string next_page_token = 2;
Type | Description |
ListTopicSnapshotsResponse.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ListTopicSnapshotsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ListTopicSnapshotsResponse.Builder |
clearSnapshots()
public ListTopicSnapshotsResponse.Builder clearSnapshots()
The names of the snapshots that match the request.
repeated string snapshots = 1;
Type | Description |
ListTopicSnapshotsResponse.Builder | This builder for chaining. |
clone()
public ListTopicSnapshotsResponse.Builder clone()
Type | Description |
ListTopicSnapshotsResponse.Builder |
getDefaultInstanceForType()
public ListTopicSnapshotsResponse getDefaultInstanceForType()
Type | Description |
ListTopicSnapshotsResponse |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getNextPageToken()
public String getNextPageToken()
If not empty, indicates that there may be more snapshots that match
the request; this value should be passed in a new
ListTopicSnapshotsRequest
to get more snapshots.
string next_page_token = 2;
Type | Description |
String | The nextPageToken. |
getNextPageTokenBytes()
public ByteString getNextPageTokenBytes()
If not empty, indicates that there may be more snapshots that match
the request; this value should be passed in a new
ListTopicSnapshotsRequest
to get more snapshots.
string next_page_token = 2;
Type | Description |
ByteString | The bytes for nextPageToken. |
getSnapshots(int index)
public String getSnapshots(int index)
The names of the snapshots that match the request.
repeated string snapshots = 1;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The snapshots at the given index. |
getSnapshotsBytes(int index)
public ByteString getSnapshotsBytes(int index)
The names of the snapshots that match the request.
repeated string snapshots = 1;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the snapshots at the given index. |
getSnapshotsCount()
public int getSnapshotsCount()
The names of the snapshots that match the request.
repeated string snapshots = 1;
Type | Description |
int | The count of snapshots. |
getSnapshotsList()
public ProtocolStringList getSnapshotsList()
The names of the snapshots that match the request.
repeated string snapshots = 1;
Type | Description |
ProtocolStringList | A list containing the snapshots. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ListTopicSnapshotsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ListTopicSnapshotsResponse.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ListTopicSnapshotsResponse.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ListTopicSnapshotsResponse.Builder |
mergeFrom(ListTopicSnapshotsResponse other)
public ListTopicSnapshotsResponse.Builder mergeFrom(ListTopicSnapshotsResponse other)
Name | Description |
other | ListTopicSnapshotsResponse |
Type | Description |
ListTopicSnapshotsResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListTopicSnapshotsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ListTopicSnapshotsResponse.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ListTopicSnapshotsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ListTopicSnapshotsResponse.Builder |
setNextPageToken(String value)
public ListTopicSnapshotsResponse.Builder setNextPageToken(String value)
If not empty, indicates that there may be more snapshots that match
the request; this value should be passed in a new
ListTopicSnapshotsRequest
to get more snapshots.
string next_page_token = 2;
Name | Description |
value | String The nextPageToken to set. |
Type | Description |
ListTopicSnapshotsResponse.Builder | This builder for chaining. |
setNextPageTokenBytes(ByteString value)
public ListTopicSnapshotsResponse.Builder setNextPageTokenBytes(ByteString value)
If not empty, indicates that there may be more snapshots that match
the request; this value should be passed in a new
ListTopicSnapshotsRequest
to get more snapshots.
string next_page_token = 2;
Name | Description |
value | ByteString The bytes for nextPageToken to set. |
Type | Description |
ListTopicSnapshotsResponse.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListTopicSnapshotsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ListTopicSnapshotsResponse.Builder |
setSnapshots(int index, String value)
public ListTopicSnapshotsResponse.Builder setSnapshots(int index, String value)
The names of the snapshots that match the request.
repeated string snapshots = 1;
Name | Description |
index | int The index to set the value at. |
value | String The snapshots to set. |
Type | Description |
ListTopicSnapshotsResponse.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ListTopicSnapshotsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ListTopicSnapshotsResponse.Builder |