public final class WorkerMessage
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Dataflow API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
WorkerMessage() |
Modifier and Type | Method and Description |
---|---|
WorkerMessage |
clone() |
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
Labels are used to group WorkerMessages.
|
java.lang.String |
getTime()
The timestamp of the worker_message.
|
WorkerHealthReport |
getWorkerHealthReport()
The health of a worker.
|
WorkerMessageCode |
getWorkerMessageCode()
A worker message code.
|
WorkerMessage |
set(java.lang.String fieldName,
java.lang.Object value) |
WorkerMessage |
setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
Labels are used to group WorkerMessages.
|
WorkerMessage |
setTime(java.lang.String time)
The timestamp of the worker_message.
|
WorkerMessage |
setWorkerHealthReport(WorkerHealthReport workerHealthReport)
The health of a worker.
|
WorkerMessage |
setWorkerMessageCode(WorkerMessageCode workerMessageCode)
A worker message code.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.util.Map<java.lang.String,java.lang.String> getLabels()
null
for nonepublic WorkerMessage setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
labels
- labels or null
for nonepublic java.lang.String getTime()
null
for nonepublic WorkerMessage setTime(java.lang.String time)
time
- time or null
for nonepublic WorkerHealthReport getWorkerHealthReport()
null
for nonepublic WorkerMessage setWorkerHealthReport(WorkerHealthReport workerHealthReport)
workerHealthReport
- workerHealthReport or null
for nonepublic WorkerMessageCode getWorkerMessageCode()
null
for nonepublic WorkerMessage setWorkerMessageCode(WorkerMessageCode workerMessageCode)
workerMessageCode
- workerMessageCode or null
for nonepublic WorkerMessage set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public WorkerMessage clone()
clone
in class com.google.api.client.json.GenericJson