Class BuildEventStreamProtos.TestResult.ExecutionInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BuildEventStreamProtos.TestResult.ExecutionInfo.Builder>
com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.TestResult.ExecutionInfo.Builder
- All Implemented Interfaces:
BuildEventStreamProtos.TestResult.ExecutionInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BuildEventStreamProtos.TestResult.ExecutionInfo
public static final class BuildEventStreamProtos.TestResult.ExecutionInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BuildEventStreamProtos.TestResult.ExecutionInfo.Builder>
implements BuildEventStreamProtos.TestResult.ExecutionInfoOrBuilder
Message providing optional meta data on the execution of the test action, if available.Protobuf type
build_event_stream.TestResult.ExecutionInfo-
Method Summary
Modifier and TypeMethodDescriptionaddAllResourceUsage(Iterable<? extends BuildEventStreamProtos.TestResult.ExecutionInfo.ResourceUsage> values) repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5;repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5;addResourceUsage(int index, BuildEventStreamProtos.TestResult.ExecutionInfo.ResourceUsage.Builder builderForValue) repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5;repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5;addResourceUsage(BuildEventStreamProtos.TestResult.ExecutionInfo.ResourceUsage.Builder builderForValue) repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5;repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5;addResourceUsageBuilder(int index) repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5;build()clear()True, if the reported attempt was a cache hit in a remote cache.The exit code of the test action.The hostname of the machine where the test action was executed (in case of remote execution), if known.repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5;Name of the strategy to execute this test action (e.g., "local", "remote")Deprecated.build_event_stream.TestResult.ExecutionInfo.timeout_seconds is deprecated..build_event_stream.TestResult.ExecutionInfo.TimingBreakdown timing_breakdown = 4;booleanTrue, if the reported attempt was a cache hit in a remote cache.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintThe exit code of the test action.The hostname of the machine where the test action was executed (in case of remote execution), if known.com.google.protobuf.ByteStringThe hostname of the machine where the test action was executed (in case of remote execution), if known.getResourceUsage(int index) repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5;getResourceUsageBuilder(int index) repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5;repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5;intrepeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5;repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5;getResourceUsageOrBuilder(int index) repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5;repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5;Name of the strategy to execute this test action (e.g., "local", "remote")com.google.protobuf.ByteStringName of the strategy to execute this test action (e.g., "local", "remote")intDeprecated.build_event_stream.TestResult.ExecutionInfo.timeout_seconds is deprecated..build_event_stream.TestResult.ExecutionInfo.TimingBreakdown timing_breakdown = 4;.build_event_stream.TestResult.ExecutionInfo.TimingBreakdown timing_breakdown = 4;.build_event_stream.TestResult.ExecutionInfo.TimingBreakdown timing_breakdown = 4;boolean.build_event_stream.TestResult.ExecutionInfo.TimingBreakdown timing_breakdown = 4;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) .build_event_stream.TestResult.ExecutionInfo.TimingBreakdown timing_breakdown = 4;removeResourceUsage(int index) repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5;setCachedRemotely(boolean value) True, if the reported attempt was a cache hit in a remote cache.setExitCode(int value) The exit code of the test action.setHostname(String value) The hostname of the machine where the test action was executed (in case of remote execution), if known.setHostnameBytes(com.google.protobuf.ByteString value) The hostname of the machine where the test action was executed (in case of remote execution), if known.repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5;setResourceUsage(int index, BuildEventStreamProtos.TestResult.ExecutionInfo.ResourceUsage.Builder builderForValue) repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5;setStrategy(String value) Name of the strategy to execute this test action (e.g., "local", "remote")setStrategyBytes(com.google.protobuf.ByteString value) Name of the strategy to execute this test action (e.g., "local", "remote")setTimeoutSeconds(int value) Deprecated.build_event_stream.TestResult.ExecutionInfo.timeout_seconds is deprecated..build_event_stream.TestResult.ExecutionInfo.TimingBreakdown timing_breakdown = 4;setTimingBreakdown(BuildEventStreamProtos.TestResult.ExecutionInfo.TimingBreakdown.Builder builderForValue) .build_event_stream.TestResult.ExecutionInfo.TimingBreakdown timing_breakdown = 4;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.TestResult.ExecutionInfo.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.TestResult.ExecutionInfo.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.TestResult.ExecutionInfo.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
public BuildEventStreamProtos.TestResult.ExecutionInfo.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BuildEventStreamProtos.TestResult.ExecutionInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BuildEventStreamProtos.TestResult.ExecutionInfo.Builder>
-
mergeFrom
public BuildEventStreamProtos.TestResult.ExecutionInfo.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.TestResult.ExecutionInfo.Builder>- Throws:
IOException
-
getTimeoutSeconds
Deprecated.build_event_stream.TestResult.ExecutionInfo.timeout_seconds is deprecated. See third_party/bazel/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto;l=729Deprecated, use TargetComplete.test_timeout instead.
int32 timeout_seconds = 1 [deprecated = true];- Specified by:
getTimeoutSecondsin interfaceBuildEventStreamProtos.TestResult.ExecutionInfoOrBuilder- Returns:
- The timeoutSeconds.
-
setTimeoutSeconds
@Deprecated public BuildEventStreamProtos.TestResult.ExecutionInfo.Builder setTimeoutSeconds(int value) Deprecated.build_event_stream.TestResult.ExecutionInfo.timeout_seconds is deprecated. See third_party/bazel/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto;l=729Deprecated, use TargetComplete.test_timeout instead.
int32 timeout_seconds = 1 [deprecated = true];- Parameters:
value- The timeoutSeconds to set.- Returns:
- This builder for chaining.
-
clearTimeoutSeconds
Deprecated.build_event_stream.TestResult.ExecutionInfo.timeout_seconds is deprecated. See third_party/bazel/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto;l=729Deprecated, use TargetComplete.test_timeout instead.
int32 timeout_seconds = 1 [deprecated = true];- Returns:
- This builder for chaining.
-
getStrategy
Name of the strategy to execute this test action (e.g., "local", "remote")
string strategy = 2;- Specified by:
getStrategyin interfaceBuildEventStreamProtos.TestResult.ExecutionInfoOrBuilder- Returns:
- The strategy.
-
getStrategyBytes
public com.google.protobuf.ByteString getStrategyBytes()Name of the strategy to execute this test action (e.g., "local", "remote")
string strategy = 2;- Specified by:
getStrategyBytesin interfaceBuildEventStreamProtos.TestResult.ExecutionInfoOrBuilder- Returns:
- The bytes for strategy.
-
setStrategy
Name of the strategy to execute this test action (e.g., "local", "remote")
string strategy = 2;- Parameters:
value- The strategy to set.- Returns:
- This builder for chaining.
-
clearStrategy
Name of the strategy to execute this test action (e.g., "local", "remote")
string strategy = 2;- Returns:
- This builder for chaining.
-
setStrategyBytes
public BuildEventStreamProtos.TestResult.ExecutionInfo.Builder setStrategyBytes(com.google.protobuf.ByteString value) Name of the strategy to execute this test action (e.g., "local", "remote")
string strategy = 2;- Parameters:
value- The bytes for strategy to set.- Returns:
- This builder for chaining.
-
getCachedRemotely
public boolean getCachedRemotely()True, if the reported attempt was a cache hit in a remote cache.
bool cached_remotely = 6;- Specified by:
getCachedRemotelyin interfaceBuildEventStreamProtos.TestResult.ExecutionInfoOrBuilder- Returns:
- The cachedRemotely.
-
setCachedRemotely
True, if the reported attempt was a cache hit in a remote cache.
bool cached_remotely = 6;- Parameters:
value- The cachedRemotely to set.- Returns:
- This builder for chaining.
-
clearCachedRemotely
True, if the reported attempt was a cache hit in a remote cache.
bool cached_remotely = 6;- Returns:
- This builder for chaining.
-
getExitCode
public int getExitCode()The exit code of the test action.
int32 exit_code = 7;- Specified by:
getExitCodein interfaceBuildEventStreamProtos.TestResult.ExecutionInfoOrBuilder- Returns:
- The exitCode.
-
setExitCode
The exit code of the test action.
int32 exit_code = 7;- Parameters:
value- The exitCode to set.- Returns:
- This builder for chaining.
-
clearExitCode
The exit code of the test action.
int32 exit_code = 7;- Returns:
- This builder for chaining.
-
getHostname
The hostname of the machine where the test action was executed (in case of remote execution), if known.
string hostname = 3;- Specified by:
getHostnamein interfaceBuildEventStreamProtos.TestResult.ExecutionInfoOrBuilder- Returns:
- The hostname.
-
getHostnameBytes
public com.google.protobuf.ByteString getHostnameBytes()The hostname of the machine where the test action was executed (in case of remote execution), if known.
string hostname = 3;- Specified by:
getHostnameBytesin interfaceBuildEventStreamProtos.TestResult.ExecutionInfoOrBuilder- Returns:
- The bytes for hostname.
-
setHostname
The hostname of the machine where the test action was executed (in case of remote execution), if known.
string hostname = 3;- Parameters:
value- The hostname to set.- Returns:
- This builder for chaining.
-
clearHostname
The hostname of the machine where the test action was executed (in case of remote execution), if known.
string hostname = 3;- Returns:
- This builder for chaining.
-
setHostnameBytes
public BuildEventStreamProtos.TestResult.ExecutionInfo.Builder setHostnameBytes(com.google.protobuf.ByteString value) The hostname of the machine where the test action was executed (in case of remote execution), if known.
string hostname = 3;- Parameters:
value- The bytes for hostname to set.- Returns:
- This builder for chaining.
-
hasTimingBreakdown
public boolean hasTimingBreakdown().build_event_stream.TestResult.ExecutionInfo.TimingBreakdown timing_breakdown = 4;- Specified by:
hasTimingBreakdownin interfaceBuildEventStreamProtos.TestResult.ExecutionInfoOrBuilder- Returns:
- Whether the timingBreakdown field is set.
-
getTimingBreakdown
.build_event_stream.TestResult.ExecutionInfo.TimingBreakdown timing_breakdown = 4;- Specified by:
getTimingBreakdownin interfaceBuildEventStreamProtos.TestResult.ExecutionInfoOrBuilder- Returns:
- The timingBreakdown.
-
setTimingBreakdown
public BuildEventStreamProtos.TestResult.ExecutionInfo.Builder setTimingBreakdown(BuildEventStreamProtos.TestResult.ExecutionInfo.TimingBreakdown value) .build_event_stream.TestResult.ExecutionInfo.TimingBreakdown timing_breakdown = 4; -
setTimingBreakdown
public BuildEventStreamProtos.TestResult.ExecutionInfo.Builder setTimingBreakdown(BuildEventStreamProtos.TestResult.ExecutionInfo.TimingBreakdown.Builder builderForValue) .build_event_stream.TestResult.ExecutionInfo.TimingBreakdown timing_breakdown = 4; -
mergeTimingBreakdown
public BuildEventStreamProtos.TestResult.ExecutionInfo.Builder mergeTimingBreakdown(BuildEventStreamProtos.TestResult.ExecutionInfo.TimingBreakdown value) .build_event_stream.TestResult.ExecutionInfo.TimingBreakdown timing_breakdown = 4; -
clearTimingBreakdown
.build_event_stream.TestResult.ExecutionInfo.TimingBreakdown timing_breakdown = 4; -
getTimingBreakdownBuilder
public BuildEventStreamProtos.TestResult.ExecutionInfo.TimingBreakdown.Builder getTimingBreakdownBuilder().build_event_stream.TestResult.ExecutionInfo.TimingBreakdown timing_breakdown = 4; -
getTimingBreakdownOrBuilder
public BuildEventStreamProtos.TestResult.ExecutionInfo.TimingBreakdownOrBuilder getTimingBreakdownOrBuilder().build_event_stream.TestResult.ExecutionInfo.TimingBreakdown timing_breakdown = 4;- Specified by:
getTimingBreakdownOrBuilderin interfaceBuildEventStreamProtos.TestResult.ExecutionInfoOrBuilder
-
getResourceUsageList
repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5;- Specified by:
getResourceUsageListin interfaceBuildEventStreamProtos.TestResult.ExecutionInfoOrBuilder
-
getResourceUsageCount
public int getResourceUsageCount()repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5;- Specified by:
getResourceUsageCountin interfaceBuildEventStreamProtos.TestResult.ExecutionInfoOrBuilder
-
getResourceUsage
repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5;- Specified by:
getResourceUsagein interfaceBuildEventStreamProtos.TestResult.ExecutionInfoOrBuilder
-
setResourceUsage
public BuildEventStreamProtos.TestResult.ExecutionInfo.Builder setResourceUsage(int index, BuildEventStreamProtos.TestResult.ExecutionInfo.ResourceUsage value) repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5; -
setResourceUsage
public BuildEventStreamProtos.TestResult.ExecutionInfo.Builder setResourceUsage(int index, BuildEventStreamProtos.TestResult.ExecutionInfo.ResourceUsage.Builder builderForValue) repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5; -
addResourceUsage
public BuildEventStreamProtos.TestResult.ExecutionInfo.Builder addResourceUsage(BuildEventStreamProtos.TestResult.ExecutionInfo.ResourceUsage value) repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5; -
addResourceUsage
public BuildEventStreamProtos.TestResult.ExecutionInfo.Builder addResourceUsage(int index, BuildEventStreamProtos.TestResult.ExecutionInfo.ResourceUsage value) repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5; -
addResourceUsage
public BuildEventStreamProtos.TestResult.ExecutionInfo.Builder addResourceUsage(BuildEventStreamProtos.TestResult.ExecutionInfo.ResourceUsage.Builder builderForValue) repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5; -
addResourceUsage
public BuildEventStreamProtos.TestResult.ExecutionInfo.Builder addResourceUsage(int index, BuildEventStreamProtos.TestResult.ExecutionInfo.ResourceUsage.Builder builderForValue) repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5; -
addAllResourceUsage
public BuildEventStreamProtos.TestResult.ExecutionInfo.Builder addAllResourceUsage(Iterable<? extends BuildEventStreamProtos.TestResult.ExecutionInfo.ResourceUsage> values) repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5; -
clearResourceUsage
repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5; -
removeResourceUsage
repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5; -
getResourceUsageBuilder
public BuildEventStreamProtos.TestResult.ExecutionInfo.ResourceUsage.Builder getResourceUsageBuilder(int index) repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5; -
getResourceUsageOrBuilder
public BuildEventStreamProtos.TestResult.ExecutionInfo.ResourceUsageOrBuilder getResourceUsageOrBuilder(int index) repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5;- Specified by:
getResourceUsageOrBuilderin interfaceBuildEventStreamProtos.TestResult.ExecutionInfoOrBuilder
-
getResourceUsageOrBuilderList
public List<? extends BuildEventStreamProtos.TestResult.ExecutionInfo.ResourceUsageOrBuilder> getResourceUsageOrBuilderList()repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5;- Specified by:
getResourceUsageOrBuilderListin interfaceBuildEventStreamProtos.TestResult.ExecutionInfoOrBuilder
-
addResourceUsageBuilder
public BuildEventStreamProtos.TestResult.ExecutionInfo.ResourceUsage.Builder addResourceUsageBuilder()repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5; -
addResourceUsageBuilder
public BuildEventStreamProtos.TestResult.ExecutionInfo.ResourceUsage.Builder addResourceUsageBuilder(int index) repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5; -
getResourceUsageBuilderList
public List<BuildEventStreamProtos.TestResult.ExecutionInfo.ResourceUsage.Builder> getResourceUsageBuilderList()repeated .build_event_stream.TestResult.ExecutionInfo.ResourceUsage resource_usage = 5;
-