Class Execution.Error.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Execution.Error.Builder>
com.google.cloud.workflows.executions.v1.Execution.Error.Builder
All Implemented Interfaces:
Execution.ErrorOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Execution.Error

public static final class Execution.Error.Builder extends com.google.protobuf.GeneratedMessage.Builder<Execution.Error.Builder> implements Execution.ErrorOrBuilder
 Error describes why the execution was abnormally terminated.
 
Protobuf type google.cloud.workflows.executions.v1.Execution.Error
  • 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<Execution.Error.Builder>
    • clear

      public Execution.Error.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<Execution.Error.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<Execution.Error.Builder>
    • getDefaultInstanceForType

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

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

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

      public Execution.Error.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<Execution.Error.Builder>
    • mergeFrom

      public Execution.Error.Builder mergeFrom(Execution.Error other)
    • isInitialized

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

      public Execution.Error.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<Execution.Error.Builder>
      Throws:
      IOException
    • getPayload

      public String getPayload()
       Error message and data returned represented as a JSON string.
       
      string payload = 1;
      Specified by:
      getPayload in interface Execution.ErrorOrBuilder
      Returns:
      The payload.
    • getPayloadBytes

      public com.google.protobuf.ByteString getPayloadBytes()
       Error message and data returned represented as a JSON string.
       
      string payload = 1;
      Specified by:
      getPayloadBytes in interface Execution.ErrorOrBuilder
      Returns:
      The bytes for payload.
    • setPayload

      public Execution.Error.Builder setPayload(String value)
       Error message and data returned represented as a JSON string.
       
      string payload = 1;
      Parameters:
      value - The payload to set.
      Returns:
      This builder for chaining.
    • clearPayload

      public Execution.Error.Builder clearPayload()
       Error message and data returned represented as a JSON string.
       
      string payload = 1;
      Returns:
      This builder for chaining.
    • setPayloadBytes

      public Execution.Error.Builder setPayloadBytes(com.google.protobuf.ByteString value)
       Error message and data returned represented as a JSON string.
       
      string payload = 1;
      Parameters:
      value - The bytes for payload to set.
      Returns:
      This builder for chaining.
    • getContext

      public String getContext()
       Human-readable stack trace string.
       
      string context = 2;
      Specified by:
      getContext in interface Execution.ErrorOrBuilder
      Returns:
      The context.
    • getContextBytes

      public com.google.protobuf.ByteString getContextBytes()
       Human-readable stack trace string.
       
      string context = 2;
      Specified by:
      getContextBytes in interface Execution.ErrorOrBuilder
      Returns:
      The bytes for context.
    • setContext

      public Execution.Error.Builder setContext(String value)
       Human-readable stack trace string.
       
      string context = 2;
      Parameters:
      value - The context to set.
      Returns:
      This builder for chaining.
    • clearContext

      public Execution.Error.Builder clearContext()
       Human-readable stack trace string.
       
      string context = 2;
      Returns:
      This builder for chaining.
    • setContextBytes

      public Execution.Error.Builder setContextBytes(com.google.protobuf.ByteString value)
       Human-readable stack trace string.
       
      string context = 2;
      Parameters:
      value - The bytes for context to set.
      Returns:
      This builder for chaining.
    • hasStackTrace

      public boolean hasStackTrace()
       Stack trace with detailed information of where error was generated.
       
      .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3;
      Specified by:
      hasStackTrace in interface Execution.ErrorOrBuilder
      Returns:
      Whether the stackTrace field is set.
    • getStackTrace

      public Execution.StackTrace getStackTrace()
       Stack trace with detailed information of where error was generated.
       
      .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3;
      Specified by:
      getStackTrace in interface Execution.ErrorOrBuilder
      Returns:
      The stackTrace.
    • setStackTrace

      public Execution.Error.Builder setStackTrace(Execution.StackTrace value)
       Stack trace with detailed information of where error was generated.
       
      .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3;
    • setStackTrace

      public Execution.Error.Builder setStackTrace(Execution.StackTrace.Builder builderForValue)
       Stack trace with detailed information of where error was generated.
       
      .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3;
    • mergeStackTrace

      public Execution.Error.Builder mergeStackTrace(Execution.StackTrace value)
       Stack trace with detailed information of where error was generated.
       
      .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3;
    • clearStackTrace

      public Execution.Error.Builder clearStackTrace()
       Stack trace with detailed information of where error was generated.
       
      .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3;
    • getStackTraceBuilder

      public Execution.StackTrace.Builder getStackTraceBuilder()
       Stack trace with detailed information of where error was generated.
       
      .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3;
    • getStackTraceOrBuilder

      public Execution.StackTraceOrBuilder getStackTraceOrBuilder()
       Stack trace with detailed information of where error was generated.
       
      .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3;
      Specified by:
      getStackTraceOrBuilder in interface Execution.ErrorOrBuilder