public final class WorkItem
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 |
---|
WorkItem() |
Modifier and Type | Method and Description |
---|---|
WorkItem |
clone() |
java.lang.String |
getConfiguration()
Work item-specific configuration as an opaque blob.
|
java.lang.Long |
getId()
Identifies this WorkItem.
|
java.lang.Long |
getInitialReportIndex()
The initial index to use when reporting the status of the WorkItem.
|
java.lang.String |
getJobId()
Identifies the workflow job this WorkItem belongs to.
|
java.lang.String |
getLeaseExpireTime()
Time when the lease on this Work will expire.
|
MapTask |
getMapTask()
Additional information for MapTask WorkItems.
|
java.util.List<DataflowPackage> |
getPackages()
Any required packages that need to be fetched in order to execute this WorkItem.
|
java.lang.String |
getProjectId()
Identifies the cloud project this WorkItem belongs to.
|
java.lang.String |
getReportStatusInterval()
Recommended reporting interval.
|
SeqMapTask |
getSeqMapTask()
Additional information for SeqMapTask WorkItems.
|
ShellTask |
getShellTask()
Additional information for ShellTask WorkItems.
|
SourceOperationRequest |
getSourceOperationTask()
Additional information for source operation WorkItems.
|
StreamingComputationTask |
getStreamingComputationTask()
Additional information for StreamingComputationTask WorkItems.
|
StreamingConfigTask |
getStreamingConfigTask()
Additional information for StreamingConfigTask WorkItems.
|
StreamingSetupTask |
getStreamingSetupTask()
Additional information for StreamingSetupTask WorkItems.
|
WorkItem |
set(java.lang.String fieldName,
java.lang.Object value) |
WorkItem |
setConfiguration(java.lang.String configuration)
Work item-specific configuration as an opaque blob.
|
WorkItem |
setId(java.lang.Long id)
Identifies this WorkItem.
|
WorkItem |
setInitialReportIndex(java.lang.Long initialReportIndex)
The initial index to use when reporting the status of the WorkItem.
|
WorkItem |
setJobId(java.lang.String jobId)
Identifies the workflow job this WorkItem belongs to.
|
WorkItem |
setLeaseExpireTime(java.lang.String leaseExpireTime)
Time when the lease on this Work will expire.
|
WorkItem |
setMapTask(MapTask mapTask)
Additional information for MapTask WorkItems.
|
WorkItem |
setPackages(java.util.List<DataflowPackage> packages)
Any required packages that need to be fetched in order to execute this WorkItem.
|
WorkItem |
setProjectId(java.lang.String projectId)
Identifies the cloud project this WorkItem belongs to.
|
WorkItem |
setReportStatusInterval(java.lang.String reportStatusInterval)
Recommended reporting interval.
|
WorkItem |
setSeqMapTask(SeqMapTask seqMapTask)
Additional information for SeqMapTask WorkItems.
|
WorkItem |
setShellTask(ShellTask shellTask)
Additional information for ShellTask WorkItems.
|
WorkItem |
setSourceOperationTask(SourceOperationRequest sourceOperationTask)
Additional information for source operation WorkItems.
|
WorkItem |
setStreamingComputationTask(StreamingComputationTask streamingComputationTask)
Additional information for StreamingComputationTask WorkItems.
|
WorkItem |
setStreamingConfigTask(StreamingConfigTask streamingConfigTask)
Additional information for StreamingConfigTask WorkItems.
|
WorkItem |
setStreamingSetupTask(StreamingSetupTask streamingSetupTask)
Additional information for StreamingSetupTask WorkItems.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getConfiguration()
null
for nonepublic WorkItem setConfiguration(java.lang.String configuration)
configuration
- configuration or null
for nonepublic java.lang.Long getId()
null
for nonepublic WorkItem setId(java.lang.Long id)
id
- id or null
for nonepublic java.lang.Long getInitialReportIndex()
null
for nonepublic WorkItem setInitialReportIndex(java.lang.Long initialReportIndex)
initialReportIndex
- initialReportIndex or null
for nonepublic java.lang.String getJobId()
null
for nonepublic WorkItem setJobId(java.lang.String jobId)
jobId
- jobId or null
for nonepublic java.lang.String getLeaseExpireTime()
null
for nonepublic WorkItem setLeaseExpireTime(java.lang.String leaseExpireTime)
leaseExpireTime
- leaseExpireTime or null
for nonepublic MapTask getMapTask()
null
for nonepublic WorkItem setMapTask(MapTask mapTask)
mapTask
- mapTask or null
for nonepublic java.util.List<DataflowPackage> getPackages()
null
for nonepublic WorkItem setPackages(java.util.List<DataflowPackage> packages)
packages
- packages or null
for nonepublic java.lang.String getProjectId()
null
for nonepublic WorkItem setProjectId(java.lang.String projectId)
projectId
- projectId or null
for nonepublic java.lang.String getReportStatusInterval()
null
for nonepublic WorkItem setReportStatusInterval(java.lang.String reportStatusInterval)
reportStatusInterval
- reportStatusInterval or null
for nonepublic SeqMapTask getSeqMapTask()
null
for nonepublic WorkItem setSeqMapTask(SeqMapTask seqMapTask)
seqMapTask
- seqMapTask or null
for nonepublic ShellTask getShellTask()
null
for nonepublic WorkItem setShellTask(ShellTask shellTask)
shellTask
- shellTask or null
for nonepublic SourceOperationRequest getSourceOperationTask()
null
for nonepublic WorkItem setSourceOperationTask(SourceOperationRequest sourceOperationTask)
sourceOperationTask
- sourceOperationTask or null
for nonepublic StreamingComputationTask getStreamingComputationTask()
null
for nonepublic WorkItem setStreamingComputationTask(StreamingComputationTask streamingComputationTask)
streamingComputationTask
- streamingComputationTask or null
for nonepublic StreamingConfigTask getStreamingConfigTask()
null
for nonepublic WorkItem setStreamingConfigTask(StreamingConfigTask streamingConfigTask)
streamingConfigTask
- streamingConfigTask or null
for nonepublic StreamingSetupTask getStreamingSetupTask()
null
for nonepublic WorkItem setStreamingSetupTask(StreamingSetupTask streamingSetupTask)
streamingSetupTask
- streamingSetupTask or null
for nonepublic WorkItem set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public WorkItem clone()
clone
in class com.google.api.client.json.GenericJson