Show / Hide Table of Contents

Class RoomsResource.MessagesRequest

Legacy path for creating message. Calling these will result in a BadRequest response.

Inheritance
System.Object
ClientServiceRequest
ClientServiceRequest<Message>
HangoutsChatBaseServiceRequest<Message>
RoomsResource.MessagesRequest
Implements
IClientServiceRequest<Message>
IClientServiceRequest
Inherited Members
HangoutsChatBaseServiceRequest<Message>.Xgafv
HangoutsChatBaseServiceRequest<Message>.AccessToken
HangoutsChatBaseServiceRequest<Message>.Alt
HangoutsChatBaseServiceRequest<Message>.Callback
HangoutsChatBaseServiceRequest<Message>.Fields
HangoutsChatBaseServiceRequest<Message>.Key
HangoutsChatBaseServiceRequest<Message>.OauthToken
HangoutsChatBaseServiceRequest<Message>.PrettyPrint
HangoutsChatBaseServiceRequest<Message>.QuotaUser
HangoutsChatBaseServiceRequest<Message>.UploadType
HangoutsChatBaseServiceRequest<Message>.UploadProtocol
ClientServiceRequest<Message>.Execute()
ClientServiceRequest<Message>.ExecuteAsStream()
ClientServiceRequest<Message>.ExecuteAsync()
ClientServiceRequest<Message>.ExecuteAsync(CancellationToken)
ClientServiceRequest<Message>.ExecuteAsStreamAsync()
ClientServiceRequest<Message>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<Message>.CreateRequest(Nullable<Boolean>)
ClientServiceRequest<Message>.GenerateRequestUri()
ClientServiceRequest<Message>.GetDefaultETagAction(String)
ClientServiceRequest<Message>.ETagAction
ClientServiceRequest<Message>.ModifyRequest
ClientServiceRequest<Message>.ValidateParameters
ClientServiceRequest<Message>.RequestParameters
ClientServiceRequest<Message>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.HangoutsChat.v1
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class MessagesRequest : HangoutsChatBaseServiceRequest<Message>, IClientServiceRequest<Message>, IClientServiceRequest

Constructors

MessagesRequest(IClientService, Message, String)

Constructs a new Messages request.

Declaration
public MessagesRequest(IClientService service, Message body, string parent)
Parameters
Type Name Description
IClientService service
Message body
System.String parent

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.HangoutsChat.v1.Data.Message>.HttpMethod

MessageId

Optional. A custom name for a Chat message assigned at creation. Must start with client- and contain only lowercase letters, numbers, and hyphens up to 63 characters in length. Specify this field to get, update, or delete the message with the specified value. For example usage, see Name a created message.

Declaration
[RequestParameter("messageId", RequestParameterType.Query)]
public virtual string MessageId { get; set; }
Property Value
Type Description
System.String

MessageReplyOption

Optional. Specifies whether a message starts a thread or replies to one. Only supported in named spaces.

Declaration
[RequestParameter("messageReplyOption", RequestParameterType.Query)]
public virtual RoomsResource.MessagesRequest.MessageReplyOptionEnum? MessageReplyOption { get; set; }
Property Value
Type Description
System.Nullable<RoomsResource.MessagesRequest.MessageReplyOptionEnum>

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.HangoutsChat.v1.Data.Message>.MethodName

Parent

Required. The resource name of the space in which to create a message. Format: spaces/{space}

Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type Description
System.String

RequestId

Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message.

Declaration
[RequestParameter("requestId", RequestParameterType.Query)]
public virtual string RequestId { get; set; }
Property Value
Type Description
System.String

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.HangoutsChat.v1.Data.Message>.RestPath

ThreadKey

Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a threadKey or the thread.name. For example usage, see Start or reply to a message thread.

Declaration
[RequestParameter("threadKey", RequestParameterType.Query)]
public virtual string ThreadKey { get; set; }
Property Value
Type Description
System.String

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
System.Object
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.HangoutsChat.v1.Data.Message>.GetBody()

InitParameters()

Initializes Messages parameter list.

Declaration
protected override void InitParameters()
Overrides
Google.Apis.HangoutsChat.v1.HangoutsChatBaseServiceRequest<Google.Apis.HangoutsChat.v1.Data.Message>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In This Article
Back to top