ListResult

public final classListResult


Contains the prefixes and items returned by alist call.

Summary

Public methods

@NonNullList<StorageReference>

The items (files) returned by thelist() operation.

@NullableString

Returns a token that can be used to resume a previouslist() operation.

@NonNullList<StorageReference>

The prefixes (folders) returned by thelist() operation.

Extension functions

final @NonNullList<@NonNullStorageReference>

Destructuring declaration forListResult to provide its items.

final @NonNullList<@NonNullStorageReference>

Destructuring declaration forListResult to provide its prefixes.

finalString

Destructuring declaration forListResult to provide its pageToken.

Public fields

items

public final List<StorageReferenceitems

pageToken

public final @NullableString pageToken

prefixes

public final List<StorageReferenceprefixes

Public methods

getItems

public @NonNullList<StorageReferencegetItems()

The items (files) returned by thelist() operation.

Returns
@NonNullList<StorageReference>

A list of items (files).

getPageToken

public @NullableString getPageToken()

Returns a token that can be used to resume a previouslist() operation.null indicates that there are no more results.

Returns
@NullableString

A page token if more results are available.

getPrefixes

public @NonNullList<StorageReferencegetPrefixes()

The prefixes (folders) returned by thelist() operation.

Returns
@NonNullList<StorageReference>

A list of prefixes (folders).

Extension functions

StorageKt.component1

public final @NonNullList<@NonNullStorageReferenceStorageKt.component1(@NonNullListResult receiver)

Destructuring declaration forListResult to provide its items.

StorageKt.component2

public final @NonNullList<@NonNullStorageReferenceStorageKt.component2(@NonNullListResult receiver)

Destructuring declaration forListResult to provide its prefixes.

Returns
@NonNullList<@NonNullStorageReference>

the prefixes of theListResult

StorageKt.component3

public final String StorageKt.component3(@NonNullListResult receiver)

Destructuring declaration forListResult to provide its pageToken.

Returns
String

the pageToken of theListResult

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.