Class ListTopicSnapshotsResponse.Builder (1.133.0)

public static final class ListTopicSnapshotsResponse.Builder extends GeneratedMessageV3.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];

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
Overrides

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];

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];

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

clearField(Descriptors.FieldDescriptor field)

public ListTopicSnapshotsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListTopicSnapshotsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListTopicSnapshotsResponse.Builder
Overrides

clearSnapshots()

public ListTopicSnapshotsResponse.Builder clearSnapshots()

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

repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListTopicSnapshotsResponse.Builder

This builder for chaining.

clone()

public ListTopicSnapshotsResponse.Builder clone()
Returns
Type Description
ListTopicSnapshotsResponse.Builder
Overrides

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];

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];

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];

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];

Returns
Type Description
ProtocolStringList

A list containing the snapshots.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListTopicSnapshotsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListTopicSnapshotsResponse.Builder
Overrides

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
Overrides

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.

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
Overrides

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];

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
Overrides