public static final class SpaceReadState.Builder extends GeneratedMessage.Builder<SpaceReadState.Builder> implements SpaceReadStateOrBuilderA user's read state within a space, used to identify read and unread messages.
Protobuf type google.chat.v1.SpaceReadState
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SpaceReadState.BuilderImplements
SpaceReadStateOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public SpaceReadState build()| Returns | |
|---|---|
| Type | Description |
SpaceReadState |
|
buildPartial()
public SpaceReadState buildPartial()| Returns | |
|---|---|
| Type | Description |
SpaceReadState |
|
clear()
public SpaceReadState.Builder clear()| Returns | |
|---|---|
| Type | Description |
SpaceReadState.Builder |
|
clearLastReadTime()
public SpaceReadState.Builder clearLastReadTime()Optional. The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read position in a space.
.google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SpaceReadState.Builder |
|
clearName()
public SpaceReadState.Builder clearName()Resource name of the space read state.
Format: users/{user}/spaces/{space}/spaceReadState
string name = 1;
| Returns | |
|---|---|
| Type | Description |
SpaceReadState.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public SpaceReadState getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SpaceReadState |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLastReadTime()
public Timestamp getLastReadTime()Optional. The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read position in a space.
.google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The lastReadTime. |
getLastReadTimeBuilder()
public Timestamp.Builder getLastReadTimeBuilder()Optional. The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read position in a space.
.google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getLastReadTimeOrBuilder()
public TimestampOrBuilder getLastReadTimeOrBuilder()Optional. The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read position in a space.
.google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getName()
public String getName()Resource name of the space read state.
Format: users/{user}/spaces/{space}/spaceReadState
string name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Resource name of the space read state.
Format: users/{user}/spaces/{space}/spaceReadState
string name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
hasLastReadTime()
public boolean hasLastReadTime()Optional. The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read position in a space.
.google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the lastReadTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SpaceReadState other)
public SpaceReadState.Builder mergeFrom(SpaceReadState other)| Parameter | |
|---|---|
| Name | Description |
other |
SpaceReadState |
| Returns | |
|---|---|
| Type | Description |
SpaceReadState.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SpaceReadState.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SpaceReadState.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SpaceReadState.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SpaceReadState.Builder |
|
mergeLastReadTime(Timestamp value)
public SpaceReadState.Builder mergeLastReadTime(Timestamp value)Optional. The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read position in a space.
.google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
SpaceReadState.Builder |
|
setLastReadTime(Timestamp value)
public SpaceReadState.Builder setLastReadTime(Timestamp value)Optional. The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read position in a space.
.google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
SpaceReadState.Builder |
|
setLastReadTime(Timestamp.Builder builderForValue)
public SpaceReadState.Builder setLastReadTime(Timestamp.Builder builderForValue)Optional. The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read position in a space.
.google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
SpaceReadState.Builder |
|
setName(String value)
public SpaceReadState.Builder setName(String value)Resource name of the space read state.
Format: users/{user}/spaces/{space}/spaceReadState
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
SpaceReadState.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public SpaceReadState.Builder setNameBytes(ByteString value)Resource name of the space read state.
Format: users/{user}/spaces/{space}/spaceReadState
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
SpaceReadState.Builder |
This builder for chaining. |