Java Spring Cloud GCP中的PubSub消息属性

Java Spring Cloud GCP中的PubSub消息属性,java,spring-boot,google-cloud-pubsub,Java,Spring Boot,Google Cloud Pubsub,GCP PubSub允许将消息属性添加到PubSub消息中,并且可以使用类中的“getAttributes”方法在订户端读取这些属性: Map attributemap=pubsubMessage.getAttributes() Spring Cloud GCP PubSub是否允许使用提供的Spring类访问这些属性?我意识到我可能可以提取实际的pubsub消息,但这似乎违背了使用Spring进行消息管理的目的

GCP PubSub允许将消息属性添加到PubSub消息中,并且可以使用类中的“getAttributes”方法在订户端读取这些属性:

Map attributemap=pubsubMessage.getAttributes()

Spring Cloud GCP PubSub是否允许使用提供的Spring类访问这些属性?我意识到我可能可以提取实际的pubsub消息,但这似乎违背了使用Spring进行消息管理的目的