Class ProjectsResource.TopicsResource.PublishRequest
Adds one or more messages to the topic. Returns NOT_FOUND
if the topic does not exist.
Inheritance
ProjectsResource.TopicsResource.PublishRequest
Inherited Members
Namespace: Google.Apis.Pubsub.v1
Assembly: Google.Apis.Pubsub.v1.dll
Syntax
public class ProjectsResource.TopicsResource.PublishRequest : PubsubBaseServiceRequest<PublishResponse>, IClientServiceRequest<PublishResponse>, IClientServiceRequest
Constructors
PublishRequest(IClientService, PublishRequest, string)
Constructs a new Publish request.
Declaration
public PublishRequest(IClientService service, PublishRequest body, string topic)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
PublishRequest | body | |
string | topic |
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
Topic
Required. The messages in the request will be published on this topic. Format is
projects/{project}/topics/{topic}
.
Declaration
[RequestParameter("topic", RequestParameterType.Path)]
public virtual string Topic { 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 Publish parameter list.
Declaration
protected override void InitParameters()