| Package | Description |
|---|---|
| com.google.cloud.pubsub |
A client to Google Cloud Pub/Sub.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
ReceivedMessage.Builder |
| Modifier and Type | Method and Description |
|---|---|
abstract Message.Builder |
Message.Builder.addAttribute(String name,
String value)
Adds a new attribute to the message attributes.
|
abstract Message.Builder |
Message.Builder.attributes(Map<String,String> attributes)
Sets the message attributes to the provided map.
|
static Message.Builder |
Message.builder(ByteArray payload)
Creates a builder for
Message objects given the payload as a ByteArray. |
static Message.Builder |
Message.builder(String payload)
Creates a builder for
Message objects given the payload as a string. |
abstract Message.Builder |
Message.Builder.clearAttributes()
Clears all message attributes.
|
abstract Message.Builder |
Message.Builder.payload(ByteArray payload)
Sets the message payload to the provided
ByteArray. |
abstract Message.Builder |
Message.Builder.payload(String payload)
Sets the message payload to the provided string.
|
abstract Message.Builder |
Message.Builder.removeAttribute(String name)
Removes an attribute give its name from the message attributes.
|
Message.Builder |
Message.toBuilder()
Returns a builder for the message object.
|
Copyright © 2016 Google. All rights reserved.