public static class PartitionMetadata.Builder
extends java.lang.Object
| Constructor and Description | 
|---|
Builder()  | 
| Modifier and Type | Method and Description | 
|---|---|
PartitionMetadata | 
build()
Builds a  
PartitionMetadata from the given fields. | 
PartitionMetadata.Builder | 
setCreatedAt(com.google.cloud.Timestamp createdAt)
Sets the time at which the partition was created. 
 | 
PartitionMetadata.Builder | 
setEndTimestamp(com.google.cloud.Timestamp endTimestamp)
Sets the end time of the partition. 
 | 
PartitionMetadata.Builder | 
setFinishedAt(com.google.cloud.Timestamp finishedAt)
Sets the time at which the partition finished running. 
 | 
PartitionMetadata.Builder | 
setHeartbeatMillis(long heartbeatMillis)
Sets the heartbeat interval in millis. 
 | 
PartitionMetadata.Builder | 
setParentTokens(java.util.HashSet<java.lang.String> parentTokens)
Sets the collection of parent partition identifiers. 
 | 
PartitionMetadata.Builder | 
setPartitionToken(java.lang.String partitionToken)
Sets the unique partition identifier. 
 | 
PartitionMetadata.Builder | 
setRunningAt(com.google.cloud.Timestamp runningAt)
Sets the time at which the partition started running. 
 | 
PartitionMetadata.Builder | 
setScheduledAt(com.google.cloud.Timestamp scheduledAt)
Sets the time at which the partition was scheduled. 
 | 
PartitionMetadata.Builder | 
setStartTimestamp(com.google.cloud.Timestamp startTimestamp)
Sets the start time of the partition. 
 | 
PartitionMetadata.Builder | 
setState(PartitionMetadata.State state)
Sets the current state of the partition. 
 | 
PartitionMetadata.Builder | 
setWatermark(com.google.cloud.Timestamp watermark)
Sets the watermark (last processed timestamp) for the partition. 
 | 
public PartitionMetadata.Builder setPartitionToken(java.lang.String partitionToken)
public PartitionMetadata.Builder setParentTokens(java.util.HashSet<java.lang.String> parentTokens)
public PartitionMetadata.Builder setStartTimestamp(com.google.cloud.Timestamp startTimestamp)
public PartitionMetadata.Builder setEndTimestamp(com.google.cloud.Timestamp endTimestamp)
public PartitionMetadata.Builder setHeartbeatMillis(long heartbeatMillis)
public PartitionMetadata.Builder setState(PartitionMetadata.State state)
public PartitionMetadata.Builder setWatermark(com.google.cloud.Timestamp watermark)
public PartitionMetadata.Builder setCreatedAt(com.google.cloud.Timestamp createdAt)
public PartitionMetadata.Builder setScheduledAt(@Nullable com.google.cloud.Timestamp scheduledAt)
public PartitionMetadata.Builder setRunningAt(@Nullable com.google.cloud.Timestamp runningAt)
public PartitionMetadata.Builder setFinishedAt(@Nullable com.google.cloud.Timestamp finishedAt)
public PartitionMetadata build()
PartitionMetadata from the given fields. Mandatory fields are: