Class ListObjectsResponse.Builder (2.8.1)

public static final class ListObjectsResponse.Builder extends GeneratedMessageV3.Builder<ListObjectsResponse.Builder> implements ListObjectsResponseOrBuilder

The result of a call to Objects.ListObjects

Protobuf type google.storage.v2.ListObjectsResponse

Static Methods

getDescriptor()

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

Methods

addAllObjects(Iterable<? extends Object> values)

public ListObjectsResponse.Builder addAllObjects(Iterable<? extends Object> values)

The list of items.

repeated .google.storage.v2.Object objects = 1;

Parameter
Name Description
values Iterable<? extends com.google.storage.v2.Object>
Returns
Type Description
ListObjectsResponse.Builder

addAllPrefixes(Iterable<String> values)

public ListObjectsResponse.Builder addAllPrefixes(Iterable<String> values)

The list of prefixes of objects matching-but-not-listed up to and including the requested delimiter.

repeated string prefixes = 2;

Parameter
Name Description
values Iterable<String>

The prefixes to add.

Returns
Type Description
ListObjectsResponse.Builder

This builder for chaining.

addObjects(Object value)

public ListObjectsResponse.Builder addObjects(Object value)

The list of items.

repeated .google.storage.v2.Object objects = 1;

Parameter
Name Description
value Object
Returns
Type Description
ListObjectsResponse.Builder

addObjects(Object.Builder builderForValue)

public ListObjectsResponse.Builder addObjects(Object.Builder builderForValue)

The list of items.

repeated .google.storage.v2.Object objects = 1;

Parameter
Name Description
builderForValue Object.Builder
Returns
Type Description
ListObjectsResponse.Builder

addObjects(int index, Object value)

public ListObjectsResponse.Builder addObjects(int index, Object value)

The list of items.

repeated .google.storage.v2.Object objects = 1;

Parameters
Name Description
index int
value Object
Returns
Type Description
ListObjectsResponse.Builder

addObjects(int index, Object.Builder builderForValue)

public ListObjectsResponse.Builder addObjects(int index, Object.Builder builderForValue)

The list of items.

repeated .google.storage.v2.Object objects = 1;

Parameters
Name Description
index int
builderForValue Object.Builder
Returns
Type Description
ListObjectsResponse.Builder

addObjectsBuilder()

public Object.Builder addObjectsBuilder()

The list of items.

repeated .google.storage.v2.Object objects = 1;

Returns
Type Description
Object.Builder

addObjectsBuilder(int index)

public Object.Builder addObjectsBuilder(int index)

The list of items.

repeated .google.storage.v2.Object objects = 1;

Parameter
Name Description
index int
Returns
Type Description
Object.Builder

addPrefixes(String value)

public ListObjectsResponse.Builder addPrefixes(String value)

The list of prefixes of objects matching-but-not-listed up to and including the requested delimiter.

repeated string prefixes = 2;

Parameter
Name Description
value String

The prefixes to add.

Returns
Type Description
ListObjectsResponse.Builder

This builder for chaining.

addPrefixesBytes(ByteString value)

public ListObjectsResponse.Builder addPrefixesBytes(ByteString value)

The list of prefixes of objects matching-but-not-listed up to and including the requested delimiter.

repeated string prefixes = 2;

Parameter
Name Description
value ByteString

The bytes of the prefixes to add.

Returns
Type Description
ListObjectsResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListObjectsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListObjectsResponse.Builder
Overrides

build()

public ListObjectsResponse build()
Returns
Type Description
ListObjectsResponse

buildPartial()

public ListObjectsResponse buildPartial()
Returns
Type Description
ListObjectsResponse

clear()

public ListObjectsResponse.Builder clear()
Returns
Type Description
ListObjectsResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListObjectsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListObjectsResponse.Builder
Overrides

clearNextPageToken()

public ListObjectsResponse.Builder clearNextPageToken()

The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.

string next_page_token = 3;

Returns
Type Description
ListObjectsResponse.Builder

This builder for chaining.

clearObjects()

public ListObjectsResponse.Builder clearObjects()

The list of items.

repeated .google.storage.v2.Object objects = 1;

Returns
Type Description
ListObjectsResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrefixes()

public ListObjectsResponse.Builder clearPrefixes()

The list of prefixes of objects matching-but-not-listed up to and including the requested delimiter.

repeated string prefixes = 2;

Returns
Type Description
ListObjectsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListObjectsResponse getDefaultInstanceForType()
Returns
Type Description
ListObjectsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.

string next_page_token = 3;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.

string next_page_token = 3;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getObjects(int index)

public Object getObjects(int index)

The list of items.

repeated .google.storage.v2.Object objects = 1;

Parameter
Name Description
index int
Returns
Type Description
Object

getObjectsBuilder(int index)

public Object.Builder getObjectsBuilder(int index)

The list of items.

repeated .google.storage.v2.Object objects = 1;

Parameter
Name Description
index int
Returns
Type Description
Object.Builder

getObjectsBuilderList()

public List<Object.Builder> getObjectsBuilderList()

The list of items.

repeated .google.storage.v2.Object objects = 1;

Returns
Type Description
List<Builder>

getObjectsCount()

public int getObjectsCount()

The list of items.

repeated .google.storage.v2.Object objects = 1;

Returns
Type Description
int

getObjectsList()

public List<Object> getObjectsList()

The list of items.

repeated .google.storage.v2.Object objects = 1;

Returns
Type Description
List<Object>

getObjectsOrBuilder(int index)

public ObjectOrBuilder getObjectsOrBuilder(int index)

The list of items.

repeated .google.storage.v2.Object objects = 1;

Parameter
Name Description
index int
Returns
Type Description
ObjectOrBuilder

getObjectsOrBuilderList()

public List<? extends ObjectOrBuilder> getObjectsOrBuilderList()

The list of items.

repeated .google.storage.v2.Object objects = 1;

Returns
Type Description
List<? extends com.google.storage.v2.ObjectOrBuilder>

getPrefixes(int index)

public String getPrefixes(int index)

The list of prefixes of objects matching-but-not-listed up to and including the requested delimiter.

repeated string prefixes = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The prefixes at the given index.

getPrefixesBytes(int index)

public ByteString getPrefixesBytes(int index)

The list of prefixes of objects matching-but-not-listed up to and including the requested delimiter.

repeated string prefixes = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the prefixes at the given index.

getPrefixesCount()

public int getPrefixesCount()

The list of prefixes of objects matching-but-not-listed up to and including the requested delimiter.

repeated string prefixes = 2;

Returns
Type Description
int

The count of prefixes.

getPrefixesList()

public ProtocolStringList getPrefixesList()

The list of prefixes of objects matching-but-not-listed up to and including the requested delimiter.

repeated string prefixes = 2;

Returns
Type Description
ProtocolStringList

A list containing the prefixes.

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 ListObjectsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListObjectsResponse.Builder
Overrides Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(ListObjectsResponse other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeObjects(int index)

public ListObjectsResponse.Builder removeObjects(int index)

The list of items.

repeated .google.storage.v2.Object objects = 1;

Parameter
Name Description
index int
Returns
Type Description
ListObjectsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListObjectsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListObjectsResponse.Builder
Overrides

setNextPageToken(String value)

public ListObjectsResponse.Builder setNextPageToken(String value)

The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.

string next_page_token = 3;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListObjectsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListObjectsResponse.Builder setNextPageTokenBytes(ByteString value)

The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.

string next_page_token = 3;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListObjectsResponse.Builder

This builder for chaining.

setObjects(int index, Object value)

public ListObjectsResponse.Builder setObjects(int index, Object value)

The list of items.

repeated .google.storage.v2.Object objects = 1;

Parameters
Name Description
index int
value Object
Returns
Type Description
ListObjectsResponse.Builder

setObjects(int index, Object.Builder builderForValue)

public ListObjectsResponse.Builder setObjects(int index, Object.Builder builderForValue)

The list of items.

repeated .google.storage.v2.Object objects = 1;

Parameters
Name Description
index int
builderForValue Object.Builder
Returns
Type Description
ListObjectsResponse.Builder

setPrefixes(int index, String value)

public ListObjectsResponse.Builder setPrefixes(int index, String value)

The list of prefixes of objects matching-but-not-listed up to and including the requested delimiter.

repeated string prefixes = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The prefixes to set.

Returns
Type Description
ListObjectsResponse.Builder

This builder for chaining.

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

public ListObjectsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListObjectsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListObjectsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListObjectsResponse.Builder
Overrides