Class UpdateSpaceReadStateRequest.Builder (0.12.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticfinalclass UpdateSpaceReadStateRequest.BuilderextendsGeneratedMessageV3.Builder<UpdateSpaceReadStateRequest.Builder>implementsUpdateSpaceReadStateRequestOrBuilderRequest message for UpdateSpaceReadState API.
Protobuf type google.chat.v1.UpdateSpaceReadStateRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > UpdateSpaceReadStateRequest.BuilderImplements
UpdateSpaceReadStateRequestOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicUpdateSpaceReadStateRequest.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
UpdateSpaceReadStateRequest.Builder |
|
build()
publicUpdateSpaceReadStateRequestbuild()| Returns | |
|---|---|
| Type | Description |
UpdateSpaceReadStateRequest |
|
buildPartial()
publicUpdateSpaceReadStateRequestbuildPartial()| Returns | |
|---|---|
| Type | Description |
UpdateSpaceReadStateRequest |
|
clear()
publicUpdateSpaceReadStateRequest.Builderclear()| Returns | |
|---|---|
| Type | Description |
UpdateSpaceReadStateRequest.Builder |
|
clearField(Descriptors.FieldDescriptor field)
publicUpdateSpaceReadStateRequest.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
UpdateSpaceReadStateRequest.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
publicUpdateSpaceReadStateRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
UpdateSpaceReadStateRequest.Builder |
|
clearSpaceReadState()
publicUpdateSpaceReadStateRequest.BuilderclearSpaceReadState()Required. The space read state and fields to update.
Only supports updating read state for the calling user.
To refer to the calling user, set one of the following:
The
mealias. 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
.google.chat.v1.SpaceReadState space_read_state = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
UpdateSpaceReadStateRequest.Builder |
|
clearUpdateMask()
publicUpdateSpaceReadStateRequest.BuilderclearUpdateMask()Required. The field paths to update. Currently supported field paths:
last_read_timeWhen the
last_read_timeis before the latest message create time, the space appears as unread in the UI.To mark the space as read, set
last_read_timeto any value later (larger) than the latest message create time. Thelast_read_timeis coerced to match the latest message create time. Note that the space read state only affects the read state of messages that are visible in the space's top-level conversation. Replies in threads are unaffected by this timestamp, and instead rely on the thread read state.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
UpdateSpaceReadStateRequest.Builder |
|
clone()
publicUpdateSpaceReadStateRequest.Builderclone()| Returns | |
|---|---|
| Type | Description |
UpdateSpaceReadStateRequest.Builder |
|
getDefaultInstanceForType()
publicUpdateSpaceReadStateRequestgetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
UpdateSpaceReadStateRequest |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getSpaceReadState()
publicSpaceReadStategetSpaceReadState()Required. The space read state and fields to update.
Only supports updating read state for the calling user.
To refer to the calling user, set one of the following:
The
mealias. 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
.google.chat.v1.SpaceReadState space_read_state = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SpaceReadState |
The spaceReadState. |
getSpaceReadStateBuilder()
publicSpaceReadState.BuildergetSpaceReadStateBuilder()Required. The space read state and fields to update.
Only supports updating read state for the calling user.
To refer to the calling user, set one of the following:
The
mealias. 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
.google.chat.v1.SpaceReadState space_read_state = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SpaceReadState.Builder |
|
getSpaceReadStateOrBuilder()
publicSpaceReadStateOrBuildergetSpaceReadStateOrBuilder()Required. The space read state and fields to update.
Only supports updating read state for the calling user.
To refer to the calling user, set one of the following:
The
mealias. 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
.google.chat.v1.SpaceReadState space_read_state = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SpaceReadStateOrBuilder |
|
getUpdateMask()
publicFieldMaskgetUpdateMask()Required. The field paths to update. Currently supported field paths:
last_read_timeWhen the
last_read_timeis before the latest message create time, the space appears as unread in the UI.To mark the space as read, set
last_read_timeto any value later (larger) than the latest message create time. Thelast_read_timeis coerced to match the latest message create time. Note that the space read state only affects the read state of messages that are visible in the space's top-level conversation. Replies in threads are unaffected by this timestamp, and instead rely on the thread read state.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
FieldMask |
The updateMask. |
getUpdateMaskBuilder()
publicFieldMask.BuildergetUpdateMaskBuilder()Required. The field paths to update. Currently supported field paths:
last_read_timeWhen the
last_read_timeis before the latest message create time, the space appears as unread in the UI.To mark the space as read, set
last_read_timeto any value later (larger) than the latest message create time. Thelast_read_timeis coerced to match the latest message create time. Note that the space read state only affects the read state of messages that are visible in the space's top-level conversation. Replies in threads are unaffected by this timestamp, and instead rely on the thread read state.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getUpdateMaskOrBuilder()
publicFieldMaskOrBuildergetUpdateMaskOrBuilder()Required. The field paths to update. Currently supported field paths:
last_read_timeWhen the
last_read_timeis before the latest message create time, the space appears as unread in the UI.To mark the space as read, set
last_read_timeto any value later (larger) than the latest message create time. Thelast_read_timeis coerced to match the latest message create time. Note that the space read state only affects the read state of messages that are visible in the space's top-level conversation. Replies in threads are unaffected by this timestamp, and instead rely on the thread read state.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
FieldMaskOrBuilder |
|
hasSpaceReadState()
publicbooleanhasSpaceReadState()Required. The space read state and fields to update.
Only supports updating read state for the calling user.
To refer to the calling user, set one of the following:
The
mealias. 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
.google.chat.v1.SpaceReadState space_read_state = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the spaceReadState field is set. |
hasUpdateMask()
publicbooleanhasUpdateMask()Required. The field paths to update. Currently supported field paths:
last_read_timeWhen the
last_read_timeis before the latest message create time, the space appears as unread in the UI.To mark the space as read, set
last_read_timeto any value later (larger) than the latest message create time. Thelast_read_timeis coerced to match the latest message create time. Note that the space read state only affects the read state of messages that are visible in the space's top-level conversation. Replies in threads are unaffected by this timestamp, and instead rely on the thread read state.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the updateMask field is set. |
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(UpdateSpaceReadStateRequest other)
publicUpdateSpaceReadStateRequest.BuildermergeFrom(UpdateSpaceReadStateRequestother)| Parameter | |
|---|---|
| Name | Description |
other |
UpdateSpaceReadStateRequest |
| Returns | |
|---|---|
| Type | Description |
UpdateSpaceReadStateRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicUpdateSpaceReadStateRequest.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
UpdateSpaceReadStateRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicUpdateSpaceReadStateRequest.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
UpdateSpaceReadStateRequest.Builder |
|
mergeSpaceReadState(SpaceReadState value)
publicUpdateSpaceReadStateRequest.BuildermergeSpaceReadState(SpaceReadStatevalue)Required. The space read state and fields to update.
Only supports updating read state for the calling user.
To refer to the calling user, set one of the following:
The
mealias. 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
.google.chat.v1.SpaceReadState space_read_state = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
SpaceReadState |
| Returns | |
|---|---|
| Type | Description |
UpdateSpaceReadStateRequest.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalUpdateSpaceReadStateRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
UpdateSpaceReadStateRequest.Builder |
|
mergeUpdateMask(FieldMask value)
publicUpdateSpaceReadStateRequest.BuildermergeUpdateMask(FieldMaskvalue)Required. The field paths to update. Currently supported field paths:
last_read_timeWhen the
last_read_timeis before the latest message create time, the space appears as unread in the UI.To mark the space as read, set
last_read_timeto any value later (larger) than the latest message create time. Thelast_read_timeis coerced to match the latest message create time. Note that the space read state only affects the read state of messages that are visible in the space's top-level conversation. Replies in threads are unaffected by this timestamp, and instead rely on the thread read state.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
FieldMask |
| Returns | |
|---|---|
| Type | Description |
UpdateSpaceReadStateRequest.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
publicUpdateSpaceReadStateRequest.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
UpdateSpaceReadStateRequest.Builder |
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicUpdateSpaceReadStateRequest.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
UpdateSpaceReadStateRequest.Builder |
|
setSpaceReadState(SpaceReadState value)
publicUpdateSpaceReadStateRequest.BuildersetSpaceReadState(SpaceReadStatevalue)Required. The space read state and fields to update.
Only supports updating read state for the calling user.
To refer to the calling user, set one of the following:
The
mealias. 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
.google.chat.v1.SpaceReadState space_read_state = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
SpaceReadState |
| Returns | |
|---|---|
| Type | Description |
UpdateSpaceReadStateRequest.Builder |
|
setSpaceReadState(SpaceReadState.Builder builderForValue)
publicUpdateSpaceReadStateRequest.BuildersetSpaceReadState(SpaceReadState.BuilderbuilderForValue)Required. The space read state and fields to update.
Only supports updating read state for the calling user.
To refer to the calling user, set one of the following:
The
mealias. 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
.google.chat.v1.SpaceReadState space_read_state = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SpaceReadState.Builder |
| Returns | |
|---|---|
| Type | Description |
UpdateSpaceReadStateRequest.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalUpdateSpaceReadStateRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
UpdateSpaceReadStateRequest.Builder |
|
setUpdateMask(FieldMask value)
publicUpdateSpaceReadStateRequest.BuildersetUpdateMask(FieldMaskvalue)Required. The field paths to update. Currently supported field paths:
last_read_timeWhen the
last_read_timeis before the latest message create time, the space appears as unread in the UI.To mark the space as read, set
last_read_timeto any value later (larger) than the latest message create time. Thelast_read_timeis coerced to match the latest message create time. Note that the space read state only affects the read state of messages that are visible in the space's top-level conversation. Replies in threads are unaffected by this timestamp, and instead rely on the thread read state.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
FieldMask |
| Returns | |
|---|---|
| Type | Description |
UpdateSpaceReadStateRequest.Builder |
|
setUpdateMask(FieldMask.Builder builderForValue)
publicUpdateSpaceReadStateRequest.BuildersetUpdateMask(FieldMask.BuilderbuilderForValue)Required. The field paths to update. Currently supported field paths:
last_read_timeWhen the
last_read_timeis before the latest message create time, the space appears as unread in the UI.To mark the space as read, set
last_read_timeto any value later (larger) than the latest message create time. Thelast_read_timeis coerced to match the latest message create time. Note that the space read state only affects the read state of messages that are visible in the space's top-level conversation. Replies in threads are unaffected by this timestamp, and instead rely on the thread read state.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
UpdateSpaceReadStateRequest.Builder |
|