Class Span.Builder

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

    public static final class Span.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Span.Builder>
    implements SpanOrBuilder
     A span represents a single operation within a trace. Spans can be
     nested to form a trace tree. Often, a trace contains a root span
     that describes the end-to-end latency, and one or more subspans for
     its sub-operations.
    
     A trace can also contain multiple root spans, or none at all.
     Spans do not need to be contiguous. There might be
     gaps or overlaps between spans in a trace.
     
    Protobuf type google.devtools.cloudtrace.v2.Span
    • 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<Span.Builder>
      • clear

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

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

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

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

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

        public Span.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<Span.Builder>
      • clearField

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

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

        public Span.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<Span.Builder>
      • addRepeatedField

        public Span.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<Span.Builder>
      • mergeFrom

        public Span.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<Span.Builder>
      • isInitialized

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

        public Span.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<Span.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Required. The resource name of the span in the following format:
        
          * `projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]`
        
         `[TRACE_ID]` is a unique identifier for a trace within a project;
         it is a 32-character hexadecimal encoding of a 16-byte array. It should
         not be zero.
        
         `[SPAN_ID]` is a unique identifier for a span within a trace; it
         is a 16-character hexadecimal encoding of an 8-byte array. It should not
         be zero.
         .
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getName in interface SpanOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. The resource name of the span in the following format:
        
          * `projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]`
        
         `[TRACE_ID]` is a unique identifier for a trace within a project;
         it is a 32-character hexadecimal encoding of a 16-byte array. It should
         not be zero.
        
         `[SPAN_ID]` is a unique identifier for a span within a trace; it
         is a 16-character hexadecimal encoding of an 8-byte array. It should not
         be zero.
         .
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getNameBytes in interface SpanOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Span.Builder setName​(String value)
         Required. The resource name of the span in the following format:
        
          * `projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]`
        
         `[TRACE_ID]` is a unique identifier for a trace within a project;
         it is a 32-character hexadecimal encoding of a 16-byte array. It should
         not be zero.
        
         `[SPAN_ID]` is a unique identifier for a span within a trace; it
         is a 16-character hexadecimal encoding of an 8-byte array. It should not
         be zero.
         .
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Span.Builder clearName()
         Required. The resource name of the span in the following format:
        
          * `projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]`
        
         `[TRACE_ID]` is a unique identifier for a trace within a project;
         it is a 32-character hexadecimal encoding of a 16-byte array. It should
         not be zero.
        
         `[SPAN_ID]` is a unique identifier for a span within a trace; it
         is a 16-character hexadecimal encoding of an 8-byte array. It should not
         be zero.
         .
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setNameBytes

        public Span.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Required. The resource name of the span in the following format:
        
          * `projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]`
        
         `[TRACE_ID]` is a unique identifier for a trace within a project;
         it is a 32-character hexadecimal encoding of a 16-byte array. It should
         not be zero.
        
         `[SPAN_ID]` is a unique identifier for a span within a trace; it
         is a 16-character hexadecimal encoding of an 8-byte array. It should not
         be zero.
         .
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getSpanId

        public String getSpanId()
         Required. The `[SPAN_ID]` portion of the span's resource name.
         
        string span_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getSpanId in interface SpanOrBuilder
        Returns:
        The spanId.
      • getSpanIdBytes

        public com.google.protobuf.ByteString getSpanIdBytes()
         Required. The `[SPAN_ID]` portion of the span's resource name.
         
        string span_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getSpanIdBytes in interface SpanOrBuilder
        Returns:
        The bytes for spanId.
      • setSpanId

        public Span.Builder setSpanId​(String value)
         Required. The `[SPAN_ID]` portion of the span's resource name.
         
        string span_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The spanId to set.
        Returns:
        This builder for chaining.
      • clearSpanId

        public Span.Builder clearSpanId()
         Required. The `[SPAN_ID]` portion of the span's resource name.
         
        string span_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setSpanIdBytes

        public Span.Builder setSpanIdBytes​(com.google.protobuf.ByteString value)
         Required. The `[SPAN_ID]` portion of the span's resource name.
         
        string span_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for spanId to set.
        Returns:
        This builder for chaining.
      • getParentSpanId

        public String getParentSpanId()
         The `[SPAN_ID]` of this span's parent span. If this is a root span,
         then this field must be empty.
         
        string parent_span_id = 3;
        Specified by:
        getParentSpanId in interface SpanOrBuilder
        Returns:
        The parentSpanId.
      • getParentSpanIdBytes

        public com.google.protobuf.ByteString getParentSpanIdBytes()
         The `[SPAN_ID]` of this span's parent span. If this is a root span,
         then this field must be empty.
         
        string parent_span_id = 3;
        Specified by:
        getParentSpanIdBytes in interface SpanOrBuilder
        Returns:
        The bytes for parentSpanId.
      • setParentSpanId

        public Span.Builder setParentSpanId​(String value)
         The `[SPAN_ID]` of this span's parent span. If this is a root span,
         then this field must be empty.
         
        string parent_span_id = 3;
        Parameters:
        value - The parentSpanId to set.
        Returns:
        This builder for chaining.
      • clearParentSpanId

        public Span.Builder clearParentSpanId()
         The `[SPAN_ID]` of this span's parent span. If this is a root span,
         then this field must be empty.
         
        string parent_span_id = 3;
        Returns:
        This builder for chaining.
      • setParentSpanIdBytes

        public Span.Builder setParentSpanIdBytes​(com.google.protobuf.ByteString value)
         The `[SPAN_ID]` of this span's parent span. If this is a root span,
         then this field must be empty.
         
        string parent_span_id = 3;
        Parameters:
        value - The bytes for parentSpanId to set.
        Returns:
        This builder for chaining.
      • hasDisplayName

        public boolean hasDisplayName()
         Required. A description of the span's operation (up to 128 bytes).
         Cloud Trace displays the description in the
         Cloud console.
         For example, the display name can be a qualified method name or a file name
         and a line number where the operation is called. A best practice is to use
         the same display name within an application and at the same call point.
         This makes it easier to correlate spans in different traces.
         
        .google.devtools.cloudtrace.v2.TruncatableString display_name = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasDisplayName in interface SpanOrBuilder
        Returns:
        Whether the displayName field is set.
      • getDisplayName

        public TruncatableString getDisplayName()
         Required. A description of the span's operation (up to 128 bytes).
         Cloud Trace displays the description in the
         Cloud console.
         For example, the display name can be a qualified method name or a file name
         and a line number where the operation is called. A best practice is to use
         the same display name within an application and at the same call point.
         This makes it easier to correlate spans in different traces.
         
        .google.devtools.cloudtrace.v2.TruncatableString display_name = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDisplayName in interface SpanOrBuilder
        Returns:
        The displayName.
      • setDisplayName

        public Span.Builder setDisplayName​(TruncatableString value)
         Required. A description of the span's operation (up to 128 bytes).
         Cloud Trace displays the description in the
         Cloud console.
         For example, the display name can be a qualified method name or a file name
         and a line number where the operation is called. A best practice is to use
         the same display name within an application and at the same call point.
         This makes it easier to correlate spans in different traces.
         
        .google.devtools.cloudtrace.v2.TruncatableString display_name = 4 [(.google.api.field_behavior) = REQUIRED];
      • setDisplayName

        public Span.Builder setDisplayName​(TruncatableString.Builder builderForValue)
         Required. A description of the span's operation (up to 128 bytes).
         Cloud Trace displays the description in the
         Cloud console.
         For example, the display name can be a qualified method name or a file name
         and a line number where the operation is called. A best practice is to use
         the same display name within an application and at the same call point.
         This makes it easier to correlate spans in different traces.
         
        .google.devtools.cloudtrace.v2.TruncatableString display_name = 4 [(.google.api.field_behavior) = REQUIRED];
      • mergeDisplayName

        public Span.Builder mergeDisplayName​(TruncatableString value)
         Required. A description of the span's operation (up to 128 bytes).
         Cloud Trace displays the description in the
         Cloud console.
         For example, the display name can be a qualified method name or a file name
         and a line number where the operation is called. A best practice is to use
         the same display name within an application and at the same call point.
         This makes it easier to correlate spans in different traces.
         
        .google.devtools.cloudtrace.v2.TruncatableString display_name = 4 [(.google.api.field_behavior) = REQUIRED];
      • clearDisplayName

        public Span.Builder clearDisplayName()
         Required. A description of the span's operation (up to 128 bytes).
         Cloud Trace displays the description in the
         Cloud console.
         For example, the display name can be a qualified method name or a file name
         and a line number where the operation is called. A best practice is to use
         the same display name within an application and at the same call point.
         This makes it easier to correlate spans in different traces.
         
        .google.devtools.cloudtrace.v2.TruncatableString display_name = 4 [(.google.api.field_behavior) = REQUIRED];
      • getDisplayNameBuilder

        public TruncatableString.Builder getDisplayNameBuilder()
         Required. A description of the span's operation (up to 128 bytes).
         Cloud Trace displays the description in the
         Cloud console.
         For example, the display name can be a qualified method name or a file name
         and a line number where the operation is called. A best practice is to use
         the same display name within an application and at the same call point.
         This makes it easier to correlate spans in different traces.
         
        .google.devtools.cloudtrace.v2.TruncatableString display_name = 4 [(.google.api.field_behavior) = REQUIRED];
      • getDisplayNameOrBuilder

        public TruncatableStringOrBuilder getDisplayNameOrBuilder()
         Required. A description of the span's operation (up to 128 bytes).
         Cloud Trace displays the description in the
         Cloud console.
         For example, the display name can be a qualified method name or a file name
         and a line number where the operation is called. A best practice is to use
         the same display name within an application and at the same call point.
         This makes it easier to correlate spans in different traces.
         
        .google.devtools.cloudtrace.v2.TruncatableString display_name = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDisplayNameOrBuilder in interface SpanOrBuilder
      • hasStartTime

        public boolean hasStartTime()
         Required. The start time of the span. On the client side, this is the time
         kept by the local machine where the span execution starts. On the server
         side, this is the time when the server's application handler starts
         running.
         
        .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasStartTime in interface SpanOrBuilder
        Returns:
        Whether the startTime field is set.
      • getStartTime

        public com.google.protobuf.Timestamp getStartTime()
         Required. The start time of the span. On the client side, this is the time
         kept by the local machine where the span execution starts. On the server
         side, this is the time when the server's application handler starts
         running.
         
        .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getStartTime in interface SpanOrBuilder
        Returns:
        The startTime.
      • setStartTime

        public Span.Builder setStartTime​(com.google.protobuf.Timestamp value)
         Required. The start time of the span. On the client side, this is the time
         kept by the local machine where the span execution starts. On the server
         side, this is the time when the server's application handler starts
         running.
         
        .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = REQUIRED];
      • setStartTime

        public Span.Builder setStartTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Required. The start time of the span. On the client side, this is the time
         kept by the local machine where the span execution starts. On the server
         side, this is the time when the server's application handler starts
         running.
         
        .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = REQUIRED];
      • mergeStartTime

        public Span.Builder mergeStartTime​(com.google.protobuf.Timestamp value)
         Required. The start time of the span. On the client side, this is the time
         kept by the local machine where the span execution starts. On the server
         side, this is the time when the server's application handler starts
         running.
         
        .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = REQUIRED];
      • clearStartTime

        public Span.Builder clearStartTime()
         Required. The start time of the span. On the client side, this is the time
         kept by the local machine where the span execution starts. On the server
         side, this is the time when the server's application handler starts
         running.
         
        .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = REQUIRED];
      • getStartTimeBuilder

        public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
         Required. The start time of the span. On the client side, this is the time
         kept by the local machine where the span execution starts. On the server
         side, this is the time when the server's application handler starts
         running.
         
        .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = REQUIRED];
      • getStartTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
         Required. The start time of the span. On the client side, this is the time
         kept by the local machine where the span execution starts. On the server
         side, this is the time when the server's application handler starts
         running.
         
        .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getStartTimeOrBuilder in interface SpanOrBuilder
      • hasEndTime

        public boolean hasEndTime()
         Required. The end time of the span. On the client side, this is the time
         kept by the local machine where the span execution ends. On the server
         side, this is the time when the server application handler stops running.
         
        .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasEndTime in interface SpanOrBuilder
        Returns:
        Whether the endTime field is set.
      • getEndTime

        public com.google.protobuf.Timestamp getEndTime()
         Required. The end time of the span. On the client side, this is the time
         kept by the local machine where the span execution ends. On the server
         side, this is the time when the server application handler stops running.
         
        .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getEndTime in interface SpanOrBuilder
        Returns:
        The endTime.
      • setEndTime

        public Span.Builder setEndTime​(com.google.protobuf.Timestamp value)
         Required. The end time of the span. On the client side, this is the time
         kept by the local machine where the span execution ends. On the server
         side, this is the time when the server application handler stops running.
         
        .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = REQUIRED];
      • setEndTime

        public Span.Builder setEndTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Required. The end time of the span. On the client side, this is the time
         kept by the local machine where the span execution ends. On the server
         side, this is the time when the server application handler stops running.
         
        .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = REQUIRED];
      • mergeEndTime

        public Span.Builder mergeEndTime​(com.google.protobuf.Timestamp value)
         Required. The end time of the span. On the client side, this is the time
         kept by the local machine where the span execution ends. On the server
         side, this is the time when the server application handler stops running.
         
        .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = REQUIRED];
      • clearEndTime

        public Span.Builder clearEndTime()
         Required. The end time of the span. On the client side, this is the time
         kept by the local machine where the span execution ends. On the server
         side, this is the time when the server application handler stops running.
         
        .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = REQUIRED];
      • getEndTimeBuilder

        public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
         Required. The end time of the span. On the client side, this is the time
         kept by the local machine where the span execution ends. On the server
         side, this is the time when the server application handler stops running.
         
        .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = REQUIRED];
      • getEndTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
         Required. The end time of the span. On the client side, this is the time
         kept by the local machine where the span execution ends. On the server
         side, this is the time when the server application handler stops running.
         
        .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getEndTimeOrBuilder in interface SpanOrBuilder
      • hasAttributes

        public boolean hasAttributes()
         A set of attributes on the span. You can have up to 32 attributes per
         span.
         
        .google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;
        Specified by:
        hasAttributes in interface SpanOrBuilder
        Returns:
        Whether the attributes field is set.
      • getAttributes

        public Span.Attributes getAttributes()
         A set of attributes on the span. You can have up to 32 attributes per
         span.
         
        .google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;
        Specified by:
        getAttributes in interface SpanOrBuilder
        Returns:
        The attributes.
      • setAttributes

        public Span.Builder setAttributes​(Span.Attributes value)
         A set of attributes on the span. You can have up to 32 attributes per
         span.
         
        .google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;
      • setAttributes

        public Span.Builder setAttributes​(Span.Attributes.Builder builderForValue)
         A set of attributes on the span. You can have up to 32 attributes per
         span.
         
        .google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;
      • mergeAttributes

        public Span.Builder mergeAttributes​(Span.Attributes value)
         A set of attributes on the span. You can have up to 32 attributes per
         span.
         
        .google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;
      • clearAttributes

        public Span.Builder clearAttributes()
         A set of attributes on the span. You can have up to 32 attributes per
         span.
         
        .google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;
      • getAttributesBuilder

        public Span.Attributes.Builder getAttributesBuilder()
         A set of attributes on the span. You can have up to 32 attributes per
         span.
         
        .google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;
      • hasStackTrace

        public boolean hasStackTrace()
         Stack trace captured at the start of the span.
         
        .google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;
        Specified by:
        hasStackTrace in interface SpanOrBuilder
        Returns:
        Whether the stackTrace field is set.
      • getStackTrace

        public StackTrace getStackTrace()
         Stack trace captured at the start of the span.
         
        .google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;
        Specified by:
        getStackTrace in interface SpanOrBuilder
        Returns:
        The stackTrace.
      • setStackTrace

        public Span.Builder setStackTrace​(StackTrace value)
         Stack trace captured at the start of the span.
         
        .google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;
      • setStackTrace

        public Span.Builder setStackTrace​(StackTrace.Builder builderForValue)
         Stack trace captured at the start of the span.
         
        .google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;
      • mergeStackTrace

        public Span.Builder mergeStackTrace​(StackTrace value)
         Stack trace captured at the start of the span.
         
        .google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;
      • clearStackTrace

        public Span.Builder clearStackTrace()
         Stack trace captured at the start of the span.
         
        .google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;
      • getStackTraceBuilder

        public StackTrace.Builder getStackTraceBuilder()
         Stack trace captured at the start of the span.
         
        .google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;
      • hasTimeEvents

        public boolean hasTimeEvents()
         A set of time events. You can have up to 32 annotations and 128 message
         events per span.
         
        .google.devtools.cloudtrace.v2.Span.TimeEvents time_events = 9;
        Specified by:
        hasTimeEvents in interface SpanOrBuilder
        Returns:
        Whether the timeEvents field is set.
      • getTimeEvents

        public Span.TimeEvents getTimeEvents()
         A set of time events. You can have up to 32 annotations and 128 message
         events per span.
         
        .google.devtools.cloudtrace.v2.Span.TimeEvents time_events = 9;
        Specified by:
        getTimeEvents in interface SpanOrBuilder
        Returns:
        The timeEvents.
      • setTimeEvents

        public Span.Builder setTimeEvents​(Span.TimeEvents value)
         A set of time events. You can have up to 32 annotations and 128 message
         events per span.
         
        .google.devtools.cloudtrace.v2.Span.TimeEvents time_events = 9;
      • setTimeEvents

        public Span.Builder setTimeEvents​(Span.TimeEvents.Builder builderForValue)
         A set of time events. You can have up to 32 annotations and 128 message
         events per span.
         
        .google.devtools.cloudtrace.v2.Span.TimeEvents time_events = 9;
      • mergeTimeEvents

        public Span.Builder mergeTimeEvents​(Span.TimeEvents value)
         A set of time events. You can have up to 32 annotations and 128 message
         events per span.
         
        .google.devtools.cloudtrace.v2.Span.TimeEvents time_events = 9;
      • clearTimeEvents

        public Span.Builder clearTimeEvents()
         A set of time events. You can have up to 32 annotations and 128 message
         events per span.
         
        .google.devtools.cloudtrace.v2.Span.TimeEvents time_events = 9;
      • getTimeEventsBuilder

        public Span.TimeEvents.Builder getTimeEventsBuilder()
         A set of time events. You can have up to 32 annotations and 128 message
         events per span.
         
        .google.devtools.cloudtrace.v2.Span.TimeEvents time_events = 9;
      • getTimeEventsOrBuilder

        public Span.TimeEventsOrBuilder getTimeEventsOrBuilder()
         A set of time events. You can have up to 32 annotations and 128 message
         events per span.
         
        .google.devtools.cloudtrace.v2.Span.TimeEvents time_events = 9;
        Specified by:
        getTimeEventsOrBuilder in interface SpanOrBuilder
      • hasLinks

        public boolean hasLinks()
         Links associated with the span. You can have up to 128 links per Span.
         
        .google.devtools.cloudtrace.v2.Span.Links links = 10;
        Specified by:
        hasLinks in interface SpanOrBuilder
        Returns:
        Whether the links field is set.
      • getLinks

        public Span.Links getLinks()
         Links associated with the span. You can have up to 128 links per Span.
         
        .google.devtools.cloudtrace.v2.Span.Links links = 10;
        Specified by:
        getLinks in interface SpanOrBuilder
        Returns:
        The links.
      • setLinks

        public Span.Builder setLinks​(Span.Links value)
         Links associated with the span. You can have up to 128 links per Span.
         
        .google.devtools.cloudtrace.v2.Span.Links links = 10;
      • setLinks

        public Span.Builder setLinks​(Span.Links.Builder builderForValue)
         Links associated with the span. You can have up to 128 links per Span.
         
        .google.devtools.cloudtrace.v2.Span.Links links = 10;
      • mergeLinks

        public Span.Builder mergeLinks​(Span.Links value)
         Links associated with the span. You can have up to 128 links per Span.
         
        .google.devtools.cloudtrace.v2.Span.Links links = 10;
      • clearLinks

        public Span.Builder clearLinks()
         Links associated with the span. You can have up to 128 links per Span.
         
        .google.devtools.cloudtrace.v2.Span.Links links = 10;
      • getLinksBuilder

        public Span.Links.Builder getLinksBuilder()
         Links associated with the span. You can have up to 128 links per Span.
         
        .google.devtools.cloudtrace.v2.Span.Links links = 10;
      • getLinksOrBuilder

        public Span.LinksOrBuilder getLinksOrBuilder()
         Links associated with the span. You can have up to 128 links per Span.
         
        .google.devtools.cloudtrace.v2.Span.Links links = 10;
        Specified by:
        getLinksOrBuilder in interface SpanOrBuilder
      • hasStatus

        public boolean hasStatus()
         Optional. The final status for this span.
         
        .google.rpc.Status status = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasStatus in interface SpanOrBuilder
        Returns:
        Whether the status field is set.
      • getStatus

        public com.google.rpc.Status getStatus()
         Optional. The final status for this span.
         
        .google.rpc.Status status = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getStatus in interface SpanOrBuilder
        Returns:
        The status.
      • setStatus

        public Span.Builder setStatus​(com.google.rpc.Status value)
         Optional. The final status for this span.
         
        .google.rpc.Status status = 11 [(.google.api.field_behavior) = OPTIONAL];
      • setStatus

        public Span.Builder setStatus​(com.google.rpc.Status.Builder builderForValue)
         Optional. The final status for this span.
         
        .google.rpc.Status status = 11 [(.google.api.field_behavior) = OPTIONAL];
      • mergeStatus

        public Span.Builder mergeStatus​(com.google.rpc.Status value)
         Optional. The final status for this span.
         
        .google.rpc.Status status = 11 [(.google.api.field_behavior) = OPTIONAL];
      • clearStatus

        public Span.Builder clearStatus()
         Optional. The final status for this span.
         
        .google.rpc.Status status = 11 [(.google.api.field_behavior) = OPTIONAL];
      • getStatusBuilder

        public com.google.rpc.Status.Builder getStatusBuilder()
         Optional. The final status for this span.
         
        .google.rpc.Status status = 11 [(.google.api.field_behavior) = OPTIONAL];
      • getStatusOrBuilder

        public com.google.rpc.StatusOrBuilder getStatusOrBuilder()
         Optional. The final status for this span.
         
        .google.rpc.Status status = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getStatusOrBuilder in interface SpanOrBuilder
      • hasSameProcessAsParentSpan

        public boolean hasSameProcessAsParentSpan()
         Optional. Set this parameter to indicate whether this span is in
         the same process as its parent. If you do not set this parameter,
         Trace is unable to take advantage of this helpful information.
         
        .google.protobuf.BoolValue same_process_as_parent_span = 12 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasSameProcessAsParentSpan in interface SpanOrBuilder
        Returns:
        Whether the sameProcessAsParentSpan field is set.
      • getSameProcessAsParentSpan

        public com.google.protobuf.BoolValue getSameProcessAsParentSpan()
         Optional. Set this parameter to indicate whether this span is in
         the same process as its parent. If you do not set this parameter,
         Trace is unable to take advantage of this helpful information.
         
        .google.protobuf.BoolValue same_process_as_parent_span = 12 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSameProcessAsParentSpan in interface SpanOrBuilder
        Returns:
        The sameProcessAsParentSpan.
      • setSameProcessAsParentSpan

        public Span.Builder setSameProcessAsParentSpan​(com.google.protobuf.BoolValue value)
         Optional. Set this parameter to indicate whether this span is in
         the same process as its parent. If you do not set this parameter,
         Trace is unable to take advantage of this helpful information.
         
        .google.protobuf.BoolValue same_process_as_parent_span = 12 [(.google.api.field_behavior) = OPTIONAL];
      • setSameProcessAsParentSpan

        public Span.Builder setSameProcessAsParentSpan​(com.google.protobuf.BoolValue.Builder builderForValue)
         Optional. Set this parameter to indicate whether this span is in
         the same process as its parent. If you do not set this parameter,
         Trace is unable to take advantage of this helpful information.
         
        .google.protobuf.BoolValue same_process_as_parent_span = 12 [(.google.api.field_behavior) = OPTIONAL];
      • mergeSameProcessAsParentSpan

        public Span.Builder mergeSameProcessAsParentSpan​(com.google.protobuf.BoolValue value)
         Optional. Set this parameter to indicate whether this span is in
         the same process as its parent. If you do not set this parameter,
         Trace is unable to take advantage of this helpful information.
         
        .google.protobuf.BoolValue same_process_as_parent_span = 12 [(.google.api.field_behavior) = OPTIONAL];
      • clearSameProcessAsParentSpan

        public Span.Builder clearSameProcessAsParentSpan()
         Optional. Set this parameter to indicate whether this span is in
         the same process as its parent. If you do not set this parameter,
         Trace is unable to take advantage of this helpful information.
         
        .google.protobuf.BoolValue same_process_as_parent_span = 12 [(.google.api.field_behavior) = OPTIONAL];
      • getSameProcessAsParentSpanBuilder

        public com.google.protobuf.BoolValue.Builder getSameProcessAsParentSpanBuilder()
         Optional. Set this parameter to indicate whether this span is in
         the same process as its parent. If you do not set this parameter,
         Trace is unable to take advantage of this helpful information.
         
        .google.protobuf.BoolValue same_process_as_parent_span = 12 [(.google.api.field_behavior) = OPTIONAL];
      • getSameProcessAsParentSpanOrBuilder

        public com.google.protobuf.BoolValueOrBuilder getSameProcessAsParentSpanOrBuilder()
         Optional. Set this parameter to indicate whether this span is in
         the same process as its parent. If you do not set this parameter,
         Trace is unable to take advantage of this helpful information.
         
        .google.protobuf.BoolValue same_process_as_parent_span = 12 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSameProcessAsParentSpanOrBuilder in interface SpanOrBuilder
      • hasChildSpanCount

        public boolean hasChildSpanCount()
         Optional. The number of child spans that were generated while this span
         was active. If set, allows implementation to detect missing child spans.
         
        .google.protobuf.Int32Value child_span_count = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasChildSpanCount in interface SpanOrBuilder
        Returns:
        Whether the childSpanCount field is set.
      • getChildSpanCount

        public com.google.protobuf.Int32Value getChildSpanCount()
         Optional. The number of child spans that were generated while this span
         was active. If set, allows implementation to detect missing child spans.
         
        .google.protobuf.Int32Value child_span_count = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getChildSpanCount in interface SpanOrBuilder
        Returns:
        The childSpanCount.
      • setChildSpanCount

        public Span.Builder setChildSpanCount​(com.google.protobuf.Int32Value value)
         Optional. The number of child spans that were generated while this span
         was active. If set, allows implementation to detect missing child spans.
         
        .google.protobuf.Int32Value child_span_count = 13 [(.google.api.field_behavior) = OPTIONAL];
      • setChildSpanCount

        public Span.Builder setChildSpanCount​(com.google.protobuf.Int32Value.Builder builderForValue)
         Optional. The number of child spans that were generated while this span
         was active. If set, allows implementation to detect missing child spans.
         
        .google.protobuf.Int32Value child_span_count = 13 [(.google.api.field_behavior) = OPTIONAL];
      • mergeChildSpanCount

        public Span.Builder mergeChildSpanCount​(com.google.protobuf.Int32Value value)
         Optional. The number of child spans that were generated while this span
         was active. If set, allows implementation to detect missing child spans.
         
        .google.protobuf.Int32Value child_span_count = 13 [(.google.api.field_behavior) = OPTIONAL];
      • clearChildSpanCount

        public Span.Builder clearChildSpanCount()
         Optional. The number of child spans that were generated while this span
         was active. If set, allows implementation to detect missing child spans.
         
        .google.protobuf.Int32Value child_span_count = 13 [(.google.api.field_behavior) = OPTIONAL];
      • getChildSpanCountBuilder

        public com.google.protobuf.Int32Value.Builder getChildSpanCountBuilder()
         Optional. The number of child spans that were generated while this span
         was active. If set, allows implementation to detect missing child spans.
         
        .google.protobuf.Int32Value child_span_count = 13 [(.google.api.field_behavior) = OPTIONAL];
      • getChildSpanCountOrBuilder

        public com.google.protobuf.Int32ValueOrBuilder getChildSpanCountOrBuilder()
         Optional. The number of child spans that were generated while this span
         was active. If set, allows implementation to detect missing child spans.
         
        .google.protobuf.Int32Value child_span_count = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getChildSpanCountOrBuilder in interface SpanOrBuilder
      • getSpanKindValue

        public int getSpanKindValue()
         Optional. Distinguishes between spans generated in a particular context.
         For example, two spans with the same name may be distinguished using
         `CLIENT` (caller) and `SERVER` (callee) to identify an RPC call.
         
        .google.devtools.cloudtrace.v2.Span.SpanKind span_kind = 14 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSpanKindValue in interface SpanOrBuilder
        Returns:
        The enum numeric value on the wire for spanKind.
      • setSpanKindValue

        public Span.Builder setSpanKindValue​(int value)
         Optional. Distinguishes between spans generated in a particular context.
         For example, two spans with the same name may be distinguished using
         `CLIENT` (caller) and `SERVER` (callee) to identify an RPC call.
         
        .google.devtools.cloudtrace.v2.Span.SpanKind span_kind = 14 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for spanKind to set.
        Returns:
        This builder for chaining.
      • getSpanKind

        public Span.SpanKind getSpanKind()
         Optional. Distinguishes between spans generated in a particular context.
         For example, two spans with the same name may be distinguished using
         `CLIENT` (caller) and `SERVER` (callee) to identify an RPC call.
         
        .google.devtools.cloudtrace.v2.Span.SpanKind span_kind = 14 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSpanKind in interface SpanOrBuilder
        Returns:
        The spanKind.
      • setSpanKind

        public Span.Builder setSpanKind​(Span.SpanKind value)
         Optional. Distinguishes between spans generated in a particular context.
         For example, two spans with the same name may be distinguished using
         `CLIENT` (caller) and `SERVER` (callee) to identify an RPC call.
         
        .google.devtools.cloudtrace.v2.Span.SpanKind span_kind = 14 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The spanKind to set.
        Returns:
        This builder for chaining.
      • clearSpanKind

        public Span.Builder clearSpanKind()
         Optional. Distinguishes between spans generated in a particular context.
         For example, two spans with the same name may be distinguished using
         `CLIENT` (caller) and `SERVER` (callee) to identify an RPC call.
         
        .google.devtools.cloudtrace.v2.Span.SpanKind span_kind = 14 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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