Class ListObjectsResponse.Builder (2.22.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.storage.v2.Object>
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The prefixes to add.

Returns
TypeDescription
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
NameDescription
valueObject
Returns
TypeDescription
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
NameDescription
builderForValueObject.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
builderForValueObject.Builder
Returns
TypeDescription
ListObjectsResponse.Builder

addObjectsBuilder()

public Object.Builder addObjectsBuilder()

The list of items.

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

Returns
TypeDescription
Object.Builder

addObjectsBuilder(int index)

public Object.Builder addObjectsBuilder(int index)

The list of items.

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

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

The prefixes to add.

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

The bytes of the prefixes to add.

Returns
TypeDescription
ListObjectsResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListObjectsResponse build()
Returns
TypeDescription
ListObjectsResponse

buildPartial()

public ListObjectsResponse buildPartial()
Returns
TypeDescription
ListObjectsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListObjectsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListObjectsResponse.Builder

This builder for chaining.

clearObjects()

public ListObjectsResponse.Builder clearObjects()

The list of items.

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

Returns
TypeDescription
ListObjectsResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ListObjectsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ListObjectsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListObjectsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListObjectsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Object

getObjectsBuilder(int index)

public Object.Builder getObjectsBuilder(int index)

The list of items.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Object.Builder

getObjectsBuilderList()

public List<Object.Builder> getObjectsBuilderList()

The list of items.

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

Returns
TypeDescription
List<Builder>

getObjectsCount()

public int getObjectsCount()

The list of items.

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

Returns
TypeDescription
int

getObjectsList()

public List<Object> getObjectsList()

The list of items.

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

Returns
TypeDescription
List<Object>

getObjectsOrBuilder(int index)

public ObjectOrBuilder getObjectsOrBuilder(int index)

The list of items.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ObjectOrBuilder

getObjectsOrBuilderList()

public List<? extends ObjectOrBuilder> getObjectsOrBuilderList()

The list of items.

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

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

The index of the element to return.

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

The index of the value to return.

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

A list containing the prefixes.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ListObjectsResponse other)

public ListObjectsResponse.Builder mergeFrom(ListObjectsResponse other)
Parameter
NameDescription
otherListObjectsResponse
Returns
TypeDescription
ListObjectsResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeObjects(int index)

public ListObjectsResponse.Builder removeObjects(int index)

The list of items.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ListObjectsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListObjectsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
builderForValueObject.Builder
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The prefixes to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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