public final class UpdateMessageRequest extends GeneratedMessageV3 implements UpdateMessageRequestOrBuilder
Protobuf type google.chat.v1.UpdateMessageRequest
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > UpdateMessageRequestImplements
UpdateMessageRequestOrBuilderStatic Fields
ALLOW_MISSING_FIELD_NUMBER
public static final int ALLOW_MISSING_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
MESSAGE_FIELD_NUMBER
public static final int MESSAGE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
UPDATE_MASK_FIELD_NUMBER
public static final int UPDATE_MASK_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static UpdateMessageRequest getDefaultInstance()
Returns | |
---|---|
Type | Description |
UpdateMessageRequest |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static UpdateMessageRequest.Builder newBuilder()
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
newBuilder(UpdateMessageRequest prototype)
public static UpdateMessageRequest.Builder newBuilder(UpdateMessageRequest prototype)
Parameter | |
---|---|
Name | Description |
prototype | UpdateMessageRequest |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
parseDelimitedFrom(InputStream input)
public static UpdateMessageRequest parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input | InputStream |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static UpdateMessageRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static UpdateMessageRequest parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data | byte[] |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static UpdateMessageRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static UpdateMessageRequest parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data | ByteString |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static UpdateMessageRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static UpdateMessageRequest parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input | CodedInputStream |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static UpdateMessageRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static UpdateMessageRequest parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input | InputStream |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static UpdateMessageRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static UpdateMessageRequest parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data | ByteBuffer |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static UpdateMessageRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<UpdateMessageRequest> parser()
Returns | |
---|---|
Type | Description |
Parser<UpdateMessageRequest> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj | Object |
Returns | |
---|---|
Type | Description |
boolean |
getAllowMissing()
public boolean getAllowMissing()
Optional. If true
and the message isn't found, a new message is created
and updateMask
is ignored. The specified message ID must be
client-assigned
or the request fails.
bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean | The allowMissing. |
getDefaultInstanceForType()
public UpdateMessageRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
UpdateMessageRequest |
getMessage()
public Message getMessage()
Required. Message with fields updated.
.google.chat.v1.Message message = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Message | The message. |
getMessageOrBuilder()
public MessageOrBuilder getMessageOrBuilder()
Required. Message with fields updated.
.google.chat.v1.Message message = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
MessageOrBuilder |
getParserForType()
public Parser<UpdateMessageRequest> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<UpdateMessageRequest> |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
getUpdateMask()
public FieldMask getUpdateMask()
Required. The field paths to update. Separate multiple values with commas
or use *
to update all field paths.
Currently supported field paths:
text
attachment
cards
(Requires app authentication.)cards_v2
(Requires app authentication.)accessory_widgets
(Requires app authentication.)
.google.protobuf.FieldMask update_mask = 2;
Returns | |
---|---|
Type | Description |
FieldMask | The updateMask. |
getUpdateMaskOrBuilder()
public FieldMaskOrBuilder getUpdateMaskOrBuilder()
Required. The field paths to update. Separate multiple values with commas
or use *
to update all field paths.
Currently supported field paths:
text
attachment
cards
(Requires app authentication.)cards_v2
(Requires app authentication.)accessory_widgets
(Requires app authentication.)
.google.protobuf.FieldMask update_mask = 2;
Returns | |
---|---|
Type | Description |
FieldMaskOrBuilder |
hasMessage()
public boolean hasMessage()
Required. Message with fields updated.
.google.chat.v1.Message message = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean | Whether the message field is set. |
hasUpdateMask()
public boolean hasUpdateMask()
Required. The field paths to update. Separate multiple values with commas
or use *
to update all field paths.
Currently supported field paths:
text
attachment
cards
(Requires app authentication.)cards_v2
(Requires app authentication.)accessory_widgets
(Requires app authentication.)
.google.protobuf.FieldMask update_mask = 2;
Returns | |
---|---|
Type | Description |
boolean | Whether the updateMask field is set. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public UpdateMessageRequest.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected UpdateMessageRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent | BuilderParent |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused | UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public UpdateMessageRequest.Builder toBuilder()
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output | CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |