Class StackTraceFileLocation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<StackTraceFileLocation.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>
io.temporal.api.sdk.v1.StackTraceFileLocation.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,StackTraceFileLocationOrBuilder,Cloneable
- Enclosing class:
StackTraceFileLocation
public static final class StackTraceFileLocation.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>
implements StackTraceFileLocationOrBuilder
More specific location details of a file: its path, precise line and column numbers if applicable, and function name if available. In essence, a pointer to a location in a fileProtobuf type
temporal.api.sdk.v1.StackTraceFileLocation-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Optional; if possible, SDK should send this.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Path to source file (absolute or relative).Function name this line belongs to, if applicable.Flag to communicate whether a location should be hidden by default in the stack view.Optional; If possible, SDK should send this -- this is required for displaying the code location.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()intOptional; if possible, SDK should send this.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorPath to source file (absolute or relative).com.google.protobuf.ByteStringPath to source file (absolute or relative).Function name this line belongs to, if applicable.com.google.protobuf.ByteStringFunction name this line belongs to, if applicable.booleanFlag to communicate whether a location should be hidden by default in the stack view.intgetLine()Optional; If possible, SDK should send this -- this is required for displaying the code location.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(StackTraceFileLocation other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setColumn(int value) Optional; if possible, SDK should send this.setFilePath(String value) Path to source file (absolute or relative).setFilePathBytes(com.google.protobuf.ByteString value) Path to source file (absolute or relative).setFunctionName(String value) Function name this line belongs to, if applicable.setFunctionNameBytes(com.google.protobuf.ByteString value) Function name this line belongs to, if applicable.setInternalCode(boolean value) Flag to communicate whether a location should be hidden by default in the stack view.setLine(int value) Optional; If possible, SDK should send this -- this is required for displaying the code location.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods 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
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>
-
setField
public StackTraceFileLocation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>
-
clearField
public StackTraceFileLocation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>
-
clearOneof
public StackTraceFileLocation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>
-
setRepeatedField
public StackTraceFileLocation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>
-
addRepeatedField
public StackTraceFileLocation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StackTraceFileLocation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>
-
mergeFrom
public StackTraceFileLocation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StackTraceFileLocation.Builder>- Throws:
IOException
-
getFilePath
Path to source file (absolute or relative). If the paths are relative, ensure that they are all relative to the same root.
string file_path = 1;- Specified by:
getFilePathin interfaceStackTraceFileLocationOrBuilder- Returns:
- The filePath.
-
getFilePathBytes
public com.google.protobuf.ByteString getFilePathBytes()Path to source file (absolute or relative). If the paths are relative, ensure that they are all relative to the same root.
string file_path = 1;- Specified by:
getFilePathBytesin interfaceStackTraceFileLocationOrBuilder- Returns:
- The bytes for filePath.
-
setFilePath
Path to source file (absolute or relative). If the paths are relative, ensure that they are all relative to the same root.
string file_path = 1;- Parameters:
value- The filePath to set.- Returns:
- This builder for chaining.
-
clearFilePath
Path to source file (absolute or relative). If the paths are relative, ensure that they are all relative to the same root.
string file_path = 1;- Returns:
- This builder for chaining.
-
setFilePathBytes
Path to source file (absolute or relative). If the paths are relative, ensure that they are all relative to the same root.
string file_path = 1;- Parameters:
value- The bytes for filePath to set.- Returns:
- This builder for chaining.
-
getLine
public int getLine()Optional; If possible, SDK should send this -- this is required for displaying the code location. If not provided, set to -1.
int32 line = 2;- Specified by:
getLinein interfaceStackTraceFileLocationOrBuilder- Returns:
- The line.
-
setLine
Optional; If possible, SDK should send this -- this is required for displaying the code location. If not provided, set to -1.
int32 line = 2;- Parameters:
value- The line to set.- Returns:
- This builder for chaining.
-
clearLine
Optional; If possible, SDK should send this -- this is required for displaying the code location. If not provided, set to -1.
int32 line = 2;- Returns:
- This builder for chaining.
-
getColumn
public int getColumn()Optional; if possible, SDK should send this. If not provided, set to -1.
int32 column = 3;- Specified by:
getColumnin interfaceStackTraceFileLocationOrBuilder- Returns:
- The column.
-
setColumn
Optional; if possible, SDK should send this. If not provided, set to -1.
int32 column = 3;- Parameters:
value- The column to set.- Returns:
- This builder for chaining.
-
clearColumn
Optional; if possible, SDK should send this. If not provided, set to -1.
int32 column = 3;- Returns:
- This builder for chaining.
-
getFunctionName
Function name this line belongs to, if applicable. Used for falling back to stack trace view.
string function_name = 4;- Specified by:
getFunctionNamein interfaceStackTraceFileLocationOrBuilder- Returns:
- The functionName.
-
getFunctionNameBytes
public com.google.protobuf.ByteString getFunctionNameBytes()Function name this line belongs to, if applicable. Used for falling back to stack trace view.
string function_name = 4;- Specified by:
getFunctionNameBytesin interfaceStackTraceFileLocationOrBuilder- Returns:
- The bytes for functionName.
-
setFunctionName
Function name this line belongs to, if applicable. Used for falling back to stack trace view.
string function_name = 4;- Parameters:
value- The functionName to set.- Returns:
- This builder for chaining.
-
clearFunctionName
Function name this line belongs to, if applicable. Used for falling back to stack trace view.
string function_name = 4;- Returns:
- This builder for chaining.
-
setFunctionNameBytes
Function name this line belongs to, if applicable. Used for falling back to stack trace view.
string function_name = 4;- Parameters:
value- The bytes for functionName to set.- Returns:
- This builder for chaining.
-
getInternalCode
public boolean getInternalCode()Flag to communicate whether a location should be hidden by default in the stack view.
bool internal_code = 5;- Specified by:
getInternalCodein interfaceStackTraceFileLocationOrBuilder- Returns:
- The internalCode.
-
setInternalCode
Flag to communicate whether a location should be hidden by default in the stack view.
bool internal_code = 5;- Parameters:
value- The internalCode to set.- Returns:
- This builder for chaining.
-
clearInternalCode
Flag to communicate whether a location should be hidden by default in the stack view.
bool internal_code = 5;- Returns:
- This builder for chaining.
-
setUnknownFields
public final StackTraceFileLocation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>
-
mergeUnknownFields
public final StackTraceFileLocation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>
-