Class CodeExecutionResult.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CodeExecutionResult.Builder>
com.google.cloud.aiplatform.v1.CodeExecutionResult.Builder
All Implemented Interfaces:
CodeExecutionResultOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CodeExecutionResult

public static final class CodeExecutionResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<CodeExecutionResult.Builder> implements CodeExecutionResultOrBuilder
 Result of executing the [ExecutableCode].

 Always follows a `part` containing the [ExecutableCode].
 
Protobuf type google.cloud.aiplatform.v1.CodeExecutionResult
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CodeExecutionResult.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CodeExecutionResult.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CodeExecutionResult.Builder>
    • getDefaultInstanceForType

      public CodeExecutionResult getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CodeExecutionResult build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CodeExecutionResult buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CodeExecutionResult.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CodeExecutionResult.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CodeExecutionResult.Builder>
    • mergeFrom

      public CodeExecutionResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CodeExecutionResult.Builder>
      Throws:
      IOException
    • getOutcomeValue

      public int getOutcomeValue()
       Required. Outcome of the code execution.
       
      .google.cloud.aiplatform.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOutcomeValue in interface CodeExecutionResultOrBuilder
      Returns:
      The enum numeric value on the wire for outcome.
    • setOutcomeValue

      public CodeExecutionResult.Builder setOutcomeValue(int value)
       Required. Outcome of the code execution.
       
      .google.cloud.aiplatform.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for outcome to set.
      Returns:
      This builder for chaining.
    • getOutcome

      public CodeExecutionResult.Outcome getOutcome()
       Required. Outcome of the code execution.
       
      .google.cloud.aiplatform.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOutcome in interface CodeExecutionResultOrBuilder
      Returns:
      The outcome.
    • setOutcome

       Required. Outcome of the code execution.
       
      .google.cloud.aiplatform.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The outcome to set.
      Returns:
      This builder for chaining.
    • clearOutcome

      public CodeExecutionResult.Builder clearOutcome()
       Required. Outcome of the code execution.
       
      .google.cloud.aiplatform.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getOutput

      public String getOutput()
       Optional. Contains stdout when code execution is successful, stderr or
       other description otherwise.
       
      string output = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOutput in interface CodeExecutionResultOrBuilder
      Returns:
      The output.
    • getOutputBytes

      public com.google.protobuf.ByteString getOutputBytes()
       Optional. Contains stdout when code execution is successful, stderr or
       other description otherwise.
       
      string output = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOutputBytes in interface CodeExecutionResultOrBuilder
      Returns:
      The bytes for output.
    • setOutput

      public CodeExecutionResult.Builder setOutput(String value)
       Optional. Contains stdout when code execution is successful, stderr or
       other description otherwise.
       
      string output = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The output to set.
      Returns:
      This builder for chaining.
    • clearOutput

      public CodeExecutionResult.Builder clearOutput()
       Optional. Contains stdout when code execution is successful, stderr or
       other description otherwise.
       
      string output = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setOutputBytes

      public CodeExecutionResult.Builder setOutputBytes(com.google.protobuf.ByteString value)
       Optional. Contains stdout when code execution is successful, stderr or
       other description otherwise.
       
      string output = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for output to set.
      Returns:
      This builder for chaining.