Class ThrowableProto.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<ThrowableProto.Builder>
com.linecorp.armeria.common.grpc.ThrowableProto.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ThrowableProtoOrBuilder, Cloneable
Enclosing class:
ThrowableProto

public static final class ThrowableProto.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ThrowableProto.Builder> implements ThrowableProtoOrBuilder
 An exception that was thrown by some code, based on the Java type of the same name.
 See: https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Throwable.html
 
Protobuf type armeria.grpc.ThrowableProto
  • Method Details

    • getDescriptor

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

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

      public ThrowableProto.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.GeneratedMessageV3.Builder<ThrowableProto.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.GeneratedMessageV3.Builder<ThrowableProto.Builder>
    • getDefaultInstanceForType

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

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

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

      public ThrowableProto.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ThrowableProto.Builder>
    • setField

      public ThrowableProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ThrowableProto.Builder>
    • clearField

      public ThrowableProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ThrowableProto.Builder>
    • clearOneof

      public ThrowableProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ThrowableProto.Builder>
    • setRepeatedField

      public ThrowableProto.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ThrowableProto.Builder>
    • addRepeatedField

      public ThrowableProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ThrowableProto.Builder>
    • mergeFrom

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

      public ThrowableProto.Builder mergeFrom(ThrowableProto other)
    • isInitialized

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

      public ThrowableProto.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<ThrowableProto.Builder>
      Throws:
      IOException
    • getOriginalClassName

      public String getOriginalClassName()
       The name of the class of the exception that was actually thrown. Downstream readers
       of this message may or may not have the actual class available to initialize, so
       this is just used to prefix the message of a generic exception type.
       
      string original_class_name = 1;
      Specified by:
      getOriginalClassName in interface ThrowableProtoOrBuilder
      Returns:
      The originalClassName.
    • getOriginalClassNameBytes

      public com.google.protobuf.ByteString getOriginalClassNameBytes()
       The name of the class of the exception that was actually thrown. Downstream readers
       of this message may or may not have the actual class available to initialize, so
       this is just used to prefix the message of a generic exception type.
       
      string original_class_name = 1;
      Specified by:
      getOriginalClassNameBytes in interface ThrowableProtoOrBuilder
      Returns:
      The bytes for originalClassName.
    • setOriginalClassName

      public ThrowableProto.Builder setOriginalClassName(String value)
       The name of the class of the exception that was actually thrown. Downstream readers
       of this message may or may not have the actual class available to initialize, so
       this is just used to prefix the message of a generic exception type.
       
      string original_class_name = 1;
      Parameters:
      value - The originalClassName to set.
      Returns:
      This builder for chaining.
    • clearOriginalClassName

      public ThrowableProto.Builder clearOriginalClassName()
       The name of the class of the exception that was actually thrown. Downstream readers
       of this message may or may not have the actual class available to initialize, so
       this is just used to prefix the message of a generic exception type.
       
      string original_class_name = 1;
      Returns:
      This builder for chaining.
    • setOriginalClassNameBytes

      public ThrowableProto.Builder setOriginalClassNameBytes(com.google.protobuf.ByteString value)
       The name of the class of the exception that was actually thrown. Downstream readers
       of this message may or may not have the actual class available to initialize, so
       this is just used to prefix the message of a generic exception type.
       
      string original_class_name = 1;
      Parameters:
      value - The bytes for originalClassName to set.
      Returns:
      This builder for chaining.
    • getOriginalMessage

      public String getOriginalMessage()
       The message of this throwable. Not filled if there is no message.
       
      string original_message = 2;
      Specified by:
      getOriginalMessage in interface ThrowableProtoOrBuilder
      Returns:
      The originalMessage.
    • getOriginalMessageBytes

      public com.google.protobuf.ByteString getOriginalMessageBytes()
       The message of this throwable. Not filled if there is no message.
       
      string original_message = 2;
      Specified by:
      getOriginalMessageBytes in interface ThrowableProtoOrBuilder
      Returns:
      The bytes for originalMessage.
    • setOriginalMessage

      public ThrowableProto.Builder setOriginalMessage(String value)
       The message of this throwable. Not filled if there is no message.
       
      string original_message = 2;
      Parameters:
      value - The originalMessage to set.
      Returns:
      This builder for chaining.
    • clearOriginalMessage

      public ThrowableProto.Builder clearOriginalMessage()
       The message of this throwable. Not filled if there is no message.
       
      string original_message = 2;
      Returns:
      This builder for chaining.
    • setOriginalMessageBytes

      public ThrowableProto.Builder setOriginalMessageBytes(com.google.protobuf.ByteString value)
       The message of this throwable. Not filled if there is no message.
       
      string original_message = 2;
      Parameters:
      value - The bytes for originalMessage to set.
      Returns:
      This builder for chaining.
    • getStackTraceList

      public List<StackTraceElementProto> getStackTraceList()
       The stack trace of this Throwable.
       
      repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;
      Specified by:
      getStackTraceList in interface ThrowableProtoOrBuilder
    • getStackTraceCount

      public int getStackTraceCount()
       The stack trace of this Throwable.
       
      repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;
      Specified by:
      getStackTraceCount in interface ThrowableProtoOrBuilder
    • getStackTrace

      public StackTraceElementProto getStackTrace(int index)
       The stack trace of this Throwable.
       
      repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;
      Specified by:
      getStackTrace in interface ThrowableProtoOrBuilder
    • setStackTrace

      public ThrowableProto.Builder setStackTrace(int index, StackTraceElementProto value)
       The stack trace of this Throwable.
       
      repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;
    • setStackTrace

      public ThrowableProto.Builder setStackTrace(int index, StackTraceElementProto.Builder builderForValue)
       The stack trace of this Throwable.
       
      repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;
    • addStackTrace

      public ThrowableProto.Builder addStackTrace(StackTraceElementProto value)
       The stack trace of this Throwable.
       
      repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;
    • addStackTrace

      public ThrowableProto.Builder addStackTrace(int index, StackTraceElementProto value)
       The stack trace of this Throwable.
       
      repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;
    • addStackTrace

      public ThrowableProto.Builder addStackTrace(StackTraceElementProto.Builder builderForValue)
       The stack trace of this Throwable.
       
      repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;
    • addStackTrace

      public ThrowableProto.Builder addStackTrace(int index, StackTraceElementProto.Builder builderForValue)
       The stack trace of this Throwable.
       
      repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;
    • addAllStackTrace

      public ThrowableProto.Builder addAllStackTrace(Iterable<? extends StackTraceElementProto> values)
       The stack trace of this Throwable.
       
      repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;
    • clearStackTrace

      public ThrowableProto.Builder clearStackTrace()
       The stack trace of this Throwable.
       
      repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;
    • removeStackTrace

      public ThrowableProto.Builder removeStackTrace(int index)
       The stack trace of this Throwable.
       
      repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;
    • getStackTraceBuilder

      public StackTraceElementProto.Builder getStackTraceBuilder(int index)
       The stack trace of this Throwable.
       
      repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;
    • getStackTraceOrBuilder

      public StackTraceElementProtoOrBuilder getStackTraceOrBuilder(int index)
       The stack trace of this Throwable.
       
      repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;
      Specified by:
      getStackTraceOrBuilder in interface ThrowableProtoOrBuilder
    • getStackTraceOrBuilderList

      public List<? extends StackTraceElementProtoOrBuilder> getStackTraceOrBuilderList()
       The stack trace of this Throwable.
       
      repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;
      Specified by:
      getStackTraceOrBuilderList in interface ThrowableProtoOrBuilder
    • addStackTraceBuilder

      public StackTraceElementProto.Builder addStackTraceBuilder()
       The stack trace of this Throwable.
       
      repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;
    • addStackTraceBuilder

      public StackTraceElementProto.Builder addStackTraceBuilder(int index)
       The stack trace of this Throwable.
       
      repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;
    • getStackTraceBuilderList

      public List<StackTraceElementProto.Builder> getStackTraceBuilderList()
       The stack trace of this Throwable.
       
      repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;
    • hasCause

      public boolean hasCause()
       The cause of this Throwable. Not filled if there is no cause.
       
      .armeria.grpc.ThrowableProto cause = 4;
      Specified by:
      hasCause in interface ThrowableProtoOrBuilder
      Returns:
      Whether the cause field is set.
    • getCause

      public ThrowableProto getCause()
       The cause of this Throwable. Not filled if there is no cause.
       
      .armeria.grpc.ThrowableProto cause = 4;
      Specified by:
      getCause in interface ThrowableProtoOrBuilder
      Returns:
      The cause.
    • setCause

      public ThrowableProto.Builder setCause(ThrowableProto value)
       The cause of this Throwable. Not filled if there is no cause.
       
      .armeria.grpc.ThrowableProto cause = 4;
    • setCause

      public ThrowableProto.Builder setCause(ThrowableProto.Builder builderForValue)
       The cause of this Throwable. Not filled if there is no cause.
       
      .armeria.grpc.ThrowableProto cause = 4;
    • mergeCause

      public ThrowableProto.Builder mergeCause(ThrowableProto value)
       The cause of this Throwable. Not filled if there is no cause.
       
      .armeria.grpc.ThrowableProto cause = 4;
    • clearCause

      public ThrowableProto.Builder clearCause()
       The cause of this Throwable. Not filled if there is no cause.
       
      .armeria.grpc.ThrowableProto cause = 4;
    • getCauseBuilder

      public ThrowableProto.Builder getCauseBuilder()
       The cause of this Throwable. Not filled if there is no cause.
       
      .armeria.grpc.ThrowableProto cause = 4;
    • getCauseOrBuilder

      public ThrowableProtoOrBuilder getCauseOrBuilder()
       The cause of this Throwable. Not filled if there is no cause.
       
      .armeria.grpc.ThrowableProto cause = 4;
      Specified by:
      getCauseOrBuilder in interface ThrowableProtoOrBuilder
    • setUnknownFields

      public final ThrowableProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ThrowableProto.Builder>
    • mergeUnknownFields

      public final ThrowableProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ThrowableProto.Builder>