Interface BuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
BuildEventStreamProtos.BuildMetrics.WorkerMetrics,BuildEventStreamProtos.BuildMetrics.WorkerMetrics.Builder
- Enclosing class:
- BuildEventStreamProtos.BuildMetrics
public static interface BuildEventStreamProtos.BuildMetrics.WorkerMetricsOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlongint64 actions_executed = 11;getCode()optional .failure_details.Worker.Code code = 12;intoptional .failure_details.Worker.Code code = 12;booleanTODO(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.longint64 prior_actions_executed = 13;intWorker process id.intDeprecated.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;Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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];- Returns:
- The workerId.
-
getWorkerIdsList
Ids of workers. Could be multiple in case of multiplex workers
repeated uint32 worker_ids = 8;- Returns:
- A list containing the workerIds.
-
getWorkerIdsCount
int getWorkerIdsCount()Ids of workers. Could be multiple in case of multiplex workers
repeated uint32 worker_ids = 8;- Returns:
- The count of workerIds.
-
getWorkerIds
int getWorkerIds(int index) Ids of workers. Could be multiple in case of multiplex workers
repeated uint32 worker_ids = 8;- Parameters:
index- The index of the element to return.- Returns:
- The workerIds at the given index.
-
getProcessId
int getProcessId()Worker process id. If there is no process for worker, equals to zero.
uint32 process_id = 2;- Returns:
- The processId.
-
getMnemonic
String getMnemonic()Mnemonic of running worker.
string mnemonic = 3;- Returns:
- The mnemonic.
-
getMnemonicBytes
com.google.protobuf.ByteString getMnemonicBytes()Mnemonic of running worker.
string mnemonic = 3;- Returns:
- The bytes for mnemonic.
-
getIsMultiplex
boolean getIsMultiplex()Multiplex or singleplex worker.
bool is_multiplex = 4;- Returns:
- The isMultiplex.
-
getIsSandbox
boolean getIsSandbox()Using worker sandbox file system or not.
bool is_sandbox = 5;- Returns:
- The isSandbox.
-
getIsMeasurable
boolean getIsMeasurable()TODO(b/300067854): Deprecate since all worker metrics should have their WorkerStats set.
bool is_measurable = 6;- Returns:
- The isMeasurable.
-
getWorkerKeyHash
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;- Returns:
- The workerKeyHash.
-
getWorkerStatusValue
int getWorkerStatusValue().build_event_stream.BuildMetrics.WorkerMetrics.WorkerStatus worker_status = 10;- Returns:
- The enum numeric value on the wire for workerStatus.
-
getWorkerStatus
BuildEventStreamProtos.BuildMetrics.WorkerMetrics.WorkerStatus getWorkerStatus().build_event_stream.BuildMetrics.WorkerMetrics.WorkerStatus worker_status = 10;- Returns:
- The workerStatus.
-
hasCode
boolean hasCode()optional .failure_details.Worker.Code code = 12;- Returns:
- Whether the code field is set.
-
getCodeValue
int getCodeValue()optional .failure_details.Worker.Code code = 12;- Returns:
- The enum numeric value on the wire for code.
-
getCode
FailureDetails.Worker.Code getCode()optional .failure_details.Worker.Code code = 12;- Returns:
- The code.
-
getActionsExecuted
long getActionsExecuted()int64 actions_executed = 11;- Returns:
- The actionsExecuted.
-
getPriorActionsExecuted
long getPriorActionsExecuted()int64 prior_actions_executed = 13;- Returns:
- The priorActionsExecuted.
-
getWorkerStatsList
List<BuildEventStreamProtos.BuildMetrics.WorkerMetrics.WorkerStats> getWorkerStatsList()Combined workers statistics.
repeated .build_event_stream.BuildMetrics.WorkerMetrics.WorkerStats worker_stats = 7; -
getWorkerStats
Combined workers statistics.
repeated .build_event_stream.BuildMetrics.WorkerMetrics.WorkerStats worker_stats = 7; -
getWorkerStatsCount
int getWorkerStatsCount()Combined workers statistics.
repeated .build_event_stream.BuildMetrics.WorkerMetrics.WorkerStats worker_stats = 7; -
getWorkerStatsOrBuilderList
List<? extends BuildEventStreamProtos.BuildMetrics.WorkerMetrics.WorkerStatsOrBuilder> getWorkerStatsOrBuilderList()Combined workers statistics.
repeated .build_event_stream.BuildMetrics.WorkerMetrics.WorkerStats worker_stats = 7; -
getWorkerStatsOrBuilder
BuildEventStreamProtos.BuildMetrics.WorkerMetrics.WorkerStatsOrBuilder getWorkerStatsOrBuilder(int index) Combined workers statistics.
repeated .build_event_stream.BuildMetrics.WorkerMetrics.WorkerStats worker_stats = 7;
-