public static final class ListSectionsRequest.Builder extends GeneratedMessage.Builder<ListSectionsRequest.Builder> implements ListSectionsRequestOrBuilderRequest message for listing sections.
Protobuf type google.chat.v1.ListSectionsRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ListSectionsRequest.BuilderImplements
ListSectionsRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ListSectionsRequest build()| Returns | |
|---|---|
| Type | Description |
ListSectionsRequest |
|
buildPartial()
public ListSectionsRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
ListSectionsRequest |
|
clear()
public ListSectionsRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
ListSectionsRequest.Builder |
|
clearPageSize()
public ListSectionsRequest.Builder clearPageSize()Optional. The maximum number of sections to return. The service may return fewer than this value.
If unspecified, at most 10 sections 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 |
ListSectionsRequest.Builder |
This builder for chaining. |
clearPageToken()
public ListSectionsRequest.Builder clearPageToken()Optional. A page token, received from a previous list sections 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 |
ListSectionsRequest.Builder |
This builder for chaining. |
clearParent()
public ListSectionsRequest.Builder clearParent()Required. The parent, which is the user resource name that owns this collection of sections. Only supports listing sections for the calling user. To refer to the calling user, set one of the following:
The
mealias. For example,users/me.Their Workspace email address. For example,
users/user@example.com.Their user id. For example,
users/123456789.Format:
users/{user}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ListSectionsRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ListSectionsRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ListSectionsRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPageSize()
public int getPageSize()Optional. The maximum number of sections to return. The service may return fewer than this value.
If unspecified, at most 10 sections 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 sections 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 sections 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 user resource name that owns this collection of sections. Only supports listing sections for the calling user. To refer to the calling user, set one of the following:
The
mealias. For example,users/me.Their Workspace email address. For example,
users/user@example.com.Their user id. For example,
users/123456789.Format:
users/{user}
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 user resource name that owns this collection of sections. Only supports listing sections for the calling user. To refer to the calling user, set one of the following:
The
mealias. For example,users/me.Their Workspace email address. For example,
users/user@example.com.Their user id. For example,
users/123456789.Format:
users/{user}
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ListSectionsRequest other)
public ListSectionsRequest.Builder mergeFrom(ListSectionsRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
ListSectionsRequest |
| Returns | |
|---|---|
| Type | Description |
ListSectionsRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ListSectionsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ListSectionsRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ListSectionsRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ListSectionsRequest.Builder |
|
setPageSize(int value)
public ListSectionsRequest.Builder setPageSize(int value)Optional. The maximum number of sections to return. The service may return fewer than this value.
If unspecified, at most 10 sections 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 |
intThe pageSize to set. |
| Returns | |
|---|---|
| Type | Description |
ListSectionsRequest.Builder |
This builder for chaining. |
setPageToken(String value)
public ListSectionsRequest.Builder setPageToken(String value)Optional. A page token, received from a previous list sections 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 |
StringThe pageToken to set. |
| Returns | |
|---|---|
| Type | Description |
ListSectionsRequest.Builder |
This builder for chaining. |
setPageTokenBytes(ByteString value)
public ListSectionsRequest.Builder setPageTokenBytes(ByteString value)Optional. A page token, received from a previous list sections 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 |
ByteStringThe bytes for pageToken to set. |
| Returns | |
|---|---|
| Type | Description |
ListSectionsRequest.Builder |
This builder for chaining. |
setParent(String value)
public ListSectionsRequest.Builder setParent(String value)Required. The parent, which is the user resource name that owns this collection of sections. Only supports listing sections for the calling user. To refer to the calling user, set one of the following:
The
mealias. For example,users/me.Their Workspace email address. For example,
users/user@example.com.Their user id. For example,
users/123456789.Format:
users/{user}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
ListSectionsRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public ListSectionsRequest.Builder setParentBytes(ByteString value)Required. The parent, which is the user resource name that owns this collection of sections. Only supports listing sections for the calling user. To refer to the calling user, set one of the following:
The
mealias. For example,users/me.Their Workspace email address. For example,
users/user@example.com.Their user id. For example,
users/123456789.Format:
users/{user}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
ListSectionsRequest.Builder |
This builder for chaining. |