Class AutoscalingEvent.Builder (0.26.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AutoscalingEvent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AutoscalingEvent.Builder
Overrides

build()

public AutoscalingEvent build()
Returns
TypeDescription
AutoscalingEvent

buildPartial()

public AutoscalingEvent buildPartial()
Returns
TypeDescription
AutoscalingEvent

clear()

public AutoscalingEvent.Builder clear()
Returns
TypeDescription
AutoscalingEvent.Builder
Overrides

clearCurrentNumWorkers()

public AutoscalingEvent.Builder clearCurrentNumWorkers()

The current number of workers the job has.

int64 current_num_workers = 1;

Returns
TypeDescription
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
TypeDescription
AutoscalingEvent.Builder

clearEventType()

public AutoscalingEvent.Builder clearEventType()

The type of autoscaling event to report.

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

Returns
TypeDescription
AutoscalingEvent.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AutoscalingEvent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AutoscalingEvent.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AutoscalingEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
AutoscalingEvent.Builder

This builder for chaining.

clone()

public AutoscalingEvent.Builder clone()
Returns
TypeDescription
AutoscalingEvent.Builder
Overrides

getCurrentNumWorkers()

public long getCurrentNumWorkers()

The current number of workers the job has.

int64 current_num_workers = 1;

Returns
TypeDescription
long

The currentNumWorkers.

getDefaultInstanceForType()

public AutoscalingEvent getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
StructuredMessageOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEventType()

public AutoscalingEvent.AutoscalingEventType getEventType()

The type of autoscaling event to report.

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

Returns
TypeDescription
AutoscalingEvent.AutoscalingEventType

The eventType.

getEventTypeValue()

public int getEventTypeValue()

The type of autoscaling event to report.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getWorkerPool()

public String getWorkerPool()

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

string worker_pool = 7;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the time field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueStructuredMessage
Returns
TypeDescription
AutoscalingEvent.Builder

mergeFrom(AutoscalingEvent other)

public AutoscalingEvent.Builder mergeFrom(AutoscalingEvent other)
Parameter
NameDescription
otherAutoscalingEvent
Returns
TypeDescription
AutoscalingEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AutoscalingEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutoscalingEvent.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AutoscalingEvent.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
AutoscalingEvent.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutoscalingEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuelong

The currentNumWorkers to set.

Returns
TypeDescription
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
NameDescription
valueStructuredMessage
Returns
TypeDescription
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
NameDescription
builderForValueStructuredMessage.Builder
Returns
TypeDescription
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
NameDescription
valueAutoscalingEvent.AutoscalingEventType

The eventType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
AutoscalingEvent.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AutoscalingEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AutoscalingEvent.Builder
Overrides

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

public AutoscalingEvent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valuelong

The targetNumWorkers to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
AutoscalingEvent.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AutoscalingEvent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The workerPool to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for workerPool to set.

Returns
TypeDescription
AutoscalingEvent.Builder

This builder for chaining.