public static final class DeleteMessageRequest.Builder extends GeneratedMessageV3.Builder<DeleteMessageRequest.Builder> implements DeleteMessageRequestOrBuilder
Request to delete a message.
Protobuf type google.chat.v1.DeleteMessageRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DeleteMessageRequest.BuilderImplements
DeleteMessageRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DeleteMessageRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
DeleteMessageRequest.Builder |
build()
public DeleteMessageRequest build()
Returns | |
---|---|
Type | Description |
DeleteMessageRequest |
buildPartial()
public DeleteMessageRequest buildPartial()
Returns | |
---|---|
Type | Description |
DeleteMessageRequest |
clear()
public DeleteMessageRequest.Builder clear()
Returns | |
---|---|
Type | Description |
DeleteMessageRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public DeleteMessageRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
DeleteMessageRequest.Builder |
clearForce()
public DeleteMessageRequest.Builder clearForce()
Optional. When true
, deleting a message also deletes its threaded
replies. When false
, if a message has threaded replies, deletion fails.
Only applies when authenticating as a user. Has no effect when authenticating as a Chat app.
bool force = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
DeleteMessageRequest.Builder |
This builder for chaining. |
clearName()
public DeleteMessageRequest.Builder clearName()
Required. Resource name of the message.
Format: spaces/{space}/messages/{message}
If you've set a custom ID for your message, you can use the value from the
clientAssignedMessageId
field for {message}
. For details, see Name a
message.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
DeleteMessageRequest.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public DeleteMessageRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
DeleteMessageRequest.Builder |
clone()
public DeleteMessageRequest.Builder clone()
Returns | |
---|---|
Type | Description |
DeleteMessageRequest.Builder |
getDefaultInstanceForType()
public DeleteMessageRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
DeleteMessageRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getForce()
public boolean getForce()
Optional. When true
, deleting a message also deletes its threaded
replies. When false
, if a message has threaded replies, deletion fails.
Only applies when authenticating as a user. Has no effect when authenticating as a Chat app.
bool force = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
The force. |
getName()
public String getName()
Required. Resource name of the message.
Format: spaces/{space}/messages/{message}
If you've set a custom ID for your message, you can use the value from the
clientAssignedMessageId
field for {message}
. For details, see Name a
message.
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 message.
Format: spaces/{space}/messages/{message}
If you've set a custom ID for your message, you can use the value from the
clientAssignedMessageId
field for {message}
. For details, see Name a
message.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(DeleteMessageRequest other)
public DeleteMessageRequest.Builder mergeFrom(DeleteMessageRequest other)
Parameter | |
---|---|
Name | Description |
other |
DeleteMessageRequest |
Returns | |
---|---|
Type | Description |
DeleteMessageRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DeleteMessageRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DeleteMessageRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public DeleteMessageRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
DeleteMessageRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DeleteMessageRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DeleteMessageRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public DeleteMessageRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
DeleteMessageRequest.Builder |
setForce(boolean value)
public DeleteMessageRequest.Builder setForce(boolean value)
Optional. When true
, deleting a message also deletes its threaded
replies. When false
, if a message has threaded replies, deletion fails.
Only applies when authenticating as a user. Has no effect when authenticating as a Chat app.
bool force = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
boolean The force to set. |
Returns | |
---|---|
Type | Description |
DeleteMessageRequest.Builder |
This builder for chaining. |
setName(String value)
public DeleteMessageRequest.Builder setName(String value)
Required. Resource name of the message.
Format: spaces/{space}/messages/{message}
If you've set a custom ID for your message, you can use the value from the
clientAssignedMessageId
field for {message}
. For details, see Name a
message.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
DeleteMessageRequest.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public DeleteMessageRequest.Builder setNameBytes(ByteString value)
Required. Resource name of the message.
Format: spaces/{space}/messages/{message}
If you've set a custom ID for your message, you can use the value from the
clientAssignedMessageId
field for {message}
. For details, see Name a
message.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
DeleteMessageRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DeleteMessageRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
DeleteMessageRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final DeleteMessageRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DeleteMessageRequest.Builder |