Class 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 type temporal.api.sdk.v1.StackTraceFileLocation
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>
      • clear

        public StackTraceFileLocation.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>
      • getDefaultInstanceForType

        public StackTraceFileLocation getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public StackTraceFileLocation build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public StackTraceFileLocation buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public StackTraceFileLocation.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>
      • setField

        public StackTraceFileLocation.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>
      • clearField

        public StackTraceFileLocation.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>
      • clearOneof

        public StackTraceFileLocation.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>
      • addRepeatedField

        public StackTraceFileLocation.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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:
        getFilePath in interface StackTraceFileLocationOrBuilder
        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:
        getFilePathBytes in interface StackTraceFileLocationOrBuilder
        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:
        getLine in interface StackTraceFileLocationOrBuilder
        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:
        getColumn in interface StackTraceFileLocationOrBuilder
        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:
        getFunctionName in interface StackTraceFileLocationOrBuilder
        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:
        getFunctionNameBytes in interface StackTraceFileLocationOrBuilder
        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:
        getInternalCode in interface StackTraceFileLocationOrBuilder
        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:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>
      • mergeUnknownFields

        public final StackTraceFileLocation.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StackTraceFileLocation.Builder>