Cloud Pub/Sub v1 API - Class AckNackResponse (3.16.0)

public sealed class AckNackResponse

Reference 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.

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