Class FailureDetails.Throwable.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FailureDetails.Throwable.Builder>
com.google.devtools.build.lib.server.FailureDetails.Throwable.Builder
All Implemented Interfaces:
FailureDetails.ThrowableOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
FailureDetails.Throwable

public static final class FailureDetails.Throwable.Builder extends com.google.protobuf.GeneratedMessage.Builder<FailureDetails.Throwable.Builder> implements FailureDetails.ThrowableOrBuilder
Protobuf type failure_details.Throwable
  • 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<FailureDetails.Throwable.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<FailureDetails.Throwable.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<FailureDetails.Throwable.Builder>
    • getDefaultInstanceForType

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

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

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

      public FailureDetails.Throwable.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<FailureDetails.Throwable.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<FailureDetails.Throwable.Builder>
    • mergeFrom

      public FailureDetails.Throwable.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<FailureDetails.Throwable.Builder>
      Throws:
      IOException
    • getThrowableClass

      public String getThrowableClass()
       The class name of the java.lang.Throwable.
       
      string throwable_class = 1;
      Specified by:
      getThrowableClass in interface FailureDetails.ThrowableOrBuilder
      Returns:
      The throwableClass.
    • getThrowableClassBytes

      public com.google.protobuf.ByteString getThrowableClassBytes()
       The class name of the java.lang.Throwable.
       
      string throwable_class = 1;
      Specified by:
      getThrowableClassBytes in interface FailureDetails.ThrowableOrBuilder
      Returns:
      The bytes for throwableClass.
    • setThrowableClass

      public FailureDetails.Throwable.Builder setThrowableClass(String value)
       The class name of the java.lang.Throwable.
       
      string throwable_class = 1;
      Parameters:
      value - The throwableClass to set.
      Returns:
      This builder for chaining.
    • clearThrowableClass

      public FailureDetails.Throwable.Builder clearThrowableClass()
       The class name of the java.lang.Throwable.
       
      string throwable_class = 1;
      Returns:
      This builder for chaining.
    • setThrowableClassBytes

      public FailureDetails.Throwable.Builder setThrowableClassBytes(com.google.protobuf.ByteString value)
       The class name of the java.lang.Throwable.
       
      string throwable_class = 1;
      Parameters:
      value - The bytes for throwableClass to set.
      Returns:
      This builder for chaining.
    • getMessage

      public String getMessage()
       The throwable's message.
       
      string message = 2;
      Specified by:
      getMessage in interface FailureDetails.ThrowableOrBuilder
      Returns:
      The message.
    • getMessageBytes

      public com.google.protobuf.ByteString getMessageBytes()
       The throwable's message.
       
      string message = 2;
      Specified by:
      getMessageBytes in interface FailureDetails.ThrowableOrBuilder
      Returns:
      The bytes for message.
    • setMessage

      public FailureDetails.Throwable.Builder setMessage(String value)
       The throwable's message.
       
      string message = 2;
      Parameters:
      value - The message to set.
      Returns:
      This builder for chaining.
    • clearMessage

      public FailureDetails.Throwable.Builder clearMessage()
       The throwable's message.
       
      string message = 2;
      Returns:
      This builder for chaining.
    • setMessageBytes

      public FailureDetails.Throwable.Builder setMessageBytes(com.google.protobuf.ByteString value)
       The throwable's message.
       
      string message = 2;
      Parameters:
      value - The bytes for message to set.
      Returns:
      This builder for chaining.
    • getStackTraceList

      public com.google.protobuf.ProtocolStringList getStackTraceList()
       The result of calling toString on the deepest (i.e. closest to the
       throwable's construction site) 1000 (or fewer) StackTraceElements.
       Unstructured to simplify string matching.
       
      repeated string stack_trace = 3;
      Specified by:
      getStackTraceList in interface FailureDetails.ThrowableOrBuilder
      Returns:
      A list containing the stackTrace.
    • getStackTraceCount

      public int getStackTraceCount()
       The result of calling toString on the deepest (i.e. closest to the
       throwable's construction site) 1000 (or fewer) StackTraceElements.
       Unstructured to simplify string matching.
       
      repeated string stack_trace = 3;
      Specified by:
      getStackTraceCount in interface FailureDetails.ThrowableOrBuilder
      Returns:
      The count of stackTrace.
    • getStackTrace

      public String getStackTrace(int index)
       The result of calling toString on the deepest (i.e. closest to the
       throwable's construction site) 1000 (or fewer) StackTraceElements.
       Unstructured to simplify string matching.
       
      repeated string stack_trace = 3;
      Specified by:
      getStackTrace in interface FailureDetails.ThrowableOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The stackTrace at the given index.
    • getStackTraceBytes

      public com.google.protobuf.ByteString getStackTraceBytes(int index)
       The result of calling toString on the deepest (i.e. closest to the
       throwable's construction site) 1000 (or fewer) StackTraceElements.
       Unstructured to simplify string matching.
       
      repeated string stack_trace = 3;
      Specified by:
      getStackTraceBytes in interface FailureDetails.ThrowableOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the stackTrace at the given index.
    • setStackTrace

      public FailureDetails.Throwable.Builder setStackTrace(int index, String value)
       The result of calling toString on the deepest (i.e. closest to the
       throwable's construction site) 1000 (or fewer) StackTraceElements.
       Unstructured to simplify string matching.
       
      repeated string stack_trace = 3;
      Parameters:
      index - The index to set the value at.
      value - The stackTrace to set.
      Returns:
      This builder for chaining.
    • addStackTrace

      public FailureDetails.Throwable.Builder addStackTrace(String value)
       The result of calling toString on the deepest (i.e. closest to the
       throwable's construction site) 1000 (or fewer) StackTraceElements.
       Unstructured to simplify string matching.
       
      repeated string stack_trace = 3;
      Parameters:
      value - The stackTrace to add.
      Returns:
      This builder for chaining.
    • addAllStackTrace

      public FailureDetails.Throwable.Builder addAllStackTrace(Iterable<String> values)
       The result of calling toString on the deepest (i.e. closest to the
       throwable's construction site) 1000 (or fewer) StackTraceElements.
       Unstructured to simplify string matching.
       
      repeated string stack_trace = 3;
      Parameters:
      values - The stackTrace to add.
      Returns:
      This builder for chaining.
    • clearStackTrace

      public FailureDetails.Throwable.Builder clearStackTrace()
       The result of calling toString on the deepest (i.e. closest to the
       throwable's construction site) 1000 (or fewer) StackTraceElements.
       Unstructured to simplify string matching.
       
      repeated string stack_trace = 3;
      Returns:
      This builder for chaining.
    • addStackTraceBytes

      public FailureDetails.Throwable.Builder addStackTraceBytes(com.google.protobuf.ByteString value)
       The result of calling toString on the deepest (i.e. closest to the
       throwable's construction site) 1000 (or fewer) StackTraceElements.
       Unstructured to simplify string matching.
       
      repeated string stack_trace = 3;
      Parameters:
      value - The bytes of the stackTrace to add.
      Returns:
      This builder for chaining.