Class GetSpaceReadStateRequest.Builder (0.49.0)

public static final class GetSpaceReadStateRequest.Builder extends GeneratedMessage.Builder<GetSpaceReadStateRequest.Builder> implements GetSpaceReadStateRequestOrBuilder

Request message for GetSpaceReadState API.

Protobuf type google.chat.v1.GetSpaceReadStateRequest

Static Methods

getDescriptor()

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

Methods

build()

public GetSpaceReadStateRequest build()
Returns
Type Description
GetSpaceReadStateRequest

buildPartial()

public GetSpaceReadStateRequest buildPartial()
Returns
Type Description
GetSpaceReadStateRequest

clear()

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

clearName()

public GetSpaceReadStateRequest.Builder clearName()

Required. Resource name of the space read state to retrieve.

Only supports getting read state for the calling user.

To refer to the calling user, set one of the following:

  • The me alias. For example, users/me/spaces/{space}/spaceReadState.

  • Their Workspace email address. For example, users/user@example.com/spaces/{space}/spaceReadState.

  • Their user id. For example, users/123456789/spaces/{space}/spaceReadState.

    Format: users/{user}/spaces/{space}/spaceReadState

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

Returns
Type Description
GetSpaceReadStateRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public GetSpaceReadStateRequest getDefaultInstanceForType()
Returns
Type Description
GetSpaceReadStateRequest

getDescriptorForType()

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

getName()

public String getName()

Required. Resource name of the space read state to retrieve.

Only supports getting read state for the calling user.

To refer to the calling user, set one of the following:

  • The me alias. For example, users/me/spaces/{space}/spaceReadState.

  • Their Workspace email address. For example, users/user@example.com/spaces/{space}/spaceReadState.

  • Their user id. For example, users/123456789/spaces/{space}/spaceReadState.

    Format: users/{user}/spaces/{space}/spaceReadState

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Resource name of the space read state to retrieve.

Only supports getting read state for the calling user.

To refer to the calling user, set one of the following:

  • The me alias. For example, users/me/spaces/{space}/spaceReadState.

  • Their Workspace email address. For example, users/user@example.com/spaces/{space}/spaceReadState.

  • Their user id. For example, users/123456789/spaces/{space}/spaceReadState.

    Format: users/{user}/spaces/{space}/spaceReadState

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetSpaceReadStateRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public GetSpaceReadStateRequest.Builder setName(String value)

Required. Resource name of the space read state to retrieve.

Only supports getting read state for the calling user.

To refer to the calling user, set one of the following:

  • The me alias. For example, users/me/spaces/{space}/spaceReadState.

  • Their Workspace email address. For example, users/user@example.com/spaces/{space}/spaceReadState.

  • Their user id. For example, users/123456789/spaces/{space}/spaceReadState.

    Format: users/{user}/spaces/{space}/spaceReadState

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetSpaceReadStateRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetSpaceReadStateRequest.Builder setNameBytes(ByteString value)

Required. Resource name of the space read state to retrieve.

Only supports getting read state for the calling user.

To refer to the calling user, set one of the following:

  • The me alias. For example, users/me/spaces/{space}/spaceReadState.

  • Their Workspace email address. For example, users/user@example.com/spaces/{space}/spaceReadState.

  • Their user id. For example, users/123456789/spaces/{space}/spaceReadState.

    Format: users/{user}/spaces/{space}/spaceReadState

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetSpaceReadStateRequest.Builder

This builder for chaining.