Class ListTopicSnapshotsResponse.Builder (1.147.0)

public static final class ListTopicSnapshotsResponse.Builder extends GeneratedMessage.Builder<ListTopicSnapshotsResponse.Builder> implements ListTopicSnapshotsResponseOrBuilder

Response for the ListTopicSnapshots method.

Protobuf type google.pubsub.v1.ListTopicSnapshotsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllSnapshots(Iterable<String> values)

public ListTopicSnapshotsResponse.Builder addAllSnapshots(Iterable<String> values)

Optional. The names of the snapshots that match the request.

repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The snapshots to add.

Returns
Type Description
ListTopicSnapshotsResponse.Builder

This builder for chaining.

addSnapshots(String value)

public ListTopicSnapshotsResponse.Builder addSnapshots(String value)

Optional. The names of the snapshots that match the request.

repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

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)

Optional. The names of the snapshots that match the request.

repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

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
Overrides

clearNextPageToken()

public ListTopicSnapshotsResponse.Builder clearNextPageToken()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListTopicSnapshotsResponse.Builder

This builder for chaining.

clearSnapshots()

public ListTopicSnapshotsResponse.Builder clearSnapshots()

Optional. The names of the snapshots that match the request.

repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ListTopicSnapshotsResponse.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListTopicSnapshotsResponse getDefaultInstanceForType()
Returns
Type Description
ListTopicSnapshotsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for nextPageToken.

getSnapshots(int index)

public String getSnapshots(int index)

Optional. The names of the snapshots that match the request.

repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

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)

Optional. The names of the snapshots that match the request.

repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

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()

Optional. The names of the snapshots that match the request.

repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of snapshots.

getSnapshotsList()

public ProtocolStringList getSnapshotsList()

Optional. The names of the snapshots that match the request.

repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the snapshots.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListTopicSnapshotsResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListTopicSnapshotsResponse.Builder
Overrides

mergeFrom(ListTopicSnapshotsResponse other)

public ListTopicSnapshotsResponse.Builder mergeFrom(ListTopicSnapshotsResponse other)
Parameter
Name Description
other ListTopicSnapshotsResponse
Returns
Type Description
ListTopicSnapshotsResponse.Builder

setNextPageToken(String value)

public ListTopicSnapshotsResponse.Builder setNextPageToken(String value)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListTopicSnapshotsResponse.Builder

This builder for chaining.

setSnapshots(int index, String value)

public ListTopicSnapshotsResponse.Builder setSnapshots(int index, String value)

Optional. The names of the snapshots that match the request.

repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

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.