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:
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.htmlProtobuf type
armeria.grpc.ThrowableProto
-
Method Summary
Modifier and TypeMethodDescriptionaddAllStackTrace
(Iterable<? extends StackTraceElementProto> values) The stack trace of this Throwable.addRepeatedField
(com.google.protobuf.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.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) 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 com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
The name of the class of the exception that was actually thrown.com.google.protobuf.ByteString
The name of the class of the exception that was actually thrown.The message of this throwable.com.google.protobuf.ByteString
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 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeCause
(ThrowableProto value) The cause of this Throwable.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(ThrowableProto other) final ThrowableProto.Builder
mergeUnknownFields
(com.google.protobuf.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.setOriginalClassName
(String value) The name of the class of the exception that was actually thrown.setOriginalClassNameBytes
(com.google.protobuf.ByteString value) The name of the class of the exception that was actually thrown.setOriginalMessage
(String value) The message of this throwable.setOriginalMessageBytes
(com.google.protobuf.ByteString value) The message of this throwable.setRepeatedField
(com.google.protobuf.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
(com.google.protobuf.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
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThrowableProto.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThrowableProto.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThrowableProto.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThrowableProto.Builder>
-
setField
public ThrowableProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThrowableProto.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThrowableProto.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThrowableProto.Builder>
-
addRepeatedField
public ThrowableProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThrowableProto.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ThrowableProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.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
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 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
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 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
public final ThrowableProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThrowableProto.Builder>
-
mergeUnknownFields
public final ThrowableProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThrowableProto.Builder>
-