Class BuildEventStreamProtos.BuildMetrics.WorkerMetrics
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.BuildMetrics.WorkerMetrics
- All Implemented Interfaces:
BuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- BuildEventStreamProtos.BuildMetrics
public static final class BuildEventStreamProtos.BuildMetrics.WorkerMetrics
extends com.google.protobuf.GeneratedMessage
implements BuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder
Information about all workers that were alive during the invocation.Protobuf type
build_event_stream.BuildMetrics.WorkerMetrics- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classInformation about all workers that were alive during the invocation.static final classInformation collected from worker at some point.static interfacestatic enumProtobuf enumbuild_event_stream.BuildMetrics.WorkerMetrics.WorkerStatusNested 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 intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongint64 actions_executed = 11;getCode()optional .failure_details.Worker.Code code = 12;intoptional .failure_details.Worker.Code code = 12;static final com.google.protobuf.Descriptors.DescriptorbooleanTODO(b/300067854): Deprecate since all worker metrics should have their WorkerStats set.booleanMultiplex or singleplex worker.booleanUsing worker sandbox file system or not.Mnemonic of running worker.com.google.protobuf.ByteStringMnemonic of running worker.com.google.protobuf.Parser<BuildEventStreamProtos.BuildMetrics.WorkerMetrics>longint64 prior_actions_executed = 13;intWorker process id.intintDeprecated.build_event_stream.BuildMetrics.WorkerMetrics.worker_id is deprecated.intgetWorkerIds(int index) Ids of workers.intIds of workers.Ids of workers.longHash value of worker key.getWorkerStats(int index) Combined workers statistics.intCombined workers statistics.Combined workers statistics.getWorkerStatsOrBuilder(int index) Combined workers statistics.Combined workers statistics..build_event_stream.BuildMetrics.WorkerMetrics.WorkerStatus worker_status = 10;int.build_event_stream.BuildMetrics.WorkerMetrics.WorkerStatus worker_status = 10;booleanhasCode()optional .failure_details.Worker.Code code = 12;inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<BuildEventStreamProtos.BuildMetrics.WorkerMetrics>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, 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
-
WORKER_ID_FIELD_NUMBER
public static final int WORKER_ID_FIELD_NUMBER- See Also:
-
WORKER_IDS_FIELD_NUMBER
public static final int WORKER_IDS_FIELD_NUMBER- See Also:
-
PROCESS_ID_FIELD_NUMBER
public static final int PROCESS_ID_FIELD_NUMBER- See Also:
-
MNEMONIC_FIELD_NUMBER
public static final int MNEMONIC_FIELD_NUMBER- See Also:
-
IS_MULTIPLEX_FIELD_NUMBER
public static final int IS_MULTIPLEX_FIELD_NUMBER- See Also:
-
IS_SANDBOX_FIELD_NUMBER
public static final int IS_SANDBOX_FIELD_NUMBER- See Also:
-
IS_MEASURABLE_FIELD_NUMBER
public static final int IS_MEASURABLE_FIELD_NUMBER- See Also:
-
WORKER_KEY_HASH_FIELD_NUMBER
public static final int WORKER_KEY_HASH_FIELD_NUMBER- See Also:
-
WORKER_STATUS_FIELD_NUMBER
public static final int WORKER_STATUS_FIELD_NUMBER- See Also:
-
CODE_FIELD_NUMBER
public static final int CODE_FIELD_NUMBER- See Also:
-
ACTIONS_EXECUTED_FIELD_NUMBER
public static final int ACTIONS_EXECUTED_FIELD_NUMBER- See Also:
-
PRIOR_ACTIONS_EXECUTED_FIELD_NUMBER
public static final int PRIOR_ACTIONS_EXECUTED_FIELD_NUMBER- See Also:
-
WORKER_STATS_FIELD_NUMBER
public static final int WORKER_STATS_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
-
getWorkerId
Deprecated.build_event_stream.BuildMetrics.WorkerMetrics.worker_id is deprecated. See third_party/bazel/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto;l=1199Deprecated. Use worker_ids instead of this field.
int32 worker_id = 1 [deprecated = true];- Specified by:
getWorkerIdin interfaceBuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder- Returns:
- The workerId.
-
getWorkerIdsList
Ids of workers. Could be multiple in case of multiplex workers
repeated uint32 worker_ids = 8;- Specified by:
getWorkerIdsListin interfaceBuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder- Returns:
- A list containing the workerIds.
-
getWorkerIdsCount
public int getWorkerIdsCount()Ids of workers. Could be multiple in case of multiplex workers
repeated uint32 worker_ids = 8;- Specified by:
getWorkerIdsCountin interfaceBuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder- Returns:
- The count of workerIds.
-
getWorkerIds
public int getWorkerIds(int index) Ids of workers. Could be multiple in case of multiplex workers
repeated uint32 worker_ids = 8;- Specified by:
getWorkerIdsin interfaceBuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The workerIds at the given index.
-
getProcessId
public int getProcessId()Worker process id. If there is no process for worker, equals to zero.
uint32 process_id = 2;- Specified by:
getProcessIdin interfaceBuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder- Returns:
- The processId.
-
getMnemonic
Mnemonic of running worker.
string mnemonic = 3;- Specified by:
getMnemonicin interfaceBuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder- Returns:
- The mnemonic.
-
getMnemonicBytes
public com.google.protobuf.ByteString getMnemonicBytes()Mnemonic of running worker.
string mnemonic = 3;- Specified by:
getMnemonicBytesin interfaceBuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder- Returns:
- The bytes for mnemonic.
-
getIsMultiplex
public boolean getIsMultiplex()Multiplex or singleplex worker.
bool is_multiplex = 4;- Specified by:
getIsMultiplexin interfaceBuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder- Returns:
- The isMultiplex.
-
getIsSandbox
public boolean getIsSandbox()Using worker sandbox file system or not.
bool is_sandbox = 5;- Specified by:
getIsSandboxin interfaceBuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder- Returns:
- The isSandbox.
-
getIsMeasurable
public boolean getIsMeasurable()TODO(b/300067854): Deprecate since all worker metrics should have their WorkerStats set.
bool is_measurable = 6;- Specified by:
getIsMeasurablein interfaceBuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder- Returns:
- The isMeasurable.
-
getWorkerKeyHash
public long getWorkerKeyHash()Hash value of worker key. Needed to distinguish worker pools with same menmonic but with different worker keys.
int64 worker_key_hash = 9;- Specified by:
getWorkerKeyHashin interfaceBuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder- Returns:
- The workerKeyHash.
-
getWorkerStatusValue
public int getWorkerStatusValue().build_event_stream.BuildMetrics.WorkerMetrics.WorkerStatus worker_status = 10;- Specified by:
getWorkerStatusValuein interfaceBuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder- Returns:
- The enum numeric value on the wire for workerStatus.
-
getWorkerStatus
.build_event_stream.BuildMetrics.WorkerMetrics.WorkerStatus worker_status = 10;- Specified by:
getWorkerStatusin interfaceBuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder- Returns:
- The workerStatus.
-
hasCode
public boolean hasCode()optional .failure_details.Worker.Code code = 12;- Specified by:
hasCodein interfaceBuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder- Returns:
- Whether the code field is set.
-
getCodeValue
public int getCodeValue()optional .failure_details.Worker.Code code = 12;- Specified by:
getCodeValuein interfaceBuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder- Returns:
- The enum numeric value on the wire for code.
-
getCode
optional .failure_details.Worker.Code code = 12;- Specified by:
getCodein interfaceBuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder- Returns:
- The code.
-
getActionsExecuted
public long getActionsExecuted()int64 actions_executed = 11;- Specified by:
getActionsExecutedin interfaceBuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder- Returns:
- The actionsExecuted.
-
getPriorActionsExecuted
public long getPriorActionsExecuted()int64 prior_actions_executed = 13;- Specified by:
getPriorActionsExecutedin interfaceBuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder- Returns:
- The priorActionsExecuted.
-
getWorkerStatsList
Combined workers statistics.
repeated .build_event_stream.BuildMetrics.WorkerMetrics.WorkerStats worker_stats = 7;- Specified by:
getWorkerStatsListin interfaceBuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder
-
getWorkerStatsOrBuilderList
public List<? extends BuildEventStreamProtos.BuildMetrics.WorkerMetrics.WorkerStatsOrBuilder> getWorkerStatsOrBuilderList()Combined workers statistics.
repeated .build_event_stream.BuildMetrics.WorkerMetrics.WorkerStats worker_stats = 7;- Specified by:
getWorkerStatsOrBuilderListin interfaceBuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder
-
getWorkerStatsCount
public int getWorkerStatsCount()Combined workers statistics.
repeated .build_event_stream.BuildMetrics.WorkerMetrics.WorkerStats worker_stats = 7;- Specified by:
getWorkerStatsCountin interfaceBuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder
-
getWorkerStats
Combined workers statistics.
repeated .build_event_stream.BuildMetrics.WorkerMetrics.WorkerStats worker_stats = 7;- Specified by:
getWorkerStatsin interfaceBuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder
-
getWorkerStatsOrBuilder
public BuildEventStreamProtos.BuildMetrics.WorkerMetrics.WorkerStatsOrBuilder getWorkerStatsOrBuilder(int index) Combined workers statistics.
repeated .build_event_stream.BuildMetrics.WorkerMetrics.WorkerStats worker_stats = 7;- Specified by:
getWorkerStatsOrBuilderin interfaceBuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder
-
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 BuildEventStreamProtos.BuildMetrics.WorkerMetrics parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BuildEventStreamProtos.BuildMetrics.WorkerMetrics parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BuildEventStreamProtos.BuildMetrics.WorkerMetrics parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BuildEventStreamProtos.BuildMetrics.WorkerMetrics parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BuildEventStreamProtos.BuildMetrics.WorkerMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BuildEventStreamProtos.BuildMetrics.WorkerMetrics parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BuildEventStreamProtos.BuildMetrics.WorkerMetrics parseFrom(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static BuildEventStreamProtos.BuildMetrics.WorkerMetrics parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static BuildEventStreamProtos.BuildMetrics.WorkerMetrics parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static BuildEventStreamProtos.BuildMetrics.WorkerMetrics parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static BuildEventStreamProtos.BuildMetrics.WorkerMetrics parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static BuildEventStreamProtos.BuildMetrics.WorkerMetrics 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
public static BuildEventStreamProtos.BuildMetrics.WorkerMetrics.Builder newBuilder(BuildEventStreamProtos.BuildMetrics.WorkerMetrics prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BuildEventStreamProtos.BuildMetrics.WorkerMetrics.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
public static com.google.protobuf.Parser<BuildEventStreamProtos.BuildMetrics.WorkerMetrics> parser() -
getParserForType
public com.google.protobuf.Parser<BuildEventStreamProtos.BuildMetrics.WorkerMetrics> 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
-