Class ListSectionItemsRequest.Builder (0.55.0)

public static final class ListSectionItemsRequest.Builder extends GeneratedMessage.Builder<ListSectionItemsRequest.Builder> implements ListSectionItemsRequestOrBuilder

Request message for listing section items.

Protobuf type google.chat.v1.ListSectionItemsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ListSectionItemsRequest build()
Returns
Type Description
ListSectionItemsRequest

buildPartial()

public ListSectionItemsRequest buildPartial()
Returns
Type Description
ListSectionItemsRequest

clear()

public ListSectionItemsRequest.Builder clear()
Returns
Type Description
ListSectionItemsRequest.Builder
Overrides

clearFilter()

public ListSectionItemsRequest.Builder clearFilter()

Optional. A query filter.

Currently only supports filtering by space.

For example, space = spaces/{space}.

Invalid queries are rejected with an INVALID_ARGUMENT error.

string filter = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListSectionItemsRequest.Builder

This builder for chaining.

clearPageSize()

public ListSectionItemsRequest.Builder clearPageSize()

Optional. The maximum number of section items to return. The service may return fewer than this value.

If unspecified, at most 10 section items will be returned.

The maximum value is 100. If you use a value more than 100, it's automatically changed to 100.

Negative values return an INVALID_ARGUMENT error.

int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListSectionItemsRequest.Builder

This builder for chaining.

clearPageToken()

public ListSectionItemsRequest.Builder clearPageToken()

Optional. A page token, received from a previous list section items call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided should match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListSectionItemsRequest.Builder

This builder for chaining.

clearParent()

public ListSectionItemsRequest.Builder clearParent()

Required. The parent, which is the section resource name that owns this collection of section items. Only supports listing section items for the calling user.

When you're filtering by space, use the wildcard - to search across all sections. For example, users/{user}/sections/-.

Format: users/{user}/sections/{section}

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

Returns
Type Description
ListSectionItemsRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListSectionItemsRequest getDefaultInstanceForType()
Returns
Type Description
ListSectionItemsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFilter()

public String getFilter()

Optional. A query filter.

Currently only supports filtering by space.

For example, space = spaces/{space}.

Invalid queries are rejected with an INVALID_ARGUMENT error.

string filter = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The filter.

getFilterBytes()

public ByteString getFilterBytes()

Optional. A query filter.

Currently only supports filtering by space.

For example, space = spaces/{space}.

Invalid queries are rejected with an INVALID_ARGUMENT error.

string filter = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for filter.

getPageSize()

public int getPageSize()

Optional. The maximum number of section items to return. The service may return fewer than this value.

If unspecified, at most 10 section items will be returned.

The maximum value is 100. If you use a value more than 100, it's automatically changed to 100.

Negative values return an INVALID_ARGUMENT error.

int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

Optional. A page token, received from a previous list section items call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided should match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

Optional. A page token, received from a previous list section items call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided should match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for pageToken.

getParent()

public String getParent()

Required. The parent, which is the section resource name that owns this collection of section items. Only supports listing section items for the calling user.

When you're filtering by space, use the wildcard - to search across all sections. For example, users/{user}/sections/-.

Format: users/{user}/sections/{section}

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent, which is the section resource name that owns this collection of section items. Only supports listing section items for the calling user.

When you're filtering by space, use the wildcard - to search across all sections. For example, users/{user}/sections/-.

Format: users/{user}/sections/{section}

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

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListSectionItemsRequest other)

public ListSectionItemsRequest.Builder mergeFrom(ListSectionItemsRequest other)
Parameter
Name Description
other ListSectionItemsRequest
Returns
Type Description
ListSectionItemsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListSectionItemsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListSectionItemsRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListSectionItemsRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListSectionItemsRequest.Builder
Overrides

setFilter(String value)

public ListSectionItemsRequest.Builder setFilter(String value)

Optional. A query filter.

Currently only supports filtering by space.

For example, space = spaces/{space}.

Invalid queries are rejected with an INVALID_ARGUMENT error.

string filter = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The filter to set.

Returns
Type Description
ListSectionItemsRequest.Builder

This builder for chaining.

setFilterBytes(ByteString value)

public ListSectionItemsRequest.Builder setFilterBytes(ByteString value)

Optional. A query filter.

Currently only supports filtering by space.

For example, space = spaces/{space}.

Invalid queries are rejected with an INVALID_ARGUMENT error.

string filter = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for filter to set.

Returns
Type Description
ListSectionItemsRequest.Builder

This builder for chaining.

setPageSize(int value)

public ListSectionItemsRequest.Builder setPageSize(int value)

Optional. The maximum number of section items to return. The service may return fewer than this value.

If unspecified, at most 10 section items will be returned.

The maximum value is 100. If you use a value more than 100, it's automatically changed to 100.

Negative values return an INVALID_ARGUMENT error.

int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
ListSectionItemsRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListSectionItemsRequest.Builder setPageToken(String value)

Optional. A page token, received from a previous list section items call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided should match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
ListSectionItemsRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListSectionItemsRequest.Builder setPageTokenBytes(ByteString value)

Optional. A page token, received from a previous list section items call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided should match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
ListSectionItemsRequest.Builder

This builder for chaining.

setParent(String value)

public ListSectionItemsRequest.Builder setParent(String value)

Required. The parent, which is the section resource name that owns this collection of section items. Only supports listing section items for the calling user.

When you're filtering by space, use the wildcard - to search across all sections. For example, users/{user}/sections/-.

Format: users/{user}/sections/{section}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ListSectionItemsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ListSectionItemsRequest.Builder setParentBytes(ByteString value)

Required. The parent, which is the section resource name that owns this collection of section items. Only supports listing section items for the calling user.

When you're filtering by space, use the wildcard - to search across all sections. For example, users/{user}/sections/-.

Format: users/{user}/sections/{section}

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ListSectionItemsRequest.Builder

This builder for chaining.