Class TopicsResource.PublishRequest
Adds a message to the topic. Returns NOT_FOUND if the topic does not exist.
Inheritance
TopicsResource.PublishRequest
Inherited Members
Namespace: Google.Apis.Pubsub.v1beta1a
Assembly: Google.Apis.Pubsub.v1beta1a.dll
Syntax
public class TopicsResource.PublishRequest : PubsubBaseServiceRequest<Empty>, IClientServiceRequest<Empty>, IClientServiceRequest
Constructors
PublishRequest(IClientService, PublishRequest)
Constructs a new Publish request.
Declaration
public PublishRequest(IClientService service, PublishRequest body)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
PublishRequest | body |
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
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Publish parameter list.
Declaration
protected override void InitParameters()