@NotThreadSafe public final class GetWorkerReportOptions extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
GetWorkerReportOptions.WorkerInfoField
Enum representing the fields of the worker information.
|
static class |
GetWorkerReportOptions.WorkerRange
Enum representing the range of workers that we want to show capacity information for.
|
Constructor and Description |
---|
GetWorkerReportOptions(GetWorkerReportPOptions options)
Creates a new instance of
GetWorkerReportOptions from a proto representation. |
Modifier and Type | Method and Description |
---|---|
static GetWorkerReportOptions |
defaults() |
boolean |
equals(Object o) |
Set<String> |
getAddresses() |
Set<GetWorkerReportOptions.WorkerInfoField> |
getFieldRange() |
GetWorkerReportOptions.WorkerRange |
getWorkerRange() |
int |
hashCode() |
GetWorkerReportOptions |
setAddresses(Set<String> addresses) |
GetWorkerReportOptions |
setFieldRange(Set<GetWorkerReportOptions.WorkerInfoField> fieldRange) |
GetWorkerReportOptions |
setWorkerRange(GetWorkerReportOptions.WorkerRange workerRange) |
GetWorkerReportPOptions |
toProto() |
String |
toString() |
public GetWorkerReportOptions(GetWorkerReportPOptions options)
GetWorkerReportOptions
from a proto representation.options
- the proto representation of a GetWorkerReportOptionspublic static GetWorkerReportOptions defaults()
GetWorkerReportOptions
public Set<GetWorkerReportOptions.WorkerInfoField> getFieldRange()
public GetWorkerReportOptions.WorkerRange getWorkerRange()
public GetWorkerReportOptions setAddresses(Set<String> addresses)
addresses
- the client selected worker addressespublic GetWorkerReportOptions setFieldRange(Set<GetWorkerReportOptions.WorkerInfoField> fieldRange)
fieldRange
- the field range of worker infopublic GetWorkerReportOptions setWorkerRange(GetWorkerReportOptions.WorkerRange workerRange)
workerRange
- the client selected worker rangepublic GetWorkerReportPOptions toProto()
Copyright © 2023. All Rights Reserved.