Class AckNackResponse (3.2.0)

public sealed class AckNackResponse

A public representation of a response to an ACKnowledge (ACK) or Not ACKnowledge (NACK) request.

Inheritance

Object > AckNackResponse

Namespace

Google.Cloud.PubSub.V1

Assembly

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
NameDescription
messageIdString

The ID of the message being ACK-ed/NACK-ed.

statusAcknowledgementStatus

The status of ACK/NACK response.

failureMessageString

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
TypeDescription
String

MessageId

public string MessageId { get; }

The ID of the message being ACK-ed or NACK-ed.

Property Value
TypeDescription
String

Status

public AcknowledgementStatus Status { get; }

The status of the ACK/NACK response.

Property Value
TypeDescription
AcknowledgementStatus