Package io.temporal.api.sdk.v1
Class StackTraceFileLocation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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,java.lang.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 file
Protobuf typetemporal.api.sdk.v1.StackTraceFileLocation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StackTraceFileLocation.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)StackTraceFileLocationbuild()StackTraceFileLocationbuildPartial()StackTraceFileLocation.Builderclear()StackTraceFileLocation.BuilderclearColumn()Optional; if possible, SDK should send this.StackTraceFileLocation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)StackTraceFileLocation.BuilderclearFilePath()Path to source file (absolute or relative).StackTraceFileLocation.BuilderclearFunctionName()Function name this line belongs to, if applicable.StackTraceFileLocation.BuilderclearInternalCode()Flag to communicate whether a location should be hidden by default in the stack view.StackTraceFileLocation.BuilderclearLine()Optional; If possible, SDK should send this -- this is required for displaying the code location.StackTraceFileLocation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)StackTraceFileLocation.Builderclone()intgetColumn()Optional; if possible, SDK should send this.StackTraceFileLocationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetFilePath()Path to source file (absolute or relative).com.google.protobuf.ByteStringgetFilePathBytes()Path to source file (absolute or relative).java.lang.StringgetFunctionName()Function name this line belongs to, if applicable.com.google.protobuf.ByteStringgetFunctionNameBytes()Function name this line belongs to, if applicable.booleangetInternalCode()Flag 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.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()StackTraceFileLocation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)StackTraceFileLocation.BuildermergeFrom(com.google.protobuf.Message other)StackTraceFileLocation.BuildermergeFrom(StackTraceFileLocation other)StackTraceFileLocation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)StackTraceFileLocation.BuildersetColumn(int value)Optional; if possible, SDK should send this.StackTraceFileLocation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)StackTraceFileLocation.BuildersetFilePath(java.lang.String value)Path to source file (absolute or relative).StackTraceFileLocation.BuildersetFilePathBytes(com.google.protobuf.ByteString value)Path to source file (absolute or relative).StackTraceFileLocation.BuildersetFunctionName(java.lang.String value)Function name this line belongs to, if applicable.StackTraceFileLocation.BuildersetFunctionNameBytes(com.google.protobuf.ByteString value)Function name this line belongs to, if applicable.StackTraceFileLocation.BuildersetInternalCode(boolean value)Flag to communicate whether a location should be hidden by default in the stack view.StackTraceFileLocation.BuildersetLine(int value)Optional; If possible, SDK should send this -- this is required for displaying the code location.StackTraceFileLocation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)StackTraceFileLocation.BuildersetUnknownFields(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, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, 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
-
-
-
-
Method Detail
-
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
public 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
public StackTraceFileLocation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public StackTraceFileLocation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public StackTraceFileLocation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public StackTraceFileLocation.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, java.lang.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, java.lang.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, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>
-
mergeFrom
public StackTraceFileLocation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StackTraceFileLocation.Builder>
-
mergeFrom
public StackTraceFileLocation.Builder mergeFrom(StackTraceFileLocation other)
-
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 java.io.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:
java.io.IOException
-
getFilePath
public java.lang.String 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
public StackTraceFileLocation.Builder setFilePath(java.lang.String value)
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
public StackTraceFileLocation.Builder 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
public StackTraceFileLocation.Builder setFilePathBytes(com.google.protobuf.ByteString value)
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
public StackTraceFileLocation.Builder setLine(int value)
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
public StackTraceFileLocation.Builder 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
public StackTraceFileLocation.Builder setColumn(int value)
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
public StackTraceFileLocation.Builder clearColumn()
Optional; if possible, SDK should send this. If not provided, set to -1.
int32 column = 3;- Returns:
- This builder for chaining.
-
getFunctionName
public java.lang.String 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
public StackTraceFileLocation.Builder setFunctionName(java.lang.String value)
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
public StackTraceFileLocation.Builder 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
public StackTraceFileLocation.Builder setFunctionNameBytes(com.google.protobuf.ByteString value)
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
public StackTraceFileLocation.Builder setInternalCode(boolean value)
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
public StackTraceFileLocation.Builder 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>
-
-