Package com.linecorp.armeria.common.grpc
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:
Message.Builder,MessageLite.Builder,MessageLiteOrBuilder,MessageOrBuilder,ThrowableProtoOrBuilder,Cloneable
- Enclosing class:
- ThrowableProto
public static final class ThrowableProto.Builder
extends 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.htmlProtobuf type
armeria.grpc.ThrowableProto-
Method Summary
Modifier and TypeMethodDescriptionaddAllStackTrace(Iterable<? extends StackTraceElementProto> values) The stack trace of this Throwable.addRepeatedField(Descriptors.FieldDescriptor field, Object value) addStackTrace(int index, StackTraceElementProto value) The stack trace of this Throwable.addStackTrace(int index, StackTraceElementProto.Builder builderForValue) The stack trace of this Throwable.The stack trace of this Throwable.addStackTrace(StackTraceElementProto.Builder builderForValue) The stack trace of this Throwable.The stack trace of this Throwable.addStackTraceBuilder(int index) The stack trace of this Throwable.build()clear()The cause of this Throwable.The name of the class of the exception that was actually thrown.The message of this throwable.The stack trace of this Throwable.clone()getCause()The cause of this Throwable.The cause of this Throwable.The cause of this Throwable.static final Descriptors.DescriptorThe name of the class of the exception that was actually thrown.The name of the class of the exception that was actually thrown.The message of this throwable.The message of this throwable.getStackTrace(int index) The stack trace of this Throwable.getStackTraceBuilder(int index) The stack trace of this Throwable.The stack trace of this Throwable.intThe stack trace of this Throwable.The stack trace of this Throwable.getStackTraceOrBuilder(int index) The stack trace of this Throwable.List<? extends StackTraceElementProtoOrBuilder>The stack trace of this Throwable.booleanhasCause()The cause of this Throwable.protected GeneratedMessageV3.FieldAccessorTablefinal booleanmergeCause(ThrowableProto value) The cause of this Throwable.mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(ThrowableProto other) final ThrowableProto.BuildermergeUnknownFields(UnknownFieldSet unknownFields) removeStackTrace(int index) The stack trace of this Throwable.setCause(ThrowableProto value) The cause of this Throwable.setCause(ThrowableProto.Builder builderForValue) The cause of this Throwable.setField(Descriptors.FieldDescriptor field, Object value) setOriginalClassName(String value) The name of the class of the exception that was actually thrown.The name of the class of the exception that was actually thrown.setOriginalMessage(String value) The message of this throwable.The message of this throwable.setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) setStackTrace(int index, StackTraceElementProto value) The stack trace of this Throwable.setStackTrace(int index, StackTraceElementProto.Builder builderForValue) The stack trace of this Throwable.final ThrowableProto.BuildersetUnknownFields(UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<ThrowableProto.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<ThrowableProto.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<ThrowableProto.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<ThrowableProto.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<ThrowableProto.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<ThrowableProto.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<ThrowableProto.Builder>
-
setRepeatedField
public ThrowableProto.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<ThrowableProto.Builder>
-
addRepeatedField
- Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<ThrowableProto.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<ThrowableProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<ThrowableProto.Builder>
-
mergeFrom
public ThrowableProto.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<ThrowableProto.Builder>- Throws:
IOException
-
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:
getOriginalClassNamein interfaceThrowableProtoOrBuilder- Returns:
- The originalClassName.
-
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:
getOriginalClassNameBytesin interfaceThrowableProtoOrBuilder- Returns:
- The bytes for originalClassName.
-
setOriginalClassName
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
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
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
The message of this throwable. Not filled if there is no message.
string original_message = 2;- Specified by:
getOriginalMessagein interfaceThrowableProtoOrBuilder- Returns:
- The originalMessage.
-
getOriginalMessageBytes
The message of this throwable. Not filled if there is no message.
string original_message = 2;- Specified by:
getOriginalMessageBytesin interfaceThrowableProtoOrBuilder- Returns:
- The bytes for originalMessage.
-
setOriginalMessage
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
The message of this throwable. Not filled if there is no message.
string original_message = 2;- Returns:
- This builder for chaining.
-
setOriginalMessageBytes
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
The stack trace of this Throwable.
repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;- Specified by:
getStackTraceListin interfaceThrowableProtoOrBuilder
-
getStackTraceCount
public int getStackTraceCount()The stack trace of this Throwable.
repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;- Specified by:
getStackTraceCountin interfaceThrowableProtoOrBuilder
-
getStackTrace
The stack trace of this Throwable.
repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;- Specified by:
getStackTracein interfaceThrowableProtoOrBuilder
-
setStackTrace
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
The stack trace of this Throwable.
repeated .armeria.grpc.StackTraceElementProto stack_trace = 3; -
addStackTrace
The stack trace of this Throwable.
repeated .armeria.grpc.StackTraceElementProto stack_trace = 3; -
addStackTrace
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
The stack trace of this Throwable.
repeated .armeria.grpc.StackTraceElementProto stack_trace = 3; -
clearStackTrace
The stack trace of this Throwable.
repeated .armeria.grpc.StackTraceElementProto stack_trace = 3; -
removeStackTrace
The stack trace of this Throwable.
repeated .armeria.grpc.StackTraceElementProto stack_trace = 3; -
getStackTraceBuilder
The stack trace of this Throwable.
repeated .armeria.grpc.StackTraceElementProto stack_trace = 3; -
getStackTraceOrBuilder
The stack trace of this Throwable.
repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;- Specified by:
getStackTraceOrBuilderin interfaceThrowableProtoOrBuilder
-
getStackTraceOrBuilderList
The stack trace of this Throwable.
repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;- Specified by:
getStackTraceOrBuilderListin interfaceThrowableProtoOrBuilder
-
addStackTraceBuilder
The stack trace of this Throwable.
repeated .armeria.grpc.StackTraceElementProto stack_trace = 3; -
addStackTraceBuilder
The stack trace of this Throwable.
repeated .armeria.grpc.StackTraceElementProto stack_trace = 3; -
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:
hasCausein interfaceThrowableProtoOrBuilder- Returns:
- Whether the cause field is set.
-
getCause
The cause of this Throwable. Not filled if there is no cause.
.armeria.grpc.ThrowableProto cause = 4;- Specified by:
getCausein interfaceThrowableProtoOrBuilder- Returns:
- The cause.
-
setCause
The cause of this Throwable. Not filled if there is no cause.
.armeria.grpc.ThrowableProto cause = 4; -
setCause
The cause of this Throwable. Not filled if there is no cause.
.armeria.grpc.ThrowableProto cause = 4; -
mergeCause
The cause of this Throwable. Not filled if there is no cause.
.armeria.grpc.ThrowableProto cause = 4; -
clearCause
The cause of this Throwable. Not filled if there is no cause.
.armeria.grpc.ThrowableProto cause = 4; -
getCauseBuilder
The cause of this Throwable. Not filled if there is no cause.
.armeria.grpc.ThrowableProto cause = 4; -
getCauseOrBuilder
The cause of this Throwable. Not filled if there is no cause.
.armeria.grpc.ThrowableProto cause = 4;- Specified by:
getCauseOrBuilderin interfaceThrowableProtoOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<ThrowableProto.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<ThrowableProto.Builder>
-