Package com.google.dataflow.v1beta3
Class AutoscalingEvent.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AutoscalingEvent.Builder>
com.google.dataflow.v1beta3.AutoscalingEvent.Builder
- All Implemented Interfaces:
AutoscalingEventOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AutoscalingEvent
public static final class AutoscalingEvent.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AutoscalingEvent.Builder>
implements AutoscalingEventOrBuilder
A structured message reporting an autoscaling decision made by the Dataflow service.Protobuf type
google.dataflow.v1beta3.AutoscalingEvent-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The current number of workers the job has.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.The type of autoscaling event to report.The target number of workers the worker pool wants to resize to use.The time this event was emitted to indicate a new target or current num_workers value.A short and friendly name for the worker pool this event refers to.longThe current number of workers the job has.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.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.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.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe type of autoscaling event to report.intThe type of autoscaling event to report.longThe target number of workers the worker pool wants to resize to use.com.google.protobuf.TimestampgetTime()The time this event was emitted to indicate a new target or current num_workers value.com.google.protobuf.Timestamp.BuilderThe time this event was emitted to indicate a new target or current num_workers value.com.google.protobuf.TimestampOrBuilderThe time this event was emitted to indicate a new target or current num_workers value.A short and friendly name for the worker pool this event refers to.com.google.protobuf.ByteStringA short and friendly name for the worker pool this event refers to.booleanA 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.booleanhasTime()The time this event was emitted to indicate a new target or current num_workers value.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanA 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.mergeFrom(AutoscalingEvent other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeTime(com.google.protobuf.Timestamp value) The time this event was emitted to indicate a new target or current num_workers value.setCurrentNumWorkers(long value) The current number of workers the job has.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.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.The type of autoscaling event to report.setEventTypeValue(int value) The type of autoscaling event to report.setTargetNumWorkers(long value) The target number of workers the worker pool wants to resize to use.setTime(com.google.protobuf.Timestamp value) The time this event was emitted to indicate a new target or current num_workers value.setTime(com.google.protobuf.Timestamp.Builder builderForValue) The time this event was emitted to indicate a new target or current num_workers value.setWorkerPool(String value) A short and friendly name for the worker pool this event refers to.setWorkerPoolBytes(com.google.protobuf.ByteString value) A short and friendly name for the worker pool this event refers to.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AutoscalingEvent.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AutoscalingEvent.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AutoscalingEvent.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AutoscalingEvent.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AutoscalingEvent.Builder>
-
mergeFrom
public AutoscalingEvent.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AutoscalingEvent.Builder>- Throws:
IOException
-
getCurrentNumWorkers
public long getCurrentNumWorkers()The current number of workers the job has.
int64 current_num_workers = 1;- Specified by:
getCurrentNumWorkersin interfaceAutoscalingEventOrBuilder- Returns:
- The currentNumWorkers.
-
setCurrentNumWorkers
The current number of workers the job has.
int64 current_num_workers = 1;- Parameters:
value- The currentNumWorkers to set.- Returns:
- This builder for chaining.
-
clearCurrentNumWorkers
The current number of workers the job has.
int64 current_num_workers = 1;- Returns:
- This builder for chaining.
-
getTargetNumWorkers
public long getTargetNumWorkers()The target number of workers the worker pool wants to resize to use.
int64 target_num_workers = 2;- Specified by:
getTargetNumWorkersin interfaceAutoscalingEventOrBuilder- Returns:
- The targetNumWorkers.
-
setTargetNumWorkers
The target number of workers the worker pool wants to resize to use.
int64 target_num_workers = 2;- Parameters:
value- The targetNumWorkers to set.- Returns:
- This builder for chaining.
-
clearTargetNumWorkers
The target number of workers the worker pool wants to resize to use.
int64 target_num_workers = 2;- Returns:
- This builder for chaining.
-
getEventTypeValue
public int getEventTypeValue()The type of autoscaling event to report.
.google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType event_type = 3;- Specified by:
getEventTypeValuein interfaceAutoscalingEventOrBuilder- Returns:
- The enum numeric value on the wire for eventType.
-
setEventTypeValue
The type of autoscaling event to report.
.google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType event_type = 3;- Parameters:
value- The enum numeric value on the wire for eventType to set.- Returns:
- This builder for chaining.
-
getEventType
The type of autoscaling event to report.
.google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType event_type = 3;- Specified by:
getEventTypein interfaceAutoscalingEventOrBuilder- Returns:
- The eventType.
-
setEventType
The type of autoscaling event to report.
.google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType event_type = 3;- Parameters:
value- The eventType to set.- Returns:
- This builder for chaining.
-
clearEventType
The type of autoscaling event to report.
.google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType event_type = 3;- Returns:
- This builder for chaining.
-
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;- Specified by:
hasDescriptionin interfaceAutoscalingEventOrBuilder- Returns:
- Whether the description field is set.
-
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;- Specified by:
getDescriptionin interfaceAutoscalingEventOrBuilder- Returns:
- The description.
-
setDescription
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; -
setDescription
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; -
mergeDescription
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; -
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; -
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; -
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;- Specified by:
getDescriptionOrBuilderin interfaceAutoscalingEventOrBuilder
-
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;- Specified by:
hasTimein interfaceAutoscalingEventOrBuilder- Returns:
- Whether the time field is set.
-
getTime
public com.google.protobuf.Timestamp getTime()The time this event was emitted to indicate a new target or current num_workers value.
.google.protobuf.Timestamp time = 5;- Specified by:
getTimein interfaceAutoscalingEventOrBuilder- Returns:
- The time.
-
setTime
The time this event was emitted to indicate a new target or current num_workers value.
.google.protobuf.Timestamp time = 5; -
setTime
The time this event was emitted to indicate a new target or current num_workers value.
.google.protobuf.Timestamp time = 5; -
mergeTime
The time this event was emitted to indicate a new target or current num_workers value.
.google.protobuf.Timestamp time = 5; -
clearTime
The time this event was emitted to indicate a new target or current num_workers value.
.google.protobuf.Timestamp time = 5; -
getTimeBuilder
public com.google.protobuf.Timestamp.Builder getTimeBuilder()The time this event was emitted to indicate a new target or current num_workers value.
.google.protobuf.Timestamp time = 5; -
getTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder()The time this event was emitted to indicate a new target or current num_workers value.
.google.protobuf.Timestamp time = 5;- Specified by:
getTimeOrBuilderin interfaceAutoscalingEventOrBuilder
-
getWorkerPool
A short and friendly name for the worker pool this event refers to.
string worker_pool = 7;- Specified by:
getWorkerPoolin interfaceAutoscalingEventOrBuilder- Returns:
- The workerPool.
-
getWorkerPoolBytes
public com.google.protobuf.ByteString getWorkerPoolBytes()A short and friendly name for the worker pool this event refers to.
string worker_pool = 7;- Specified by:
getWorkerPoolBytesin interfaceAutoscalingEventOrBuilder- Returns:
- The bytes for workerPool.
-
setWorkerPool
A short and friendly name for the worker pool this event refers to.
string worker_pool = 7;- Parameters:
value- The workerPool to set.- Returns:
- This builder for chaining.
-
clearWorkerPool
A short and friendly name for the worker pool this event refers to.
string worker_pool = 7;- Returns:
- This builder for chaining.
-
setWorkerPoolBytes
A short and friendly name for the worker pool this event refers to.
string worker_pool = 7;- Parameters:
value- The bytes for workerPool to set.- Returns:
- This builder for chaining.
-