public static final class Thread.Builder extends GeneratedMessageV3.Builder<Thread.Builder> implements ThreadOrBuilderA thread in a Google Chat space. For example usage, see Start or reply to a message thread.
 If you specify a thread when creating a message, you can set the
 messageReplyOption
 field to determine what happens if no matching thread is found.
 Protobuf type google.chat.v1.Thread
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Thread.BuilderImplements
ThreadOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Thread.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
Thread.Builder | 
        |
build()
public Thread build()| Returns | |
|---|---|
| Type | Description | 
Thread | 
        |
buildPartial()
public Thread buildPartial()| Returns | |
|---|---|
| Type | Description | 
Thread | 
        |
clear()
public Thread.Builder clear()| Returns | |
|---|---|
| Type | Description | 
Thread.Builder | 
        |
clearField(Descriptors.FieldDescriptor field)
public Thread.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
Thread.Builder | 
        |
clearName()
public Thread.Builder clearName()Identifier. Resource name of the thread.
 Example: spaces/{space}/threads/{thread}
 string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description | 
Thread.Builder | 
        This builder for chaining.  | 
      
clearOneof(Descriptors.OneofDescriptor oneof)
public Thread.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
oneof | 
        OneofDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
Thread.Builder | 
        |
clearThreadKey()
public Thread.Builder clearThreadKey()Optional. Input for creating or updating a thread. Otherwise, output only. ID for the thread. Supports up to 4000 characters.
 This ID is unique to the Chat app that sets it. For example, if
 multiple Chat apps create a message using the same thread key,
 the messages are posted in different threads. To reply in a
 thread created by a person or another Chat app, specify the thread name
 field instead.
 string thread_key = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
Thread.Builder | 
        This builder for chaining.  | 
      
clone()
public Thread.Builder clone()| Returns | |
|---|---|
| Type | Description | 
Thread.Builder | 
        |
getDefaultInstanceForType()
public Thread getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
Thread | 
        |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
getName()
public String getName()Identifier. Resource name of the thread.
 Example: spaces/{space}/threads/{thread}
 string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description | 
String | 
        The name.  | 
      
getNameBytes()
public ByteString getNameBytes()Identifier. Resource name of the thread.
 Example: spaces/{space}/threads/{thread}
 string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for name.  | 
      
getThreadKey()
public String getThreadKey()Optional. Input for creating or updating a thread. Otherwise, output only. ID for the thread. Supports up to 4000 characters.
 This ID is unique to the Chat app that sets it. For example, if
 multiple Chat apps create a message using the same thread key,
 the messages are posted in different threads. To reply in a
 thread created by a person or another Chat app, specify the thread name
 field instead.
 string thread_key = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
String | 
        The threadKey.  | 
      
getThreadKeyBytes()
public ByteString getThreadKeyBytes()Optional. Input for creating or updating a thread. Otherwise, output only. ID for the thread. Supports up to 4000 characters.
 This ID is unique to the Chat app that sets it. For example, if
 multiple Chat apps create a message using the same thread key,
 the messages are posted in different threads. To reply in a
 thread created by a person or another Chat app, specify the thread name
 field instead.
 string thread_key = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for threadKey.  | 
      
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
FieldAccessorTable | 
        |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
boolean | 
        |
mergeFrom(Thread other)
public Thread.Builder mergeFrom(Thread other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        Thread | 
      
| Returns | |
|---|---|
| Type | Description | 
Thread.Builder | 
        |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Thread.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
input | 
        CodedInputStream | 
      
extensionRegistry | 
        ExtensionRegistryLite | 
      
| Returns | |
|---|---|
| Type | Description | 
Thread.Builder | 
        |
| Exceptions | |
|---|---|
| Type | Description | 
IOException | 
        |
mergeFrom(Message other)
public Thread.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        Message | 
      
| Returns | |
|---|---|
| Type | Description | 
Thread.Builder | 
        |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Thread.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
Thread.Builder | 
        |
setField(Descriptors.FieldDescriptor field, Object value)
public Thread.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
Thread.Builder | 
        |
setName(String value)
public Thread.Builder setName(String value)Identifier. Resource name of the thread.
 Example: spaces/{space}/threads/{thread}
 string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe name to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Thread.Builder | 
        This builder for chaining.  | 
      
setNameBytes(ByteString value)
public Thread.Builder setNameBytes(ByteString value)Identifier. Resource name of the thread.
 Example: spaces/{space}/threads/{thread}
 string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for name to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Thread.Builder | 
        This builder for chaining.  | 
      
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Thread.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
index | 
        int | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
Thread.Builder | 
        |
setThreadKey(String value)
public Thread.Builder setThreadKey(String value)Optional. Input for creating or updating a thread. Otherwise, output only. ID for the thread. Supports up to 4000 characters.
 This ID is unique to the Chat app that sets it. For example, if
 multiple Chat apps create a message using the same thread key,
 the messages are posted in different threads. To reply in a
 thread created by a person or another Chat app, specify the thread name
 field instead.
 string thread_key = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe threadKey to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Thread.Builder | 
        This builder for chaining.  | 
      
setThreadKeyBytes(ByteString value)
public Thread.Builder setThreadKeyBytes(ByteString value)Optional. Input for creating or updating a thread. Otherwise, output only. ID for the thread. Supports up to 4000 characters.
 This ID is unique to the Chat app that sets it. For example, if
 multiple Chat apps create a message using the same thread key,
 the messages are posted in different threads. To reply in a
 thread created by a person or another Chat app, specify the thread name
 field instead.
 string thread_key = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for threadKey to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Thread.Builder | 
        This builder for chaining.  | 
      
setUnknownFields(UnknownFieldSet unknownFields)
public final Thread.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
Thread.Builder | 
        |