Class ListObjectsRequest (2.50.0)

publicfinalclassListObjectsRequestextendsGeneratedMessageV3implementsListObjectsRequestOrBuilder

Request message for ListObjects.

Protobuf type google.storage.v2.ListObjectsRequest

Static Fields

DELIMITER_FIELD_NUMBER

publicstaticfinalintDELIMITER_FIELD_NUMBER
Field Value
TypeDescription
int

INCLUDE_FOLDERS_AS_PREFIXES_FIELD_NUMBER

publicstaticfinalintINCLUDE_FOLDERS_AS_PREFIXES_FIELD_NUMBER
Field Value
TypeDescription
int

INCLUDE_TRAILING_DELIMITER_FIELD_NUMBER

publicstaticfinalintINCLUDE_TRAILING_DELIMITER_FIELD_NUMBER
Field Value
TypeDescription
int

LEXICOGRAPHIC_END_FIELD_NUMBER

publicstaticfinalintLEXICOGRAPHIC_END_FIELD_NUMBER
Field Value
TypeDescription
int

LEXICOGRAPHIC_START_FIELD_NUMBER

publicstaticfinalintLEXICOGRAPHIC_START_FIELD_NUMBER
Field Value
TypeDescription
int

MATCH_GLOB_FIELD_NUMBER

publicstaticfinalintMATCH_GLOB_FIELD_NUMBER
Field Value
TypeDescription
int

PAGE_SIZE_FIELD_NUMBER

publicstaticfinalintPAGE_SIZE_FIELD_NUMBER
Field Value
TypeDescription
int

PAGE_TOKEN_FIELD_NUMBER

publicstaticfinalintPAGE_TOKEN_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

publicstaticfinalintPARENT_FIELD_NUMBER
Field Value
TypeDescription
int

PREFIX_FIELD_NUMBER

publicstaticfinalintPREFIX_FIELD_NUMBER
Field Value
TypeDescription
int

READ_MASK_FIELD_NUMBER

publicstaticfinalintREAD_MASK_FIELD_NUMBER
Field Value
TypeDescription
int

SOFT_DELETED_FIELD_NUMBER

publicstaticfinalintSOFT_DELETED_FIELD_NUMBER
Field Value
TypeDescription
int

VERSIONS_FIELD_NUMBER

publicstaticfinalintVERSIONS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

publicstaticListObjectsRequestgetDefaultInstance()
Returns
TypeDescription
ListObjectsRequest

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

publicstaticListObjectsRequest.BuildernewBuilder()
Returns
TypeDescription
ListObjectsRequest.Builder

newBuilder(ListObjectsRequest prototype)

publicstaticListObjectsRequest.BuildernewBuilder(ListObjectsRequestprototype)
Parameter
NameDescription
prototypeListObjectsRequest
Returns
TypeDescription
ListObjectsRequest.Builder

parseDelimitedFrom(InputStream input)

publicstaticListObjectsRequestparseDelimitedFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ListObjectsRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticListObjectsRequestparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListObjectsRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

publicstaticListObjectsRequestparseFrom(byte[]data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ListObjectsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticListObjectsRequestparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListObjectsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticListObjectsRequestparseFrom(ByteStringdata)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ListObjectsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticListObjectsRequestparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListObjectsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticListObjectsRequestparseFrom(CodedInputStreaminput)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ListObjectsRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticListObjectsRequestparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListObjectsRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

publicstaticListObjectsRequestparseFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ListObjectsRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticListObjectsRequestparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListObjectsRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

publicstaticListObjectsRequestparseFrom(ByteBufferdata)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ListObjectsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticListObjectsRequestparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListObjectsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

publicstaticParser<ListObjectsRequest>parser()
Returns
TypeDescription
Parser<ListObjectsRequest>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

publicListObjectsRequestgetDefaultInstanceForType()
Returns
TypeDescription
ListObjectsRequest

getDelimiter()

publicStringgetDelimiter()

If set, returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.

string delimiter = 4;

Returns
TypeDescription
String

The delimiter.

getDelimiterBytes()

publicByteStringgetDelimiterBytes()

If set, returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.

string delimiter = 4;

Returns
TypeDescription
ByteString

The bytes for delimiter.

getIncludeFoldersAsPrefixes()

publicbooleangetIncludeFoldersAsPrefixes()

Optional. If true, will also include folders and managed folders (besides objects) in the returned prefixes. Requires delimiter to be set to '/'.

bool include_folders_as_prefixes = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The includeFoldersAsPrefixes.

getIncludeTrailingDelimiter()

publicbooleangetIncludeTrailingDelimiter()

If true, objects that end in exactly one instance of delimiter will have their metadata included in items in addition to prefixes.

bool include_trailing_delimiter = 5;

Returns
TypeDescription
boolean

The includeTrailingDelimiter.

getLexicographicEnd()

publicStringgetLexicographicEnd()

Optional. Filter results to objects whose names are lexicographically before lexicographic_end. If lexicographic_start is also set, the objects listed have names between lexicographic_start (inclusive) and lexicographic_end (exclusive).

string lexicographic_end = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The lexicographicEnd.

getLexicographicEndBytes()

publicByteStringgetLexicographicEndBytes()

Optional. Filter results to objects whose names are lexicographically before lexicographic_end. If lexicographic_start is also set, the objects listed have names between lexicographic_start (inclusive) and lexicographic_end (exclusive).

string lexicographic_end = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for lexicographicEnd.

getLexicographicStart()

publicStringgetLexicographicStart()

Optional. Filter results to objects whose names are lexicographically equal to or after lexicographic_start. If lexicographic_end is also set, the objects listed have names between lexicographic_start (inclusive) and lexicographic_end (exclusive).

string lexicographic_start = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The lexicographicStart.

getLexicographicStartBytes()

publicByteStringgetLexicographicStartBytes()

Optional. Filter results to objects whose names are lexicographically equal to or after lexicographic_start. If lexicographic_end is also set, the objects listed have names between lexicographic_start (inclusive) and lexicographic_end (exclusive).

string lexicographic_start = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for lexicographicStart.

getMatchGlob()

publicStringgetMatchGlob()

Optional. Filter results to objects and prefixes that match this glob pattern. See List Objects Using Glob for the full syntax.

string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The matchGlob.

getMatchGlobBytes()

publicByteStringgetMatchGlobBytes()

Optional. Filter results to objects and prefixes that match this glob pattern. See List Objects Using Glob for the full syntax.

string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for matchGlob.

getPageSize()

publicintgetPageSize()

Maximum number of items plus prefixes to return in a single page of responses. As duplicate prefixes are omitted, fewer total results may be returned than requested. The service will use this parameter or 1,000 items, whichever is smaller.

int32 page_size = 2;

Returns
TypeDescription
int

The pageSize.

getPageToken()

publicStringgetPageToken()

A previously-returned page token representing part of the larger set of results to view.

string page_token = 3;

Returns
TypeDescription
String

The pageToken.

getPageTokenBytes()

publicByteStringgetPageTokenBytes()

A previously-returned page token representing part of the larger set of results to view.

string page_token = 3;

Returns
TypeDescription
ByteString

The bytes for pageToken.

getParent()

publicStringgetParent()

Required. Name of the bucket in which to look for objects.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

publicByteStringgetParentBytes()

Required. Name of the bucket in which to look for objects.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

publicParser<ListObjectsRequest>getParserForType()
Returns
TypeDescription
Parser<ListObjectsRequest>
Overrides

getPrefix()

publicStringgetPrefix()

Filter results to objects whose names begin with this prefix.

string prefix = 6;

Returns
TypeDescription
String

The prefix.

getPrefixBytes()

publicByteStringgetPrefixBytes()

Filter results to objects whose names begin with this prefix.

string prefix = 6;

Returns
TypeDescription
ByteString

The bytes for prefix.

getReadMask()

publicFieldMaskgetReadMask()

Mask specifying which fields to read from each result. If no mask is specified, will default to all fields except items.acl and items.owner.

  • may be used to mean "all fields".

optional .google.protobuf.FieldMask read_mask = 8;

Returns
TypeDescription
FieldMask

The readMask.

getReadMaskOrBuilder()

publicFieldMaskOrBuildergetReadMaskOrBuilder()

Mask specifying which fields to read from each result. If no mask is specified, will default to all fields except items.acl and items.owner.

  • may be used to mean "all fields".

optional .google.protobuf.FieldMask read_mask = 8;

Returns
TypeDescription
FieldMaskOrBuilder

getSerializedSize()

publicintgetSerializedSize()
Returns
TypeDescription
int
Overrides

getSoftDeleted()

publicbooleangetSoftDeleted()

Optional. If true, only list all soft-deleted versions of the object. Soft delete policy is required to set this option.

bool soft_deleted = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The softDeleted.

getVersions()

publicbooleangetVersions()

If true, lists all versions of an object as distinct results. For more information, see Object Versioning.

bool versions = 7;

Returns
TypeDescription
boolean

The versions.

hasReadMask()

publicbooleanhasReadMask()

Mask specifying which fields to read from each result. If no mask is specified, will default to all fields except items.acl and items.owner.

  • may be used to mean "all fields".

optional .google.protobuf.FieldMask read_mask = 8;

Returns
TypeDescription
boolean

Whether the readMask field is set.

hashCode()

publicinthashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

publicListObjectsRequest.BuildernewBuilderForType()
Returns
TypeDescription
ListObjectsRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedListObjectsRequest.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ListObjectsRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

publicListObjectsRequest.BuildertoBuilder()
Returns
TypeDescription
ListObjectsRequest.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException