Class CreateReactionRequest.Builder (0.4.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateReactionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateReactionRequest.Builder
Overrides

build()

public CreateReactionRequest build()
Returns
TypeDescription
CreateReactionRequest

buildPartial()

public CreateReactionRequest buildPartial()
Returns
TypeDescription
CreateReactionRequest

clear()

public CreateReactionRequest.Builder clear()
Returns
TypeDescription
CreateReactionRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateReactionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateReactionRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateReactionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CreateReactionRequest.Builder

clone()

public CreateReactionRequest.Builder clone()
Returns
TypeDescription
CreateReactionRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateReactionRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateReactionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Reaction.Builder

getReactionOrBuilder()

public ReactionOrBuilder getReactionOrBuilder()

Required. The reaction to create.

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

Returns
TypeDescription
ReactionOrBuilder

hasReaction()

public boolean hasReaction()

Required. The reaction to create.

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

Returns
TypeDescription
boolean

Whether the reaction field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateReactionRequest other)

public CreateReactionRequest.Builder mergeFrom(CreateReactionRequest other)
Parameter
NameDescription
otherCreateReactionRequest
Returns
TypeDescription
CreateReactionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateReactionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateReactionRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateReactionRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueReaction
Returns
TypeDescription
CreateReactionRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateReactionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateReactionRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateReactionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
valueReaction
Returns
TypeDescription
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
NameDescription
builderForValueReaction.Builder
Returns
TypeDescription
CreateReactionRequest.Builder

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

public CreateReactionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateReactionRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateReactionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateReactionRequest.Builder
Overrides