Class ListSnapshotsResponse.Builder (1.120.1)

public static final class ListSnapshotsResponse.Builder extends GeneratedMessageV3.Builder<ListSnapshotsResponse.Builder> implements ListSnapshotsResponseOrBuilder

Response for the ListSnapshots method.

Protobuf type google.pubsub.v1.ListSnapshotsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllSnapshots(Iterable<? extends Snapshot> values)

public ListSnapshotsResponse.Builder addAllSnapshots(Iterable<? extends Snapshot> values)

The resulting snapshots.

repeated .google.pubsub.v1.Snapshot snapshots = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.pubsub.v1.Snapshot>
Returns
TypeDescription
ListSnapshotsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSnapshots(Snapshot value)

public ListSnapshotsResponse.Builder addSnapshots(Snapshot value)

The resulting snapshots.

repeated .google.pubsub.v1.Snapshot snapshots = 1;

Parameter
NameDescription
valueSnapshot
Returns
TypeDescription
ListSnapshotsResponse.Builder

addSnapshots(Snapshot.Builder builderForValue)

public ListSnapshotsResponse.Builder addSnapshots(Snapshot.Builder builderForValue)

The resulting snapshots.

repeated .google.pubsub.v1.Snapshot snapshots = 1;

Parameter
NameDescription
builderForValueSnapshot.Builder
Returns
TypeDescription
ListSnapshotsResponse.Builder

addSnapshots(int index, Snapshot value)

public ListSnapshotsResponse.Builder addSnapshots(int index, Snapshot value)

The resulting snapshots.

repeated .google.pubsub.v1.Snapshot snapshots = 1;

Parameters
NameDescription
indexint
valueSnapshot
Returns
TypeDescription
ListSnapshotsResponse.Builder

addSnapshots(int index, Snapshot.Builder builderForValue)

public ListSnapshotsResponse.Builder addSnapshots(int index, Snapshot.Builder builderForValue)

The resulting snapshots.

repeated .google.pubsub.v1.Snapshot snapshots = 1;

Parameters
NameDescription
indexint
builderForValueSnapshot.Builder
Returns
TypeDescription
ListSnapshotsResponse.Builder

addSnapshotsBuilder()

public Snapshot.Builder addSnapshotsBuilder()

The resulting snapshots.

repeated .google.pubsub.v1.Snapshot snapshots = 1;

Returns
TypeDescription
Snapshot.Builder

addSnapshotsBuilder(int index)

public Snapshot.Builder addSnapshotsBuilder(int index)

The resulting snapshots.

repeated .google.pubsub.v1.Snapshot snapshots = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Snapshot.Builder

build()

public ListSnapshotsResponse build()
Returns
TypeDescription
ListSnapshotsResponse

buildPartial()

public ListSnapshotsResponse buildPartial()
Returns
TypeDescription
ListSnapshotsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListSnapshotsResponse.Builder clearNextPageToken()

If not empty, indicates that there may be more snapshot that match the request; this value should be passed in a new ListSnapshotsRequest.

string next_page_token = 2;

Returns
TypeDescription
ListSnapshotsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSnapshots()

public ListSnapshotsResponse.Builder clearSnapshots()

The resulting snapshots.

repeated .google.pubsub.v1.Snapshot snapshots = 1;

Returns
TypeDescription
ListSnapshotsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListSnapshotsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListSnapshotsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

If not empty, indicates that there may be more snapshot that match the request; this value should be passed in a new ListSnapshotsRequest.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

If not empty, indicates that there may be more snapshot that match the request; this value should be passed in a new ListSnapshotsRequest.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getSnapshots(int index)

public Snapshot getSnapshots(int index)

The resulting snapshots.

repeated .google.pubsub.v1.Snapshot snapshots = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Snapshot

getSnapshotsBuilder(int index)

public Snapshot.Builder getSnapshotsBuilder(int index)

The resulting snapshots.

repeated .google.pubsub.v1.Snapshot snapshots = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Snapshot.Builder

getSnapshotsBuilderList()

public List<Snapshot.Builder> getSnapshotsBuilderList()

The resulting snapshots.

repeated .google.pubsub.v1.Snapshot snapshots = 1;

Returns
TypeDescription
List<Builder>

getSnapshotsCount()

public int getSnapshotsCount()

The resulting snapshots.

repeated .google.pubsub.v1.Snapshot snapshots = 1;

Returns
TypeDescription
int

getSnapshotsList()

public List<Snapshot> getSnapshotsList()

The resulting snapshots.

repeated .google.pubsub.v1.Snapshot snapshots = 1;

Returns
TypeDescription
List<Snapshot>

getSnapshotsOrBuilder(int index)

public SnapshotOrBuilder getSnapshotsOrBuilder(int index)

The resulting snapshots.

repeated .google.pubsub.v1.Snapshot snapshots = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
SnapshotOrBuilder

getSnapshotsOrBuilderList()

public List<? extends SnapshotOrBuilder> getSnapshotsOrBuilderList()

The resulting snapshots.

repeated .google.pubsub.v1.Snapshot snapshots = 1;

Returns
TypeDescription
List<? extends com.google.pubsub.v1.SnapshotOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ListSnapshotsResponse other)

public ListSnapshotsResponse.Builder mergeFrom(ListSnapshotsResponse other)
Parameter
NameDescription
otherListSnapshotsResponse
Returns
TypeDescription
ListSnapshotsResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSnapshots(int index)

public ListSnapshotsResponse.Builder removeSnapshots(int index)

The resulting snapshots.

repeated .google.pubsub.v1.Snapshot snapshots = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListSnapshotsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListSnapshotsResponse.Builder setNextPageToken(String value)

If not empty, indicates that there may be more snapshot that match the request; this value should be passed in a new ListSnapshotsRequest.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListSnapshotsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListSnapshotsResponse.Builder setNextPageTokenBytes(ByteString value)

If not empty, indicates that there may be more snapshot that match the request; this value should be passed in a new ListSnapshotsRequest.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListSnapshotsResponse.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ListSnapshotsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListSnapshotsResponse.Builder
Overrides

setSnapshots(int index, Snapshot value)

public ListSnapshotsResponse.Builder setSnapshots(int index, Snapshot value)

The resulting snapshots.

repeated .google.pubsub.v1.Snapshot snapshots = 1;

Parameters
NameDescription
indexint
valueSnapshot
Returns
TypeDescription
ListSnapshotsResponse.Builder

setSnapshots(int index, Snapshot.Builder builderForValue)

public ListSnapshotsResponse.Builder setSnapshots(int index, Snapshot.Builder builderForValue)

The resulting snapshots.

repeated .google.pubsub.v1.Snapshot snapshots = 1;

Parameters
NameDescription
indexint
builderForValueSnapshot.Builder
Returns
TypeDescription
ListSnapshotsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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