Class ListTopicSnapshotsResponse.Builder (1.121.1)

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
TypeDescription
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
NameDescription
valuesIterable<String>

The snapshots to add.

Returns
TypeDescription
ListTopicSnapshotsResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListTopicSnapshotsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListTopicSnapshotsResponse.Builder
Overrides

addSnapshots(String value)

public ListTopicSnapshotsResponse.Builder addSnapshots(String value)

The names of the snapshots that match the request.

repeated string snapshots = 1;

Parameter
NameDescription
valueString

The snapshots to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the snapshots to add.

Returns
TypeDescription
ListTopicSnapshotsResponse.Builder

This builder for chaining.

build()

public ListTopicSnapshotsResponse build()
Returns
TypeDescription
ListTopicSnapshotsResponse

buildPartial()

public ListTopicSnapshotsResponse buildPartial()
Returns
TypeDescription
ListTopicSnapshotsResponse

clear()

public ListTopicSnapshotsResponse.Builder clear()
Returns
TypeDescription
ListTopicSnapshotsResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListTopicSnapshotsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListTopicSnapshotsResponse.Builder
Overrides

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
TypeDescription
ListTopicSnapshotsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListTopicSnapshotsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListTopicSnapshotsResponse.Builder
Overrides

clearSnapshots()

public ListTopicSnapshotsResponse.Builder clearSnapshots()

The names of the snapshots that match the request.

repeated string snapshots = 1;

Returns
TypeDescription
ListTopicSnapshotsResponse.Builder

This builder for chaining.

clone()

public ListTopicSnapshotsResponse.Builder clone()
Returns
TypeDescription
ListTopicSnapshotsResponse.Builder
Overrides

getDefaultInstanceForType()

public ListTopicSnapshotsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListTopicSnapshotsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of snapshots.

getSnapshotsList()

public ProtocolStringList getSnapshotsList()

The names of the snapshots that match the request.

repeated string snapshots = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the snapshots.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListTopicSnapshotsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListTopicSnapshotsResponse.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListTopicSnapshotsResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListTopicSnapshotsResponse.Builder
Overrides

mergeFrom(ListTopicSnapshotsResponse other)

public ListTopicSnapshotsResponse.Builder mergeFrom(ListTopicSnapshotsResponse other)
Parameter
NameDescription
otherListTopicSnapshotsResponse
Returns
TypeDescription
ListTopicSnapshotsResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListTopicSnapshotsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListTopicSnapshotsResponse.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ListTopicSnapshotsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListTopicSnapshotsResponse.Builder
Overrides

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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListTopicSnapshotsResponse.Builder
Overrides

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
NameDescription
indexint

The index to set the value at.

valueString

The snapshots to set.

Returns
TypeDescription
ListTopicSnapshotsResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ListTopicSnapshotsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListTopicSnapshotsResponse.Builder
Overrides