public class PubSubConsumerState
extends java.lang.Object
PubsubMessage
payload into the corresponding ExecutableMethod
arguments.Constructor and Description |
---|
PubSubConsumerState(com.google.pubsub.v1.PubsubMessage pubsubMessage,
com.google.cloud.pubsub.v1.AckReplyConsumer ackReplyConsumer,
com.google.pubsub.v1.ProjectSubscriptionName subscriptionName,
java.lang.String contentType) |
Modifier and Type | Method and Description |
---|---|
com.google.cloud.pubsub.v1.AckReplyConsumer |
getAckReplyConsumer() |
java.lang.String |
getContentType() |
com.google.pubsub.v1.PubsubMessage |
getPubsubMessage() |
com.google.pubsub.v1.ProjectSubscriptionName |
getSubscriptionName() |
public PubSubConsumerState(com.google.pubsub.v1.PubsubMessage pubsubMessage, com.google.cloud.pubsub.v1.AckReplyConsumer ackReplyConsumer, com.google.pubsub.v1.ProjectSubscriptionName subscriptionName, java.lang.String contentType)
public java.lang.String getContentType()
public com.google.pubsub.v1.PubsubMessage getPubsubMessage()
PubsubMessage
attached to this contextpublic com.google.cloud.pubsub.v1.AckReplyConsumer getAckReplyConsumer()
AckReplyConsumer
to be used for message ack.public com.google.pubsub.v1.ProjectSubscriptionName getSubscriptionName()