Class ListMessagePinsRequest.Builder (0.63.0)

public static final class ListMessagePinsRequest.Builder extends GeneratedMessage.Builder<ListMessagePinsRequest.Builder> implements ListMessagePinsRequestOrBuilder

Request message for listing message pins.

Protobuf type google.chat.v1.ListMessagePinsRequest

Static Methods

getDescriptor()

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

Methods

build()

public ListMessagePinsRequest build()
Returns
Type Description
ListMessagePinsRequest

buildPartial()

public ListMessagePinsRequest buildPartial()
Returns
Type Description
ListMessagePinsRequest

clear()

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

clearPageSize()

public ListMessagePinsRequest.Builder clearPageSize()

Optional. The maximum number of message pins returned. The service might return fewer messages than this value. The maximum value is 100. If you use a value more than 100, it's automatically changed to 100. If unspecified, at most 100 message pins will be returned. Negative values return an INVALID_ARGUMENT error.

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

Returns
Type Description
ListMessagePinsRequest.Builder

This builder for chaining.

clearPageToken()

public ListMessagePinsRequest.Builder clearPageToken()

Optional. A page token received from a previous list message pins call. Provide this parameter 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
ListMessagePinsRequest.Builder

This builder for chaining.

clearParent()

public ListMessagePinsRequest.Builder clearParent()

Required. The parent space which owns the collection of pinned items Format: spaces/{space}

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

Returns
Type Description
ListMessagePinsRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListMessagePinsRequest getDefaultInstanceForType()
Returns
Type Description
ListMessagePinsRequest

getDescriptorForType()

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

getPageSize()

public int getPageSize()

Optional. The maximum number of message pins returned. The service might return fewer messages than this value. The maximum value is 100. If you use a value more than 100, it's automatically changed to 100. If unspecified, at most 100 message pins will be returned. 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 message pins call. Provide this parameter 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 message pins call. Provide this parameter 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 space which owns the collection of pinned items Format: spaces/{space}

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 space which owns the collection of pinned items Format: spaces/{space}

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(ListMessagePinsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setPageSize(int value)

public ListMessagePinsRequest.Builder setPageSize(int value)

Optional. The maximum number of message pins returned. The service might return fewer messages than this value. The maximum value is 100. If you use a value more than 100, it's automatically changed to 100. If unspecified, at most 100 message pins will be returned. 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
ListMessagePinsRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListMessagePinsRequest.Builder setPageToken(String value)

Optional. A page token received from a previous list message pins call. Provide this parameter 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
ListMessagePinsRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListMessagePinsRequest.Builder setPageTokenBytes(ByteString value)

Optional. A page token received from a previous list message pins call. Provide this parameter 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
ListMessagePinsRequest.Builder

This builder for chaining.

setParent(String value)

public ListMessagePinsRequest.Builder setParent(String value)

Required. The parent space which owns the collection of pinned items Format: spaces/{space}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ListMessagePinsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ListMessagePinsRequest.Builder setParentBytes(ByteString value)

Required. The parent space which owns the collection of pinned items Format: spaces/{space}

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
ListMessagePinsRequest.Builder

This builder for chaining.