Class ProjectsResource.SubscriptionsResource.AcknowledgeRequest
Acknowledges the messages associated with the ack_ids
in the AcknowledgeRequest
. The Pub/Sub system
can remove the relevant messages from the subscription. Acknowledging a message whose ack deadline has
expired may succeed, but such a message may be redelivered later. Acknowledging a message more than once
will not result in an error.
Inheritance
ProjectsResource.SubscriptionsResource.AcknowledgeRequest
Inherited Members
Namespace: Google.Apis.Pubsub.v1
Assembly: Google.Apis.Pubsub.v1.dll
Syntax
public class ProjectsResource.SubscriptionsResource.AcknowledgeRequest : PubsubBaseServiceRequest<Empty>, IClientServiceRequest<Empty>, IClientServiceRequest
Constructors
AcknowledgeRequest(IClientService, AcknowledgeRequest, string)
Constructs a new Acknowledge request.
Declaration
public AcknowledgeRequest(IClientService service, AcknowledgeRequest body, string subscription)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
AcknowledgeRequest | body | |
string | subscription |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Subscription
Required. The subscription whose message is being acknowledged. Format is
projects/{project}/subscriptions/{sub}
.
Declaration
[RequestParameter("subscription", RequestParameterType.Path)]
public virtual string Subscription { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Acknowledge parameter list.
Declaration
protected override void InitParameters()