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()
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
values | Iterable<String> The snapshots to add. |
Returns | |
---|---|
Type | Description |
ListTopicSnapshotsResponse.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListTopicSnapshotsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | String The snapshots to add. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes of the snapshots to add. |
Returns | |
---|---|
Type | Description |
ListTopicSnapshotsResponse.Builder | This builder for chaining. |
build()
public ListTopicSnapshotsResponse build()
Returns | |
---|---|
Type | Description |
ListTopicSnapshotsResponse |
buildPartial()
public ListTopicSnapshotsResponse buildPartial()
Returns | |
---|---|
Type | Description |
ListTopicSnapshotsResponse |
clear()
public ListTopicSnapshotsResponse.Builder clear()
Returns | |
---|---|
Type | Description |
ListTopicSnapshotsResponse.Builder |
clearField(Descriptors.FieldDescriptor field)
public ListTopicSnapshotsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
ListTopicSnapshotsResponse.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ListTopicSnapshotsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
ListTopicSnapshotsResponse.Builder |
clearSnapshots()
public ListTopicSnapshotsResponse.Builder clearSnapshots()
The names of the snapshots that match the request.
repeated string snapshots = 1;
Returns | |
---|---|
Type | Description |
ListTopicSnapshotsResponse.Builder | This builder for chaining. |
clone()
public ListTopicSnapshotsResponse.Builder clone()
Returns | |
---|---|
Type | Description |
ListTopicSnapshotsResponse.Builder |
getDefaultInstanceForType()
public ListTopicSnapshotsResponse getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ListTopicSnapshotsResponse |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
int | The count of snapshots. |
getSnapshotsList()
public ProtocolStringList getSnapshotsList()
The names of the snapshots that match the request.
repeated string snapshots = 1;
Returns | |
---|---|
Type | Description |
ProtocolStringList | A list containing the snapshots. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ListTopicSnapshotsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ListTopicSnapshotsResponse.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ListTopicSnapshotsResponse.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
ListTopicSnapshotsResponse.Builder |
mergeFrom(ListTopicSnapshotsResponse other)
public ListTopicSnapshotsResponse.Builder mergeFrom(ListTopicSnapshotsResponse other)
Parameter | |
---|---|
Name | Description |
other | ListTopicSnapshotsResponse |
Returns | |
---|---|
Type | Description |
ListTopicSnapshotsResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListTopicSnapshotsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ListTopicSnapshotsResponse.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ListTopicSnapshotsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | String The nextPageToken to set. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for nextPageToken to set. |
Returns | |
---|---|
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)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
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;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The snapshots to set. |
Returns | |
---|---|
Type | Description |
ListTopicSnapshotsResponse.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ListTopicSnapshotsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ListTopicSnapshotsResponse.Builder |