Class ProjectsResource.SubscriptionsResource.PullRequest
Pulls messages from the server. Returns an empty list if there are no messages available in the backlog.
The server may return UNAVAILABLE if there are too many concurrent pull requests pending for the given
subscription.
Inheritance
ProjectsResource.SubscriptionsResource.PullRequest
Inherited Members
Namespace: Google.Apis.Pubsub.v1beta2
Assembly: Google.Apis.Pubsub.v1beta2.dll
Syntax
public class ProjectsResource.SubscriptionsResource.PullRequest : PubsubBaseServiceRequest<PullResponse>, IClientServiceRequest<PullResponse>, IClientServiceRequest
Constructors
PullRequest(IClientService, PullRequest, string)
Constructs a new Pull request.
Declaration
public PullRequest(IClientService service, PullRequest body, string subscription)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| PullRequest | 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
The subscription from which messages should be pulled.
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 Pull parameter list.
Declaration
protected override void InitParameters()