Class AutoscalingEvent.Builder (0.52.0)

public static final class AutoscalingEvent.Builder extends GeneratedMessageV3.Builder<AutoscalingEvent.Builder> implements AutoscalingEventOrBuilder

A structured message reporting an autoscaling decision made by the Dataflow service.

Protobuf type google.dataflow.v1beta3.AutoscalingEvent

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AutoscalingEvent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AutoscalingEvent.Builder
Overrides

build()

public AutoscalingEvent build()
Returns
Type Description
AutoscalingEvent

buildPartial()

public AutoscalingEvent buildPartial()
Returns
Type Description
AutoscalingEvent

clear()

public AutoscalingEvent.Builder clear()
Returns
Type Description
AutoscalingEvent.Builder
Overrides

clearCurrentNumWorkers()

public AutoscalingEvent.Builder clearCurrentNumWorkers()

The current number of workers the job has.

int64 current_num_workers = 1;

Returns
Type Description
AutoscalingEvent.Builder

This builder for chaining.

clearDescription()

public AutoscalingEvent.Builder clearDescription()

A message describing why the system decided to adjust the current number of workers, why it failed, or why the system decided to not make any changes to the number of workers.

.google.dataflow.v1beta3.StructuredMessage description = 4;

Returns
Type Description
AutoscalingEvent.Builder

clearEventType()

public AutoscalingEvent.Builder clearEventType()

The type of autoscaling event to report.

.google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType event_type = 3;

Returns
Type Description
AutoscalingEvent.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AutoscalingEvent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AutoscalingEvent.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AutoscalingEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AutoscalingEvent.Builder
Overrides

clearTargetNumWorkers()

public AutoscalingEvent.Builder clearTargetNumWorkers()

The target number of workers the worker pool wants to resize to use.

int64 target_num_workers = 2;

Returns
Type Description
AutoscalingEvent.Builder

This builder for chaining.

clearTime()

public AutoscalingEvent.Builder clearTime()

The time this event was emitted to indicate a new target or current num_workers value.

.google.protobuf.Timestamp time = 5;

Returns
Type Description
AutoscalingEvent.Builder

clearWorkerPool()

public AutoscalingEvent.Builder clearWorkerPool()

A short and friendly name for the worker pool this event refers to.

string worker_pool = 7;

Returns
Type Description
AutoscalingEvent.Builder

This builder for chaining.

clone()

public AutoscalingEvent.Builder clone()
Returns
Type Description
AutoscalingEvent.Builder
Overrides

getCurrentNumWorkers()

public long getCurrentNumWorkers()

The current number of workers the job has.

int64 current_num_workers = 1;

Returns
Type Description
long

The currentNumWorkers.

getDefaultInstanceForType()

public AutoscalingEvent getDefaultInstanceForType()
Returns
Type Description
AutoscalingEvent

getDescription()

public StructuredMessage getDescription()

A message describing why the system decided to adjust the current number of workers, why it failed, or why the system decided to not make any changes to the number of workers.

.google.dataflow.v1beta3.StructuredMessage description = 4;

Returns
Type Description
StructuredMessage

The description.

getDescriptionBuilder()

public StructuredMessage.Builder getDescriptionBuilder()

A message describing why the system decided to adjust the current number of workers, why it failed, or why the system decided to not make any changes to the number of workers.

.google.dataflow.v1beta3.StructuredMessage description = 4;

Returns
Type Description
StructuredMessage.Builder

getDescriptionOrBuilder()

public StructuredMessageOrBuilder getDescriptionOrBuilder()

A message describing why the system decided to adjust the current number of workers, why it failed, or why the system decided to not make any changes to the number of workers.

.google.dataflow.v1beta3.StructuredMessage description = 4;

Returns
Type Description
StructuredMessageOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEventType()

public AutoscalingEvent.AutoscalingEventType getEventType()

The type of autoscaling event to report.

.google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType event_type = 3;

Returns
Type Description
AutoscalingEvent.AutoscalingEventType

The eventType.

getEventTypeValue()

public int getEventTypeValue()

The type of autoscaling event to report.

.google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType event_type = 3;

Returns
Type Description
int

The enum numeric value on the wire for eventType.

getTargetNumWorkers()

public long getTargetNumWorkers()

The target number of workers the worker pool wants to resize to use.

int64 target_num_workers = 2;

Returns
Type Description
long

The targetNumWorkers.

getTime()

public Timestamp getTime()

The time this event was emitted to indicate a new target or current num_workers value.

.google.protobuf.Timestamp time = 5;

Returns
Type Description
Timestamp

The time.

getTimeBuilder()

public Timestamp.Builder getTimeBuilder()

The time this event was emitted to indicate a new target or current num_workers value.

.google.protobuf.Timestamp time = 5;

Returns
Type Description
Builder

getTimeOrBuilder()

public TimestampOrBuilder getTimeOrBuilder()

The time this event was emitted to indicate a new target or current num_workers value.

.google.protobuf.Timestamp time = 5;

Returns
Type Description
TimestampOrBuilder

getWorkerPool()

public String getWorkerPool()

A short and friendly name for the worker pool this event refers to.

string worker_pool = 7;

Returns
Type Description
String

The workerPool.

getWorkerPoolBytes()

public ByteString getWorkerPoolBytes()

A short and friendly name for the worker pool this event refers to.

string worker_pool = 7;

Returns
Type Description
ByteString

The bytes for workerPool.

hasDescription()

public boolean hasDescription()

A message describing why the system decided to adjust the current number of workers, why it failed, or why the system decided to not make any changes to the number of workers.

.google.dataflow.v1beta3.StructuredMessage description = 4;

Returns
Type Description
boolean

Whether the description field is set.

hasTime()

public boolean hasTime()

The time this event was emitted to indicate a new target or current num_workers value.

.google.protobuf.Timestamp time = 5;

Returns
Type Description
boolean

Whether the time field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDescription(StructuredMessage value)

public AutoscalingEvent.Builder mergeDescription(StructuredMessage value)

A message describing why the system decided to adjust the current number of workers, why it failed, or why the system decided to not make any changes to the number of workers.

.google.dataflow.v1beta3.StructuredMessage description = 4;

Parameter
Name Description
value StructuredMessage
Returns
Type Description
AutoscalingEvent.Builder

mergeFrom(AutoscalingEvent other)

public AutoscalingEvent.Builder mergeFrom(AutoscalingEvent other)
Parameter
Name Description
other AutoscalingEvent
Returns
Type Description
AutoscalingEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AutoscalingEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutoscalingEvent.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AutoscalingEvent.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AutoscalingEvent.Builder
Overrides

mergeTime(Timestamp value)

public AutoscalingEvent.Builder mergeTime(Timestamp value)

The time this event was emitted to indicate a new target or current num_workers value.

.google.protobuf.Timestamp time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
AutoscalingEvent.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutoscalingEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AutoscalingEvent.Builder
Overrides

setCurrentNumWorkers(long value)

public AutoscalingEvent.Builder setCurrentNumWorkers(long value)

The current number of workers the job has.

int64 current_num_workers = 1;

Parameter
Name Description
value long

The currentNumWorkers to set.

Returns
Type Description
AutoscalingEvent.Builder

This builder for chaining.

setDescription(StructuredMessage value)

public AutoscalingEvent.Builder setDescription(StructuredMessage value)

A message describing why the system decided to adjust the current number of workers, why it failed, or why the system decided to not make any changes to the number of workers.

.google.dataflow.v1beta3.StructuredMessage description = 4;

Parameter
Name Description
value StructuredMessage
Returns
Type Description
AutoscalingEvent.Builder

setDescription(StructuredMessage.Builder builderForValue)

public AutoscalingEvent.Builder setDescription(StructuredMessage.Builder builderForValue)

A message describing why the system decided to adjust the current number of workers, why it failed, or why the system decided to not make any changes to the number of workers.

.google.dataflow.v1beta3.StructuredMessage description = 4;

Parameter
Name Description
builderForValue StructuredMessage.Builder
Returns
Type Description
AutoscalingEvent.Builder

setEventType(AutoscalingEvent.AutoscalingEventType value)

public AutoscalingEvent.Builder setEventType(AutoscalingEvent.AutoscalingEventType value)

The type of autoscaling event to report.

.google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType event_type = 3;

Parameter
Name Description
value AutoscalingEvent.AutoscalingEventType

The eventType to set.

Returns
Type Description
AutoscalingEvent.Builder

This builder for chaining.

setEventTypeValue(int value)

public AutoscalingEvent.Builder setEventTypeValue(int value)

The type of autoscaling event to report.

.google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType event_type = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for eventType to set.

Returns
Type Description
AutoscalingEvent.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AutoscalingEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AutoscalingEvent.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AutoscalingEvent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AutoscalingEvent.Builder
Overrides

setTargetNumWorkers(long value)

public AutoscalingEvent.Builder setTargetNumWorkers(long value)

The target number of workers the worker pool wants to resize to use.

int64 target_num_workers = 2;

Parameter
Name Description
value long

The targetNumWorkers to set.

Returns
Type Description
AutoscalingEvent.Builder

This builder for chaining.

setTime(Timestamp value)

public AutoscalingEvent.Builder setTime(Timestamp value)

The time this event was emitted to indicate a new target or current num_workers value.

.google.protobuf.Timestamp time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
AutoscalingEvent.Builder

setTime(Timestamp.Builder builderForValue)

public AutoscalingEvent.Builder setTime(Timestamp.Builder builderForValue)

The time this event was emitted to indicate a new target or current num_workers value.

.google.protobuf.Timestamp time = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AutoscalingEvent.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AutoscalingEvent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AutoscalingEvent.Builder
Overrides

setWorkerPool(String value)

public AutoscalingEvent.Builder setWorkerPool(String value)

A short and friendly name for the worker pool this event refers to.

string worker_pool = 7;

Parameter
Name Description
value String

The workerPool to set.

Returns
Type Description
AutoscalingEvent.Builder

This builder for chaining.

setWorkerPoolBytes(ByteString value)

public AutoscalingEvent.Builder setWorkerPoolBytes(ByteString value)

A short and friendly name for the worker pool this event refers to.

string worker_pool = 7;

Parameter
Name Description
value ByteString

The bytes for workerPool to set.

Returns
Type Description
AutoscalingEvent.Builder

This builder for chaining.