Class StackTrace.Builder (2.20.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StackTrace.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StackTrace.Builder
Overrides

build()

public StackTrace build()
Returns
TypeDescription
StackTrace

buildPartial()

public StackTrace buildPartial()
Returns
TypeDescription
StackTrace

clear()

public StackTrace.Builder clear()
Returns
TypeDescription
StackTrace.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public StackTrace.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
StackTrace.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StackTrace.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
StackTrace.Builder

This builder for chaining.

clone()

public StackTrace.Builder clone()
Returns
TypeDescription
StackTrace.Builder
Overrides

getDefaultInstanceForType()

public StackTrace getDefaultInstanceForType()
Returns
TypeDescription
StackTrace

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the stackFrames field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StackTrace other)

public StackTrace.Builder mergeFrom(StackTrace other)
Parameter
NameDescription
otherStackTrace
Returns
TypeDescription
StackTrace.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StackTrace.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StackTrace.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public StackTrace.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueStackTrace.StackFrames
Returns
TypeDescription
StackTrace.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StackTrace.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StackTrace.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public StackTrace.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StackTrace.Builder
Overrides

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

public StackTrace.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueStackTrace.StackFrames
Returns
TypeDescription
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
NameDescription
builderForValueStackTrace.StackFrames.Builder
Returns
TypeDescription
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
NameDescription
valuelong

The stackTraceHashId to set.

Returns
TypeDescription
StackTrace.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final StackTrace.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StackTrace.Builder
Overrides