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.FlagsAbstractMap.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.
|
Long |
getProjectNumber()
Optional.
|
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 |
setProjectNumber(Long projectNumber)
Optional.
|
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, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic 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 Long getProjectNumber()
null for nonepublic LeaseWorkItemRequest setProjectNumber(Long projectNumber)
projectNumber - projectNumber 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.GenericJsonpublic LeaseWorkItemRequest clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.