public static final class TaskExecution.Builder extends GeneratedMessageV3.Builder<TaskExecution.Builder> implements TaskExecutionOrBuilder
This Task Execution field includes detail information for
task execution procedures, based on StatusEvent types.
Protobuf type google.cloud.batch.v1alpha.TaskExecution
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TaskExecution.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public TaskExecution build()
buildPartial()
public TaskExecution buildPartial()
clear()
public TaskExecution.Builder clear()
Overrides
clearExitCode()
public TaskExecution.Builder clearExitCode()
When task is completed as the status of FAILED or SUCCEEDED,
exit code is for one task execution result, default is 0 as success.
int32 exit_code = 1;
clearField(Descriptors.FieldDescriptor field)
public TaskExecution.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public TaskExecution.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearStderrSnippet()
public TaskExecution.Builder clearStderrSnippet()
Optional. The tail end of any content written to standard error by the task
execution. This field will be populated only when the execution failed.
string stderr_snippet = 2 [(.google.api.field_behavior) = OPTIONAL];
clone()
public TaskExecution.Builder clone()
Overrides
getDefaultInstanceForType()
public TaskExecution getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getExitCode()
When task is completed as the status of FAILED or SUCCEEDED,
exit code is for one task execution result, default is 0 as success.
int32 exit_code = 1;
Returns |
Type |
Description |
int |
The exitCode.
|
getStderrSnippet()
public String getStderrSnippet()
Optional. The tail end of any content written to standard error by the task
execution. This field will be populated only when the execution failed.
string stderr_snippet = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The stderrSnippet.
|
getStderrSnippetBytes()
public ByteString getStderrSnippetBytes()
Optional. The tail end of any content written to standard error by the task
execution. This field will be populated only when the execution failed.
string stderr_snippet = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for stderrSnippet.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(TaskExecution other)
public TaskExecution.Builder mergeFrom(TaskExecution other)
public TaskExecution.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public TaskExecution.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TaskExecution.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setExitCode(int value)
public TaskExecution.Builder setExitCode(int value)
When task is completed as the status of FAILED or SUCCEEDED,
exit code is for one task execution result, default is 0 as success.
int32 exit_code = 1;
Parameter |
Name |
Description |
value |
int
The exitCode to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public TaskExecution.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TaskExecution.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setStderrSnippet(String value)
public TaskExecution.Builder setStderrSnippet(String value)
Optional. The tail end of any content written to standard error by the task
execution. This field will be populated only when the execution failed.
string stderr_snippet = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
String
The stderrSnippet to set.
|
setStderrSnippetBytes(ByteString value)
public TaskExecution.Builder setStderrSnippetBytes(ByteString value)
Optional. The tail end of any content written to standard error by the task
execution. This field will be populated only when the execution failed.
string stderr_snippet = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
ByteString
The bytes for stderrSnippet to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final TaskExecution.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides