Class CreateReactionRequest.Builder (0.7.0)

public static final class CreateReactionRequest.Builder extends GeneratedMessageV3.Builder<CreateReactionRequest.Builder> implements CreateReactionRequestOrBuilder

Creates a reaction to a message.

Protobuf type google.chat.v1.CreateReactionRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateReactionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateReactionRequest.Builder
Overrides

build()

public CreateReactionRequest build()
Returns
Type Description
CreateReactionRequest

buildPartial()

public CreateReactionRequest buildPartial()
Returns
Type Description
CreateReactionRequest

clear()

public CreateReactionRequest.Builder clear()
Returns
Type Description
CreateReactionRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateReactionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateReactionRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateReactionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateReactionRequest.Builder
Overrides

clearParent()

public CreateReactionRequest.Builder clearParent()

Required. The message where the reaction is created.

Format: spaces/{space}/messages/{message}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateReactionRequest.Builder

This builder for chaining.

clearReaction()

public CreateReactionRequest.Builder clearReaction()

Required. The reaction to create.

.google.chat.v1.Reaction reaction = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateReactionRequest.Builder

clone()

public CreateReactionRequest.Builder clone()
Returns
Type Description
CreateReactionRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateReactionRequest getDefaultInstanceForType()
Returns
Type Description
CreateReactionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public String getParent()

Required. The message where the reaction is created.

Format: spaces/{space}/messages/{message}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The message where the reaction is created.

Format: spaces/{space}/messages/{message}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getReaction()

public Reaction getReaction()

Required. The reaction to create.

.google.chat.v1.Reaction reaction = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Reaction

The reaction.

getReactionBuilder()

public Reaction.Builder getReactionBuilder()

Required. The reaction to create.

.google.chat.v1.Reaction reaction = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Reaction.Builder

getReactionOrBuilder()

public ReactionOrBuilder getReactionOrBuilder()

Required. The reaction to create.

.google.chat.v1.Reaction reaction = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ReactionOrBuilder

hasReaction()

public boolean hasReaction()

Required. The reaction to create.

.google.chat.v1.Reaction reaction = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the reaction field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateReactionRequest other)

public CreateReactionRequest.Builder mergeFrom(CreateReactionRequest other)
Parameter
Name Description
other CreateReactionRequest
Returns
Type Description
CreateReactionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateReactionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateReactionRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateReactionRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateReactionRequest.Builder
Overrides

mergeReaction(Reaction value)

public CreateReactionRequest.Builder mergeReaction(Reaction value)

Required. The reaction to create.

.google.chat.v1.Reaction reaction = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Reaction
Returns
Type Description
CreateReactionRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateReactionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateReactionRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateReactionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateReactionRequest.Builder
Overrides

setParent(String value)

public CreateReactionRequest.Builder setParent(String value)

Required. The message where the reaction is created.

Format: spaces/{space}/messages/{message}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateReactionRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateReactionRequest.Builder setParentBytes(ByteString value)

Required. The message where the reaction is created.

Format: spaces/{space}/messages/{message}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateReactionRequest.Builder

This builder for chaining.

setReaction(Reaction value)

public CreateReactionRequest.Builder setReaction(Reaction value)

Required. The reaction to create.

.google.chat.v1.Reaction reaction = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Reaction
Returns
Type Description
CreateReactionRequest.Builder

setReaction(Reaction.Builder builderForValue)

public CreateReactionRequest.Builder setReaction(Reaction.Builder builderForValue)

Required. The reaction to create.

.google.chat.v1.Reaction reaction = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Reaction.Builder
Returns
Type Description
CreateReactionRequest.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateReactionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateReactionRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateReactionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateReactionRequest.Builder
Overrides