Class ListObjectOptions


  • public abstract class ListObjectOptions
    extends Object
    Options that can be specified when listing objects in the GoogleCloudStorage.
    • Field Detail

      • DEFAULT

        public static final ListObjectOptions DEFAULT
        List all objects in the directory.
      • DEFAULT_USING_START_OFFSET

        public static final ListObjectOptions DEFAULT_USING_START_OFFSET
        List objects starting from an offset.
      • DEFAULT_FLAT_LIST

        public static final ListObjectOptions DEFAULT_FLAT_LIST
        List all objects with the prefix.
    • Constructor Detail

      • ListObjectOptions

        public ListObjectOptions()
    • Method Detail

      • getDelimiter

        @Nullable
        public abstract String getDelimiter()
        Delimiter to use (typically /), otherwise null.
      • isIncludePrefix

        public abstract boolean isIncludePrefix()
        Whether to include prefix object in the result.
      • isIncludeFoldersAsPrefixes

        public abstract boolean isIncludeFoldersAsPrefixes()
        Whether to include empty folders in the result.
      • getMaxResults

        public abstract long getMaxResults()
        Maximum number of results to return, unlimited if negative or zero.
      • getFields

        @Nullable
        public abstract String getFields()
        Comma separated list of object fields to include in the list response.

        See object resource for reference.