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.Descriptor
The 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.int
The 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.boolean
hasCause()
The cause of this Throwable.protected GeneratedMessageV3.FieldAccessorTable
final boolean
mergeCause
(ThrowableProto value) The cause of this Throwable.mergeFrom
(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom
(ThrowableProto other) final ThrowableProto.Builder
mergeUnknownFields
(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.Builder
setUnknownFields
(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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTable
in classGeneratedMessageV3.Builder<ThrowableProto.Builder>
-
clear
- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessageV3.Builder<ThrowableProto.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<ThrowableProto.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
- Specified by:
clone
in interfaceMessage.Builder
- Specified by:
clone
in interfaceMessageLite.Builder
- Overrides:
clone
in classGeneratedMessageV3.Builder<ThrowableProto.Builder>
-
setField
- Specified by:
setField
in interfaceMessage.Builder
- Overrides:
setField
in classGeneratedMessageV3.Builder<ThrowableProto.Builder>
-
clearField
- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.Builder<ThrowableProto.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfaceMessage.Builder
- Overrides:
clearOneof
in classGeneratedMessageV3.Builder<ThrowableProto.Builder>
-
setRepeatedField
public ThrowableProto.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfaceMessage.Builder
- Overrides:
setRepeatedField
in classGeneratedMessageV3.Builder<ThrowableProto.Builder>
-
addRepeatedField
- Specified by:
addRepeatedField
in interfaceMessage.Builder
- Overrides:
addRepeatedField
in classGeneratedMessageV3.Builder<ThrowableProto.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<ThrowableProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3.Builder<ThrowableProto.Builder>
-
mergeFrom
public ThrowableProto.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfaceMessage.Builder
- Specified by:
mergeFrom
in interfaceMessageLite.Builder
- Overrides:
mergeFrom
in 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:
getOriginalClassName
in 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:
getOriginalClassNameBytes
in 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:
getOriginalMessage
in interfaceThrowableProtoOrBuilder
- Returns:
- The originalMessage.
-
getOriginalMessageBytes
The message of this throwable. Not filled if there is no message.
string original_message = 2;
- Specified by:
getOriginalMessageBytes
in 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:
getStackTraceList
in interfaceThrowableProtoOrBuilder
-
getStackTraceCount
public int getStackTraceCount()The stack trace of this Throwable.
repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;
- Specified by:
getStackTraceCount
in interfaceThrowableProtoOrBuilder
-
getStackTrace
The stack trace of this Throwable.
repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;
- Specified by:
getStackTrace
in 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:
getStackTraceOrBuilder
in interfaceThrowableProtoOrBuilder
-
getStackTraceOrBuilderList
The stack trace of this Throwable.
repeated .armeria.grpc.StackTraceElementProto stack_trace = 3;
- Specified by:
getStackTraceOrBuilderList
in 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:
hasCause
in 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:
getCause
in 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:
getCauseOrBuilder
in interfaceThrowableProtoOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFields
in interfaceMessage.Builder
- Overrides:
setUnknownFields
in classGeneratedMessageV3.Builder<ThrowableProto.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFields
in interfaceMessage.Builder
- Overrides:
mergeUnknownFields
in classGeneratedMessageV3.Builder<ThrowableProto.Builder>
-