Class GetSpaceReadStateRequest (0.7.0)

public final class GetSpaceReadStateRequest extends GeneratedMessageV3 implements GetSpaceReadStateRequestOrBuilder

Request message for GetSpaceReadState API.

Protobuf type google.chat.v1.GetSpaceReadStateRequest

Static Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GetSpaceReadStateRequest getDefaultInstance()
Returns
Type Description
GetSpaceReadStateRequest

getDescriptor()

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

newBuilder()

public static GetSpaceReadStateRequest.Builder newBuilder()
Returns
Type Description
GetSpaceReadStateRequest.Builder

newBuilder(GetSpaceReadStateRequest prototype)

public static GetSpaceReadStateRequest.Builder newBuilder(GetSpaceReadStateRequest prototype)
Parameter
Name Description
prototype GetSpaceReadStateRequest
Returns
Type Description
GetSpaceReadStateRequest.Builder

parseDelimitedFrom(InputStream input)

public static GetSpaceReadStateRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GetSpaceReadStateRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GetSpaceReadStateRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GetSpaceReadStateRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static GetSpaceReadStateRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
GetSpaceReadStateRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GetSpaceReadStateRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GetSpaceReadStateRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GetSpaceReadStateRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
GetSpaceReadStateRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GetSpaceReadStateRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GetSpaceReadStateRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GetSpaceReadStateRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GetSpaceReadStateRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GetSpaceReadStateRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GetSpaceReadStateRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static GetSpaceReadStateRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GetSpaceReadStateRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GetSpaceReadStateRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GetSpaceReadStateRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static GetSpaceReadStateRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GetSpaceReadStateRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GetSpaceReadStateRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GetSpaceReadStateRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<GetSpaceReadStateRequest> parser()
Returns
Type Description
Parser<GetSpaceReadStateRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public GetSpaceReadStateRequest getDefaultInstanceForType()
Returns
Type Description
GetSpaceReadStateRequest

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.

getParserForType()

public Parser<GetSpaceReadStateRequest> getParserForType()
Returns
Type Description
Parser<GetSpaceReadStateRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public GetSpaceReadStateRequest.Builder newBuilderForType()
Returns
Type Description
GetSpaceReadStateRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GetSpaceReadStateRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GetSpaceReadStateRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public GetSpaceReadStateRequest.Builder toBuilder()
Returns
Type Description
GetSpaceReadStateRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException