Class StackTrace.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, StackTraceOrBuilder, Cloneable
    Enclosing class:
    StackTrace

    public static final class StackTrace.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<StackTrace.Builder>
    implements StackTraceOrBuilder
     The call stack which originated this span.
     
    Protobuf type opencensus.proto.trace.v1.StackTrace
    • 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<StackTrace.Builder>
      • clear

        public StackTrace.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<StackTrace.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<StackTrace.Builder>
      • getDefaultInstanceForType

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

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

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

        public StackTrace.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<StackTrace.Builder>
      • setField

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

        public StackTrace.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<StackTrace.Builder>
      • clearOneof

        public StackTrace.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<StackTrace.Builder>
      • setRepeatedField

        public StackTrace.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   int index,
                                                   Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StackTrace.Builder>
      • addRepeatedField

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

        public StackTrace.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StackTrace.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<StackTrace.Builder>
      • mergeFrom

        public StackTrace.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws 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<StackTrace.Builder>
        Throws:
        IOException
      • hasStackFrames

        public boolean hasStackFrames()
         Stack frames in this stack trace.
         
        .opencensus.proto.trace.v1.StackTrace.StackFrames stack_frames = 1;
        Specified by:
        hasStackFrames in interface StackTraceOrBuilder
        Returns:
        Whether the stackFrames field is set.
      • clearStackFrames

        public StackTrace.Builder clearStackFrames()
         Stack frames in this stack trace.
         
        .opencensus.proto.trace.v1.StackTrace.StackFrames stack_frames = 1;
      • getStackFramesBuilder

        public StackTrace.StackFrames.Builder getStackFramesBuilder()
         Stack frames in this stack trace.
         
        .opencensus.proto.trace.v1.StackTrace.StackFrames stack_frames = 1;
      • getStackTraceHashId

        public long getStackTraceHashId()
         The hash ID is used to conserve network bandwidth for duplicate
         stack traces within a single trace.
         Often multiple spans will have identical stack traces.
         The first occurrence of a stack trace should contain both
         `stack_frames` and a value in `stack_trace_hash_id`.
         Subsequent spans within the same request can refer
         to that stack trace by setting only `stack_trace_hash_id`.
         TODO: describe how to deal with the case where stack_trace_hash_id is
         zero because it was not set.
         
        uint64 stack_trace_hash_id = 2;
        Specified by:
        getStackTraceHashId in interface StackTraceOrBuilder
        Returns:
        The stackTraceHashId.
      • setStackTraceHashId

        public StackTrace.Builder setStackTraceHashId​(long value)
         The hash ID is used to conserve network bandwidth for duplicate
         stack traces within a single trace.
         Often multiple spans will have identical stack traces.
         The first occurrence of a stack trace should contain both
         `stack_frames` and a value in `stack_trace_hash_id`.
         Subsequent spans within the same request can refer
         to that stack trace by setting only `stack_trace_hash_id`.
         TODO: describe how to deal with the case where stack_trace_hash_id is
         zero because it was not set.
         
        uint64 stack_trace_hash_id = 2;
        Parameters:
        value - The stackTraceHashId to set.
        Returns:
        This builder for chaining.
      • clearStackTraceHashId

        public StackTrace.Builder clearStackTraceHashId()
         The hash ID is used to conserve network bandwidth for duplicate
         stack traces within a single trace.
         Often multiple spans will have identical stack traces.
         The first occurrence of a stack trace should contain both
         `stack_frames` and a value in `stack_trace_hash_id`.
         Subsequent spans within the same request can refer
         to that stack trace by setting only `stack_trace_hash_id`.
         TODO: describe how to deal with the case where stack_trace_hash_id is
         zero because it was not set.
         
        uint64 stack_trace_hash_id = 2;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final StackTrace.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<StackTrace.Builder>
      • mergeUnknownFields

        public final StackTrace.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<StackTrace.Builder>