Class StackTrace.Builder (2.52.0)

public static final class StackTrace.Builder extends GeneratedMessageV3.Builder<StackTrace.Builder> implements StackTraceOrBuilder

A call stack appearing in a trace.

Protobuf type google.devtools.cloudtrace.v2.StackTrace

Implements

StackTraceOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StackTrace.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StackTrace.Builder
Overrides

build()

public StackTrace build()
Returns
Type Description
StackTrace

buildPartial()

public StackTrace buildPartial()
Returns
Type Description
StackTrace

clear()

public StackTrace.Builder clear()
Returns
Type Description
StackTrace.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public StackTrace.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StackTrace.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StackTrace.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StackTrace.Builder
Overrides

clearStackFrames()

public StackTrace.Builder clearStackFrames()

Stack frames in this stack trace. A maximum of 128 frames are allowed.

.google.devtools.cloudtrace.v2.StackTrace.StackFrames stack_frames = 1;

Returns
Type Description
StackTrace.Builder

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 the stackFrame content and a value in stackTraceHashId.

Subsequent spans within the same request can refer to that stack trace by only setting stackTraceHashId.

int64 stack_trace_hash_id = 2;

Returns
Type Description
StackTrace.Builder

This builder for chaining.

clone()

public StackTrace.Builder clone()
Returns
Type Description
StackTrace.Builder
Overrides

getDefaultInstanceForType()

public StackTrace getDefaultInstanceForType()
Returns
Type Description
StackTrace

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getStackFrames()

public StackTrace.StackFrames getStackFrames()

Stack frames in this stack trace. A maximum of 128 frames are allowed.

.google.devtools.cloudtrace.v2.StackTrace.StackFrames stack_frames = 1;

Returns
Type Description
StackTrace.StackFrames

The stackFrames.

getStackFramesBuilder()

public StackTrace.StackFrames.Builder getStackFramesBuilder()

Stack frames in this stack trace. A maximum of 128 frames are allowed.

.google.devtools.cloudtrace.v2.StackTrace.StackFrames stack_frames = 1;

Returns
Type Description
StackTrace.StackFrames.Builder

getStackFramesOrBuilder()

public StackTrace.StackFramesOrBuilder getStackFramesOrBuilder()

Stack frames in this stack trace. A maximum of 128 frames are allowed.

.google.devtools.cloudtrace.v2.StackTrace.StackFrames stack_frames = 1;

Returns
Type Description
StackTrace.StackFramesOrBuilder

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 the stackFrame content and a value in stackTraceHashId.

Subsequent spans within the same request can refer to that stack trace by only setting stackTraceHashId.

int64 stack_trace_hash_id = 2;

Returns
Type Description
long

The stackTraceHashId.

hasStackFrames()

public boolean hasStackFrames()

Stack frames in this stack trace. A maximum of 128 frames are allowed.

.google.devtools.cloudtrace.v2.StackTrace.StackFrames stack_frames = 1;

Returns
Type Description
boolean

Whether the stackFrames field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StackTrace other)

public StackTrace.Builder mergeFrom(StackTrace other)
Parameter
Name Description
other StackTrace
Returns
Type Description
StackTrace.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StackTrace.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StackTrace.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StackTrace.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StackTrace.Builder
Overrides

mergeStackFrames(StackTrace.StackFrames value)

public StackTrace.Builder mergeStackFrames(StackTrace.StackFrames value)

Stack frames in this stack trace. A maximum of 128 frames are allowed.

.google.devtools.cloudtrace.v2.StackTrace.StackFrames stack_frames = 1;

Parameter
Name Description
value StackTrace.StackFrames
Returns
Type Description
StackTrace.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StackTrace.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StackTrace.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public StackTrace.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StackTrace.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StackTrace.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StackTrace.Builder
Overrides

setStackFrames(StackTrace.StackFrames value)

public StackTrace.Builder setStackFrames(StackTrace.StackFrames value)

Stack frames in this stack trace. A maximum of 128 frames are allowed.

.google.devtools.cloudtrace.v2.StackTrace.StackFrames stack_frames = 1;

Parameter
Name Description
value StackTrace.StackFrames
Returns
Type Description
StackTrace.Builder

setStackFrames(StackTrace.StackFrames.Builder builderForValue)

public StackTrace.Builder setStackFrames(StackTrace.StackFrames.Builder builderForValue)

Stack frames in this stack trace. A maximum of 128 frames are allowed.

.google.devtools.cloudtrace.v2.StackTrace.StackFrames stack_frames = 1;

Parameter
Name Description
builderForValue StackTrace.StackFrames.Builder
Returns
Type Description
StackTrace.Builder

setStackTraceHashId(long value)

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 the stackFrame content and a value in stackTraceHashId.

Subsequent spans within the same request can refer to that stack trace by only setting stackTraceHashId.

int64 stack_trace_hash_id = 2;

Parameter
Name Description
value long

The stackTraceHashId to set.

Returns
Type Description
StackTrace.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final StackTrace.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StackTrace.Builder
Overrides