public static final class ListObjectsRequest.Builder extends GeneratedMessageV3.Builder<ListObjectsRequest.Builder> implements ListObjectsRequestOrBuilder
Request message for ListObjects.
Protobuf type google.storage.v2.ListObjectsRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ListObjectsRequest.BuilderImplements
ListObjectsRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListObjectsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ListObjectsRequest.Builder |
build()
public ListObjectsRequest build()
Type | Description |
ListObjectsRequest |
buildPartial()
public ListObjectsRequest buildPartial()
Type | Description |
ListObjectsRequest |
clear()
public ListObjectsRequest.Builder clear()
Type | Description |
ListObjectsRequest.Builder |
clearDelimiter()
public ListObjectsRequest.Builder clearDelimiter()
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;
Type | Description |
ListObjectsRequest.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ListObjectsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ListObjectsRequest.Builder |
clearIncludeTrailingDelimiter()
public ListObjectsRequest.Builder clearIncludeTrailingDelimiter()
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;
Type | Description |
ListObjectsRequest.Builder | This builder for chaining. |
clearLexicographicEnd()
public ListObjectsRequest.Builder clearLexicographicEnd()
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];
Type | Description |
ListObjectsRequest.Builder | This builder for chaining. |
clearLexicographicStart()
public ListObjectsRequest.Builder clearLexicographicStart()
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];
Type | Description |
ListObjectsRequest.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ListObjectsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ListObjectsRequest.Builder |
clearPageSize()
public ListObjectsRequest.Builder clearPageSize()
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;
Type | Description |
ListObjectsRequest.Builder | This builder for chaining. |
clearPageToken()
public ListObjectsRequest.Builder clearPageToken()
A previously-returned page token representing part of the larger set of results to view.
string page_token = 3;
Type | Description |
ListObjectsRequest.Builder | This builder for chaining. |
clearParent()
public ListObjectsRequest.Builder clearParent()
Required. Name of the bucket in which to look for objects.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
ListObjectsRequest.Builder | This builder for chaining. |
clearPrefix()
public ListObjectsRequest.Builder clearPrefix()
Filter results to objects whose names begin with this prefix.
string prefix = 6;
Type | Description |
ListObjectsRequest.Builder | This builder for chaining. |
clearReadMask()
public ListObjectsRequest.Builder clearReadMask()
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;
Type | Description |
ListObjectsRequest.Builder |
clearVersions()
public ListObjectsRequest.Builder clearVersions()
If true
, lists all versions of an object as distinct results.
For more information, see
Object
Versioning.
bool versions = 7;
Type | Description |
ListObjectsRequest.Builder | This builder for chaining. |
clone()
public ListObjectsRequest.Builder clone()
Type | Description |
ListObjectsRequest.Builder |
getDefaultInstanceForType()
public ListObjectsRequest getDefaultInstanceForType()
Type | Description |
ListObjectsRequest |
getDelimiter()
public String getDelimiter()
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;
Type | Description |
String | The delimiter. |
getDelimiterBytes()
public ByteString getDelimiterBytes()
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;
Type | Description |
ByteString | The bytes for delimiter. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getIncludeTrailingDelimiter()
public boolean getIncludeTrailingDelimiter()
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;
Type | Description |
boolean | The includeTrailingDelimiter. |
getLexicographicEnd()
public String getLexicographicEnd()
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];
Type | Description |
String | The lexicographicEnd. |
getLexicographicEndBytes()
public ByteString getLexicographicEndBytes()
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];
Type | Description |
ByteString | The bytes for lexicographicEnd. |
getLexicographicStart()
public String getLexicographicStart()
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];
Type | Description |
String | The lexicographicStart. |
getLexicographicStartBytes()
public ByteString getLexicographicStartBytes()
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];
Type | Description |
ByteString | The bytes for lexicographicStart. |
getPageSize()
public int getPageSize()
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;
Type | Description |
int | The pageSize. |
getPageToken()
public String getPageToken()
A previously-returned page token representing part of the larger set of results to view.
string page_token = 3;
Type | Description |
String | The pageToken. |
getPageTokenBytes()
public ByteString getPageTokenBytes()
A previously-returned page token representing part of the larger set of results to view.
string page_token = 3;
Type | Description |
ByteString | The bytes for pageToken. |
getParent()
public String getParent()
Required. Name of the bucket in which to look for objects.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
String | The parent. |
getParentBytes()
public ByteString getParentBytes()
Required. Name of the bucket in which to look for objects.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
ByteString | The bytes for parent. |
getPrefix()
public String getPrefix()
Filter results to objects whose names begin with this prefix.
string prefix = 6;
Type | Description |
String | The prefix. |
getPrefixBytes()
public ByteString getPrefixBytes()
Filter results to objects whose names begin with this prefix.
string prefix = 6;
Type | Description |
ByteString | The bytes for prefix. |
getReadMask()
public FieldMask getReadMask()
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;
Type | Description |
FieldMask | The readMask. |
getReadMaskBuilder()
public FieldMask.Builder getReadMaskBuilder()
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;
Type | Description |
Builder |
getReadMaskOrBuilder()
public FieldMaskOrBuilder getReadMaskOrBuilder()
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;
Type | Description |
FieldMaskOrBuilder |
getVersions()
public boolean getVersions()
If true
, lists all versions of an object as distinct results.
For more information, see
Object
Versioning.
bool versions = 7;
Type | Description |
boolean | The versions. |
hasReadMask()
public boolean hasReadMask()
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;
Type | Description |
boolean | Whether the readMask field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ListObjectsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ListObjectsRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ListObjectsRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ListObjectsRequest.Builder |
mergeFrom(ListObjectsRequest other)
public ListObjectsRequest.Builder mergeFrom(ListObjectsRequest other)
Name | Description |
other | ListObjectsRequest |
Type | Description |
ListObjectsRequest.Builder |
mergeReadMask(FieldMask value)
public ListObjectsRequest.Builder mergeReadMask(FieldMask value)
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;
Name | Description |
value | FieldMask |
Type | Description |
ListObjectsRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListObjectsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ListObjectsRequest.Builder |
setDelimiter(String value)
public ListObjectsRequest.Builder setDelimiter(String value)
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;
Name | Description |
value | String The delimiter to set. |
Type | Description |
ListObjectsRequest.Builder | This builder for chaining. |
setDelimiterBytes(ByteString value)
public ListObjectsRequest.Builder setDelimiterBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for delimiter to set. |
Type | Description |
ListObjectsRequest.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ListObjectsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ListObjectsRequest.Builder |
setIncludeTrailingDelimiter(boolean value)
public ListObjectsRequest.Builder setIncludeTrailingDelimiter(boolean value)
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;
Name | Description |
value | boolean The includeTrailingDelimiter to set. |
Type | Description |
ListObjectsRequest.Builder | This builder for chaining. |
setLexicographicEnd(String value)
public ListObjectsRequest.Builder setLexicographicEnd(String value)
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];
Name | Description |
value | String The lexicographicEnd to set. |
Type | Description |
ListObjectsRequest.Builder | This builder for chaining. |
setLexicographicEndBytes(ByteString value)
public ListObjectsRequest.Builder setLexicographicEndBytes(ByteString value)
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];
Name | Description |
value | ByteString The bytes for lexicographicEnd to set. |
Type | Description |
ListObjectsRequest.Builder | This builder for chaining. |
setLexicographicStart(String value)
public ListObjectsRequest.Builder setLexicographicStart(String value)
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];
Name | Description |
value | String The lexicographicStart to set. |
Type | Description |
ListObjectsRequest.Builder | This builder for chaining. |
setLexicographicStartBytes(ByteString value)
public ListObjectsRequest.Builder setLexicographicStartBytes(ByteString value)
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];
Name | Description |
value | ByteString The bytes for lexicographicStart to set. |
Type | Description |
ListObjectsRequest.Builder | This builder for chaining. |
setPageSize(int value)
public ListObjectsRequest.Builder setPageSize(int value)
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;
Name | Description |
value | int The pageSize to set. |
Type | Description |
ListObjectsRequest.Builder | This builder for chaining. |
setPageToken(String value)
public ListObjectsRequest.Builder setPageToken(String value)
A previously-returned page token representing part of the larger set of results to view.
string page_token = 3;
Name | Description |
value | String The pageToken to set. |
Type | Description |
ListObjectsRequest.Builder | This builder for chaining. |
setPageTokenBytes(ByteString value)
public ListObjectsRequest.Builder setPageTokenBytes(ByteString value)
A previously-returned page token representing part of the larger set of results to view.
string page_token = 3;
Name | Description |
value | ByteString The bytes for pageToken to set. |
Type | Description |
ListObjectsRequest.Builder | This builder for chaining. |
setParent(String value)
public ListObjectsRequest.Builder setParent(String value)
Required. Name of the bucket in which to look for objects.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
value | String The parent to set. |
Type | Description |
ListObjectsRequest.Builder | This builder for chaining. |
setParentBytes(ByteString value)
public ListObjectsRequest.Builder setParentBytes(ByteString value)
Required. Name of the bucket in which to look for objects.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
value | ByteString The bytes for parent to set. |
Type | Description |
ListObjectsRequest.Builder | This builder for chaining. |
setPrefix(String value)
public ListObjectsRequest.Builder setPrefix(String value)
Filter results to objects whose names begin with this prefix.
string prefix = 6;
Name | Description |
value | String The prefix to set. |
Type | Description |
ListObjectsRequest.Builder | This builder for chaining. |
setPrefixBytes(ByteString value)
public ListObjectsRequest.Builder setPrefixBytes(ByteString value)
Filter results to objects whose names begin with this prefix.
string prefix = 6;
Name | Description |
value | ByteString The bytes for prefix to set. |
Type | Description |
ListObjectsRequest.Builder | This builder for chaining. |
setReadMask(FieldMask value)
public ListObjectsRequest.Builder setReadMask(FieldMask value)
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;
Name | Description |
value | FieldMask |
Type | Description |
ListObjectsRequest.Builder |
setReadMask(FieldMask.Builder builderForValue)
public ListObjectsRequest.Builder setReadMask(FieldMask.Builder builderForValue)
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;
Name | Description |
builderForValue | Builder |
Type | Description |
ListObjectsRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListObjectsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ListObjectsRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ListObjectsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ListObjectsRequest.Builder |
setVersions(boolean value)
public ListObjectsRequest.Builder setVersions(boolean value)
If true
, lists all versions of an object as distinct results.
For more information, see
Object
Versioning.
bool versions = 7;
Name | Description |
value | boolean The versions to set. |
Type | Description |
ListObjectsRequest.Builder | This builder for chaining. |