Cloud Pub/Sub v1 API - Class AckNackResponse (3.10.0-beta01)

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