public static final class PubSubDataValue.Builder extends Object
PubSubDataValue.| Modifier and Type | Field and Description |
|---|---|
protected PubSubFieldEncodingType |
encodingType |
protected Instant |
serverTimestamp |
protected Instant |
sourceTimestamp |
protected StatusCode |
statusCode |
protected Variant |
value |
| Modifier | Constructor and Description |
|---|---|
protected |
Builder() |
| Modifier and Type | Method and Description |
|---|---|
PubSubDataValue |
build()
Returns an instance of
PubSubDataValue with the values given to this builder. |
PubSubFieldEncodingType |
getEncodingType() |
Instant |
getServerTimestamp() |
Instant |
getSourceTimestamp() |
StatusCode |
getStatusCode() |
Variant |
getValue() |
PubSubDataValue.Builder |
setEncodingType(PubSubFieldEncodingType encodingType)
Set the value for
PubSubDataValue.getEncodingType(). |
PubSubDataValue.Builder |
setServerTimestamp(Instant serverTimestamp)
Set the value for
PubSubDataValue.getServerTimestamp(). |
PubSubDataValue.Builder |
setSourceTimestamp(Instant sourceTimestamp)
Set the value for
PubSubDataValue.getSourceTimestamp(). |
PubSubDataValue.Builder |
setStatusCode(StatusCode statusCode)
Set the value for
PubSubDataValue.getStatusCode(). |
PubSubDataValue.Builder |
setValue(Variant value)
Set the value for
PubSubDataValue.getValue(). |
protected PubSubFieldEncodingType encodingType
protected Instant serverTimestamp
protected Instant sourceTimestamp
protected StatusCode statusCode
protected Variant value
public PubSubFieldEncodingType getEncodingType()
public Instant getServerTimestamp()
public Instant getSourceTimestamp()
public StatusCode getStatusCode()
public Variant getValue()
public PubSubDataValue.Builder setEncodingType(PubSubFieldEncodingType encodingType)
PubSubDataValue.getEncodingType(). Returns itself for method chaining.public PubSubDataValue.Builder setServerTimestamp(Instant serverTimestamp)
PubSubDataValue.getServerTimestamp(). Returns itself for method chaining.public PubSubDataValue.Builder setSourceTimestamp(Instant sourceTimestamp)
PubSubDataValue.getSourceTimestamp(). Returns itself for method chaining.public PubSubDataValue.Builder setStatusCode(StatusCode statusCode)
PubSubDataValue.getStatusCode(). Returns itself for method chaining.public PubSubDataValue.Builder setValue(Variant value)
PubSubDataValue.getValue(). Returns itself for method chaining.public PubSubDataValue build()
PubSubDataValue with the values given to this builder.Copyright © 2026. All rights reserved.