public final class LeaseWorkItemRequest
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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
LeaseWorkItemRequest() |
Modifier and Type | Method and Description |
---|---|
LeaseWorkItemRequest |
clone() |
String |
getCurrentWorkerTime()
The current timestamp at the worker.
|
String |
getLocation()
The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
that contains the WorkItem's job.
|
String |
getRequestedLeaseDuration()
The initial lease period.
|
Map<String,Object> |
getUnifiedWorkerRequest()
Untranslated bag-of-bytes WorkRequest from UnifiedWorker.
|
List<String> |
getWorkerCapabilities()
Worker capabilities.
|
String |
getWorkerId()
Identifies the worker leasing work -- typically the ID of the virtual machine running the
worker.
|
List<String> |
getWorkItemTypes()
Filter for WorkItem type.
|
LeaseWorkItemRequest |
set(String fieldName,
Object value) |
LeaseWorkItemRequest |
setCurrentWorkerTime(String currentWorkerTime)
The current timestamp at the worker.
|
LeaseWorkItemRequest |
setLocation(String location)
The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
that contains the WorkItem's job.
|
LeaseWorkItemRequest |
setRequestedLeaseDuration(String requestedLeaseDuration)
The initial lease period.
|
LeaseWorkItemRequest |
setUnifiedWorkerRequest(Map<String,Object> unifiedWorkerRequest)
Untranslated bag-of-bytes WorkRequest from UnifiedWorker.
|
LeaseWorkItemRequest |
setWorkerCapabilities(List<String> workerCapabilities)
Worker capabilities.
|
LeaseWorkItemRequest |
setWorkerId(String workerId)
Identifies the worker leasing work -- typically the ID of the virtual machine running the
worker.
|
LeaseWorkItemRequest |
setWorkItemTypes(List<String> workItemTypes)
Filter for WorkItem type.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getCurrentWorkerTime()
null
for nonepublic LeaseWorkItemRequest setCurrentWorkerTime(String currentWorkerTime)
currentWorkerTime
- currentWorkerTime or null
for nonepublic String getLocation()
null
for nonepublic LeaseWorkItemRequest setLocation(String location)
location
- location or null
for nonepublic String getRequestedLeaseDuration()
null
for nonepublic LeaseWorkItemRequest setRequestedLeaseDuration(String requestedLeaseDuration)
requestedLeaseDuration
- requestedLeaseDuration or null
for nonepublic Map<String,Object> getUnifiedWorkerRequest()
null
for nonepublic LeaseWorkItemRequest setUnifiedWorkerRequest(Map<String,Object> unifiedWorkerRequest)
unifiedWorkerRequest
- unifiedWorkerRequest or null
for nonepublic List<String> getWorkItemTypes()
null
for nonepublic LeaseWorkItemRequest setWorkItemTypes(List<String> workItemTypes)
workItemTypes
- workItemTypes or null
for nonepublic List<String> getWorkerCapabilities()
null
for nonepublic LeaseWorkItemRequest setWorkerCapabilities(List<String> workerCapabilities)
workerCapabilities
- workerCapabilities or null
for nonepublic String getWorkerId()
null
for nonepublic LeaseWorkItemRequest setWorkerId(String workerId)
workerId
- workerId or null
for nonepublic LeaseWorkItemRequest set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public LeaseWorkItemRequest clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2019 Google. All rights reserved.