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 Dataflow API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/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.
|
WorkerLifecycleEvent |
getWorkerLifecycleEvent()
Record of worker lifecycle events.
|
WorkerMessageCode |
getWorkerMessageCode()
A worker message code.
|
ResourceUtilizationReport |
getWorkerMetrics()
Resource metrics reported by workers.
|
WorkerShutdownNotice |
getWorkerShutdownNotice()
Shutdown notice by workers.
|
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 |
setWorkerLifecycleEvent(WorkerLifecycleEvent workerLifecycleEvent)
Record of worker lifecycle events.
|
WorkerMessage |
setWorkerMessageCode(WorkerMessageCode workerMessageCode)
A worker message code.
|
WorkerMessage |
setWorkerMetrics(ResourceUtilizationReport workerMetrics)
Resource metrics reported by workers.
|
WorkerMessage |
setWorkerShutdownNotice(WorkerShutdownNotice workerShutdownNotice)
Shutdown notice by workers.
|
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 WorkerLifecycleEvent getWorkerLifecycleEvent()
null
for nonepublic WorkerMessage setWorkerLifecycleEvent(WorkerLifecycleEvent workerLifecycleEvent)
workerLifecycleEvent
- workerLifecycleEvent or null
for nonepublic WorkerMessageCode getWorkerMessageCode()
null
for nonepublic WorkerMessage setWorkerMessageCode(WorkerMessageCode workerMessageCode)
workerMessageCode
- workerMessageCode or null
for nonepublic ResourceUtilizationReport getWorkerMetrics()
null
for nonepublic WorkerMessage setWorkerMetrics(ResourceUtilizationReport workerMetrics)
workerMetrics
- workerMetrics or null
for nonepublic WorkerShutdownNotice getWorkerShutdownNotice()
null
for nonepublic WorkerMessage setWorkerShutdownNotice(WorkerShutdownNotice workerShutdownNotice)
workerShutdownNotice
- workerShutdownNotice 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