Class BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder>
com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder
- All Implemented Interfaces:
BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStatsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
public static final class BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder>
implements BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStatsOrBuilder
Protobuf type
build_event_stream.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Number of workers alive at the end of the build.Number of workers created during a build.Number of workers destroyed during a build (sum of all workers destroyed by eviction, UserExecException, IoException, InterruptedException and unknown reasons below).Number of workers evicted during a build.Hash of worker pool these stats are for.Number of workers destroyed due to InterruptedExceptions.Number of workers destroyed due to IoExceptions.Mnemonic of workers these stats are for.Number of workers destroyed due to an unknown reason.Number of workers destroyed due to UserExecExceptions.longNumber of workers alive at the end of the build.longNumber of workers created during a build.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongNumber of workers destroyed during a build (sum of all workers destroyed by eviction, UserExecException, IoException, InterruptedException and unknown reasons below).longNumber of workers evicted during a build.intgetHash()Hash of worker pool these stats are for.longNumber of workers destroyed due to InterruptedExceptions.longNumber of workers destroyed due to IoExceptions.Mnemonic of workers these stats are for.com.google.protobuf.ByteStringMnemonic of workers these stats are for.longNumber of workers destroyed due to an unknown reason.longNumber of workers destroyed due to UserExecExceptions.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAliveCount(long value) Number of workers alive at the end of the build.setCreatedCount(long value) Number of workers created during a build.setDestroyedCount(long value) Number of workers destroyed during a build (sum of all workers destroyed by eviction, UserExecException, IoException, InterruptedException and unknown reasons below).setEvictedCount(long value) Number of workers evicted during a build.setHash(int value) Hash of worker pool these stats are for.setInterruptedExceptionDestroyedCount(long value) Number of workers destroyed due to InterruptedExceptions.setIoExceptionDestroyedCount(long value) Number of workers destroyed due to IoExceptions.setMnemonic(String value) Mnemonic of workers these stats are for.setMnemonicBytes(com.google.protobuf.ByteString value) Mnemonic of workers these stats are for.setUnknownDestroyedCount(long value) Number of workers destroyed due to an unknown reason.setUserExecExceptionDestroyedCount(long value) Number of workers destroyed due to UserExecExceptions.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<BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.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<BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.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<BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder>
-
getDefaultInstanceForType
public BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats 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
public BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder>
-
mergeFrom
public BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.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<BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder>- Throws:
IOException
-
getHash
public int getHash()Hash of worker pool these stats are for. Contains information about startup flags.
int32 hash = 1;- Specified by:
getHashin interfaceBuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStatsOrBuilder- Returns:
- The hash.
-
setHash
public BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder setHash(int value) Hash of worker pool these stats are for. Contains information about startup flags.
int32 hash = 1;- Parameters:
value- The hash to set.- Returns:
- This builder for chaining.
-
clearHash
Hash of worker pool these stats are for. Contains information about startup flags.
int32 hash = 1;- Returns:
- This builder for chaining.
-
getMnemonic
Mnemonic of workers these stats are for.
string mnemonic = 2;- Specified by:
getMnemonicin interfaceBuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStatsOrBuilder- Returns:
- The mnemonic.
-
getMnemonicBytes
public com.google.protobuf.ByteString getMnemonicBytes()Mnemonic of workers these stats are for.
string mnemonic = 2;- Specified by:
getMnemonicBytesin interfaceBuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStatsOrBuilder- Returns:
- The bytes for mnemonic.
-
setMnemonic
public BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder setMnemonic(String value) Mnemonic of workers these stats are for.
string mnemonic = 2;- Parameters:
value- The mnemonic to set.- Returns:
- This builder for chaining.
-
clearMnemonic
public BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder clearMnemonic()Mnemonic of workers these stats are for.
string mnemonic = 2;- Returns:
- This builder for chaining.
-
setMnemonicBytes
public BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder setMnemonicBytes(com.google.protobuf.ByteString value) Mnemonic of workers these stats are for.
string mnemonic = 2;- Parameters:
value- The bytes for mnemonic to set.- Returns:
- This builder for chaining.
-
getCreatedCount
public long getCreatedCount()Number of workers created during a build.
int64 created_count = 3;- Specified by:
getCreatedCountin interfaceBuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStatsOrBuilder- Returns:
- The createdCount.
-
setCreatedCount
public BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder setCreatedCount(long value) Number of workers created during a build.
int64 created_count = 3;- Parameters:
value- The createdCount to set.- Returns:
- This builder for chaining.
-
clearCreatedCount
public BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder clearCreatedCount()Number of workers created during a build.
int64 created_count = 3;- Returns:
- This builder for chaining.
-
getDestroyedCount
public long getDestroyedCount()Number of workers destroyed during a build (sum of all workers destroyed by eviction, UserExecException, IoException, InterruptedException and unknown reasons below).
int64 destroyed_count = 4;- Specified by:
getDestroyedCountin interfaceBuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStatsOrBuilder- Returns:
- The destroyedCount.
-
setDestroyedCount
public BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder setDestroyedCount(long value) Number of workers destroyed during a build (sum of all workers destroyed by eviction, UserExecException, IoException, InterruptedException and unknown reasons below).
int64 destroyed_count = 4;- Parameters:
value- The destroyedCount to set.- Returns:
- This builder for chaining.
-
clearDestroyedCount
public BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder clearDestroyedCount()Number of workers destroyed during a build (sum of all workers destroyed by eviction, UserExecException, IoException, InterruptedException and unknown reasons below).
int64 destroyed_count = 4;- Returns:
- This builder for chaining.
-
getEvictedCount
public long getEvictedCount()Number of workers evicted during a build.
int64 evicted_count = 5;- Specified by:
getEvictedCountin interfaceBuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStatsOrBuilder- Returns:
- The evictedCount.
-
setEvictedCount
public BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder setEvictedCount(long value) Number of workers evicted during a build.
int64 evicted_count = 5;- Parameters:
value- The evictedCount to set.- Returns:
- This builder for chaining.
-
clearEvictedCount
public BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder clearEvictedCount()Number of workers evicted during a build.
int64 evicted_count = 5;- Returns:
- This builder for chaining.
-
getUserExecExceptionDestroyedCount
public long getUserExecExceptionDestroyedCount()Number of workers destroyed due to UserExecExceptions.
int64 user_exec_exception_destroyed_count = 6;- Specified by:
getUserExecExceptionDestroyedCountin interfaceBuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStatsOrBuilder- Returns:
- The userExecExceptionDestroyedCount.
-
setUserExecExceptionDestroyedCount
public BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder setUserExecExceptionDestroyedCount(long value) Number of workers destroyed due to UserExecExceptions.
int64 user_exec_exception_destroyed_count = 6;- Parameters:
value- The userExecExceptionDestroyedCount to set.- Returns:
- This builder for chaining.
-
clearUserExecExceptionDestroyedCount
public BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder clearUserExecExceptionDestroyedCount()Number of workers destroyed due to UserExecExceptions.
int64 user_exec_exception_destroyed_count = 6;- Returns:
- This builder for chaining.
-
getIoExceptionDestroyedCount
public long getIoExceptionDestroyedCount()Number of workers destroyed due to IoExceptions.
int64 io_exception_destroyed_count = 7;- Specified by:
getIoExceptionDestroyedCountin interfaceBuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStatsOrBuilder- Returns:
- The ioExceptionDestroyedCount.
-
setIoExceptionDestroyedCount
public BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder setIoExceptionDestroyedCount(long value) Number of workers destroyed due to IoExceptions.
int64 io_exception_destroyed_count = 7;- Parameters:
value- The ioExceptionDestroyedCount to set.- Returns:
- This builder for chaining.
-
clearIoExceptionDestroyedCount
public BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder clearIoExceptionDestroyedCount()Number of workers destroyed due to IoExceptions.
int64 io_exception_destroyed_count = 7;- Returns:
- This builder for chaining.
-
getInterruptedExceptionDestroyedCount
public long getInterruptedExceptionDestroyedCount()Number of workers destroyed due to InterruptedExceptions.
int64 interrupted_exception_destroyed_count = 8;- Specified by:
getInterruptedExceptionDestroyedCountin interfaceBuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStatsOrBuilder- Returns:
- The interruptedExceptionDestroyedCount.
-
setInterruptedExceptionDestroyedCount
public BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder setInterruptedExceptionDestroyedCount(long value) Number of workers destroyed due to InterruptedExceptions.
int64 interrupted_exception_destroyed_count = 8;- Parameters:
value- The interruptedExceptionDestroyedCount to set.- Returns:
- This builder for chaining.
-
clearInterruptedExceptionDestroyedCount
public BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder clearInterruptedExceptionDestroyedCount()Number of workers destroyed due to InterruptedExceptions.
int64 interrupted_exception_destroyed_count = 8;- Returns:
- This builder for chaining.
-
getUnknownDestroyedCount
public long getUnknownDestroyedCount()Number of workers destroyed due to an unknown reason.
int64 unknown_destroyed_count = 9;- Specified by:
getUnknownDestroyedCountin interfaceBuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStatsOrBuilder- Returns:
- The unknownDestroyedCount.
-
setUnknownDestroyedCount
public BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder setUnknownDestroyedCount(long value) Number of workers destroyed due to an unknown reason.
int64 unknown_destroyed_count = 9;- Parameters:
value- The unknownDestroyedCount to set.- Returns:
- This builder for chaining.
-
clearUnknownDestroyedCount
public BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder clearUnknownDestroyedCount()Number of workers destroyed due to an unknown reason.
int64 unknown_destroyed_count = 9;- Returns:
- This builder for chaining.
-
getAliveCount
public long getAliveCount()Number of workers alive at the end of the build.
int64 alive_count = 10;- Specified by:
getAliveCountin interfaceBuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStatsOrBuilder- Returns:
- The aliveCount.
-
setAliveCount
public BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder setAliveCount(long value) Number of workers alive at the end of the build.
int64 alive_count = 10;- Parameters:
value- The aliveCount to set.- Returns:
- This builder for chaining.
-
clearAliveCount
public BuildEventStreamProtos.BuildMetrics.WorkerPoolMetrics.WorkerPoolStats.Builder clearAliveCount()Number of workers alive at the end of the build.
int64 alive_count = 10;- Returns:
- This builder for chaining.
-