Package com.google.dataflow.v1beta3
Class AutoscalingEvent
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.dataflow.v1beta3.AutoscalingEvent
- All Implemented Interfaces:
AutoscalingEventOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class AutoscalingEvent
extends com.google.protobuf.GeneratedMessage
implements AutoscalingEventOrBuilder
A structured message reporting an autoscaling decision made by the Dataflow service.Protobuf type
google.dataflow.v1beta3.AutoscalingEvent- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumIndicates the type of autoscaling event.static final classA structured message reporting an autoscaling decision made by the Dataflow service.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongThe current number of workers the job has.static AutoscalingEventA 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.DescriptorThe type of autoscaling event to report.intThe type of autoscaling event to report.com.google.protobuf.Parser<AutoscalingEvent>intlongThe 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.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.inthashCode()booleanhasTime()The time this event was emitted to indicate a new target or current num_workers value.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic AutoscalingEvent.Builderstatic AutoscalingEvent.BuildernewBuilder(AutoscalingEvent prototype) protected AutoscalingEvent.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static AutoscalingEventparseDelimitedFrom(InputStream input) static AutoscalingEventparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AutoscalingEventparseFrom(byte[] data) static AutoscalingEventparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AutoscalingEventparseFrom(com.google.protobuf.ByteString data) static AutoscalingEventparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AutoscalingEventparseFrom(com.google.protobuf.CodedInputStream input) static AutoscalingEventparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AutoscalingEventparseFrom(InputStream input) static AutoscalingEventparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AutoscalingEventparseFrom(ByteBuffer data) static AutoscalingEventparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AutoscalingEvent>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
CURRENT_NUM_WORKERS_FIELD_NUMBER
public static final int CURRENT_NUM_WORKERS_FIELD_NUMBER- See Also:
-
TARGET_NUM_WORKERS_FIELD_NUMBER
public static final int TARGET_NUM_WORKERS_FIELD_NUMBER- See Also:
-
EVENT_TYPE_FIELD_NUMBER
public static final int EVENT_TYPE_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
TIME_FIELD_NUMBER
public static final int TIME_FIELD_NUMBER- See Also:
-
WORKER_POOL_FIELD_NUMBER
public static final int WORKER_POOL_FIELD_NUMBER- See Also:
-
-
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
-
getCurrentNumWorkers
public long getCurrentNumWorkers()The current number of workers the job has.
int64 current_num_workers = 1;- Specified by:
getCurrentNumWorkersin interfaceAutoscalingEventOrBuilder- Returns:
- The currentNumWorkers.
-
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.
-
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.
-
getEventType
The type of autoscaling event to report.
.google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType event_type = 3;- Specified by:
getEventTypein interfaceAutoscalingEventOrBuilder- Returns:
- The eventType.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AutoscalingEvent parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutoscalingEvent parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutoscalingEvent parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutoscalingEvent parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutoscalingEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutoscalingEvent parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AutoscalingEvent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static AutoscalingEvent parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static AutoscalingEvent parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static AutoscalingEvent parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AutoscalingEvent.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-