public static final class GetThreadReadStateRequest.Builder extends GeneratedMessage.Builder<GetThreadReadStateRequest.Builder> implements GetThreadReadStateRequestOrBuilderRequest message for GetThreadReadStateRequest API.
Protobuf type google.chat.v1.GetThreadReadStateRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GetThreadReadStateRequest.BuilderImplements
GetThreadReadStateRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public GetThreadReadStateRequest build()| Returns | |
|---|---|
| Type | Description |
GetThreadReadStateRequest |
|
buildPartial()
public GetThreadReadStateRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
GetThreadReadStateRequest |
|
clear()
public GetThreadReadStateRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
GetThreadReadStateRequest.Builder |
|
clearName()
public GetThreadReadStateRequest.Builder clearName()Required. Resource name of the thread 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
mealias. For example,users/me/spaces/{space}/threads/{thread}/threadReadState.Their Workspace email address. For example,
users/user@example.com/spaces/{space}/threads/{thread}/threadReadState.Their user id. For example,
users/123456789/spaces/{space}/threads/{thread}/threadReadState.Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
GetThreadReadStateRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public GetThreadReadStateRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GetThreadReadStateRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()Required. Resource name of the thread 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
mealias. For example,users/me/spaces/{space}/threads/{thread}/threadReadState.Their Workspace email address. For example,
users/user@example.com/spaces/{space}/threads/{thread}/threadReadState.Their user id. For example,
users/123456789/spaces/{space}/threads/{thread}/threadReadState.Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState
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 thread 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
mealias. For example,users/me/spaces/{space}/threads/{thread}/threadReadState.Their Workspace email address. For example,
users/user@example.com/spaces/{space}/threads/{thread}/threadReadState.Their user id. For example,
users/123456789/spaces/{space}/threads/{thread}/threadReadState.Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(GetThreadReadStateRequest other)
public GetThreadReadStateRequest.Builder mergeFrom(GetThreadReadStateRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
GetThreadReadStateRequest |
| Returns | |
|---|---|
| Type | Description |
GetThreadReadStateRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GetThreadReadStateRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GetThreadReadStateRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GetThreadReadStateRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GetThreadReadStateRequest.Builder |
|
setName(String value)
public GetThreadReadStateRequest.Builder setName(String value)Required. Resource name of the thread 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
mealias. For example,users/me/spaces/{space}/threads/{thread}/threadReadState.Their Workspace email address. For example,
users/user@example.com/spaces/{space}/threads/{thread}/threadReadState.Their user id. For example,
users/123456789/spaces/{space}/threads/{thread}/threadReadState.Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
GetThreadReadStateRequest.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public GetThreadReadStateRequest.Builder setNameBytes(ByteString value)Required. Resource name of the thread 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
mealias. For example,users/me/spaces/{space}/threads/{thread}/threadReadState.Their Workspace email address. For example,
users/user@example.com/spaces/{space}/threads/{thread}/threadReadState.Their user id. For example,
users/123456789/spaces/{space}/threads/{thread}/threadReadState.Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
GetThreadReadStateRequest.Builder |
This builder for chaining. |