public sealed class AckNackResponse
A public representation of a response to an ACKnowledge (ACK) or Not ACKnowledge (NACK) request.
Namespace
Google.Cloud.PubSub.V1Assembly
Google.Cloud.PubSub.V1.dll
Constructors
AckNackResponse(String, AcknowledgementStatus, String)
public AckNackResponse(string messageId, AcknowledgementStatus status, string failureMessage)
Initializes a new instance of the AckNackResponse class.
Parameters | |
---|---|
Name | Description |
messageId | String The ID of the message being ACK-ed/NACK-ed. |
status | AcknowledgementStatus The status of ACK/NACK response. |
failureMessage | String The failure message. This can be null if ACK/NACK is successful. |
Properties
FailureMessage
public string FailureMessage { get; }
The failure message, if any. This will be null if the response is successful.
Property Value | |
---|---|
Type | Description |
String |
MessageId
public string MessageId { get; }
The ID of the message being ACK-ed or NACK-ed.
Property Value | |
---|---|
Type | Description |
String |
Status
public AcknowledgementStatus Status { get; }
The status of the ACK/NACK response.
Property Value | |
---|---|
Type | Description |
AcknowledgementStatus |