Class GetSpaceReadStateRequest.Builder (0.13.0)

public static final class GetSpaceReadStateRequest.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetSpaceReadStateRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GetSpaceReadStateRequest.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public GetSpaceReadStateRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetSpaceReadStateRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GetSpaceReadStateRequest.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetSpaceReadStateRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetSpaceReadStateRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GetSpaceReadStateRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GetSpaceReadStateRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GetSpaceReadStateRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetSpaceReadStateRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetSpaceReadStateRequest.Builder
Overrides