All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.chat.v1.HangoutsChat.Spaces.Messages.Update.html Maven / Gradle / Ivy

There is a newer version: v1-rev20241217-2.0.0
Show newest version






HangoutsChat.Spaces.Messages.Update (Google Chat API v1-rev20240829-2.0.0)












com.google.api.services.chat.v1

Class HangoutsChat.Spaces.Messages.Update

    • Constructor Detail

      • Update

        protected Update(String name,
                         Message content)
        Updates a message. There's a difference between the `patch` and `update` methods. The `patch` method uses a `patch` request while the `update` method uses a `put` request. We recommend using the `patch` method. For an example, see [Update a message](https://developers.google.com/workspace/chat/update-messages). Requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat- app) and [user authentication](https://developers.google.com/workspace/chat/authenticate- authorize-chat-user). When using app authentication, requests can only update messages created by the calling Chat app. Create a request for the method "messages.update". This request holds the parameters needed by the the chat server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

        HangoutsChat.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be called to initialize this instance immediately after invoking the constructor.

        Parameters:
        name - Resource name of the message. Format: `spaces/{space}/messages/{message}` Where `{space}` is the ID of the space where the message is posted and `{message}` is a system-assigned ID for the message. For example, `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`. If you set a custom ID when you create a message, you can use this ID to specify the message in a request by replacing `{message}` with the value from the `clientAssignedMessageId` field. For example, `spaces/AAAAAAAAAAA/messages/client-custom-name`. For details, see [Name a message](https://developers.google.com/workspace/chat/create- messages#name_a_created_message).
        content - the Message
        Since:
        1.13

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy