public static class ImmutableCastMessage.ImmutableBinaryCastMessage extends ImmutableCastMessage
ImmutableCastMessage implementation for binary payloads.ImmutableCastMessage.ImmutableBinaryCastMessage, ImmutableCastMessage.ImmutableStringCastMessage| Modifier and Type | Field and Description |
|---|---|
protected com.google.protobuf.ByteString |
payload
The message payload
|
destinationId, namespace, protocolVersion, sourceId| Constructor and Description |
|---|
ImmutableBinaryCastMessage(String destinationId,
String namespace,
com.google.protobuf.ByteString payload,
CastChannel.CastMessage.ProtocolVersion protocolVersion,
String sourceId)
Creates a new instance using the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.protobuf.ByteString |
getPayload() |
create, getDestinationId, getNamespace, getProtocolVersion, getSourceId@Nonnull protected final com.google.protobuf.ByteString payload
public ImmutableBinaryCastMessage(@Nonnull String destinationId, @Nonnull String namespace, @Nonnull com.google.protobuf.ByteString payload, @Nonnull CastChannel.CastMessage.ProtocolVersion protocolVersion, @Nonnull String sourceId)
destinationId - the destination ID.namespace - the namespace.payload - the binary payload.protocolVersion - the protocol version.sourceId - the source ID.IllegalArgumentException - If any of the parameters are
null.@Nonnull public com.google.protobuf.ByteString getPayload()
Copyright © 2022. All rights reserved.