public sealed class AckNackResponseReference documentation and code samples for the Cloud Pub/Sub v1 API 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 |
stringThe ID of the message being ACK-ed/NACK-ed. |
status |
AcknowledgementStatusThe status of ACK/NACK response. |
failureMessage |
stringThe 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 |
|