public static final class SpaceReadState.Builder extends GeneratedMessageV3.Builder<SpaceReadState.Builder> implements SpaceReadStateOrBuilder
A user's read state within a space, used to identify read and unread
messages.
Protobuf type google.chat.v1.SpaceReadState
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SpaceReadState.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SpaceReadState build()
buildPartial()
public SpaceReadState buildPartial()
clear()
public SpaceReadState.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public SpaceReadState.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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];
clearName()
public SpaceReadState.Builder clearName()
Resource name of the space read state.
Format: users/{user}/spaces/{space}/spaceReadState
string name = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public SpaceReadState.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public SpaceReadState.Builder clone()
Overrides
getDefaultInstanceForType()
public SpaceReadState getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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];
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];
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SpaceReadState other)
public SpaceReadState.Builder mergeFrom(SpaceReadState other)
public SpaceReadState.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SpaceReadState.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
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];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SpaceReadState.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SpaceReadState.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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];
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
|
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 |
String
The name to set.
|
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 |
ByteString
The bytes for name to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SpaceReadState.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SpaceReadState.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides