Class StackTrace.StackFrames.Builder (2.48.0)

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

A collection of stack frames, which can be truncated.

Protobuf type google.devtools.cloudtrace.v2.StackTrace.StackFrames

Static Methods

getDescriptor()

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

Methods

addAllFrame(Iterable<? extends StackTrace.StackFrame> values)

public StackTrace.StackFrames.Builder addAllFrame(Iterable<? extends StackTrace.StackFrame> values)

Stack frames in this call stack.

repeated .google.devtools.cloudtrace.v2.StackTrace.StackFrame frame = 1;

Parameter
Name Description
values Iterable<? extends com.google.devtools.cloudtrace.v2.StackTrace.StackFrame>
Returns
Type Description
StackTrace.StackFrames.Builder

addFrame(StackTrace.StackFrame value)

public StackTrace.StackFrames.Builder addFrame(StackTrace.StackFrame value)

Stack frames in this call stack.

repeated .google.devtools.cloudtrace.v2.StackTrace.StackFrame frame = 1;

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

addFrame(StackTrace.StackFrame.Builder builderForValue)

public StackTrace.StackFrames.Builder addFrame(StackTrace.StackFrame.Builder builderForValue)

Stack frames in this call stack.

repeated .google.devtools.cloudtrace.v2.StackTrace.StackFrame frame = 1;

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

addFrame(int index, StackTrace.StackFrame value)

public StackTrace.StackFrames.Builder addFrame(int index, StackTrace.StackFrame value)

Stack frames in this call stack.

repeated .google.devtools.cloudtrace.v2.StackTrace.StackFrame frame = 1;

Parameters
Name Description
index int
value StackTrace.StackFrame
Returns
Type Description
StackTrace.StackFrames.Builder

addFrame(int index, StackTrace.StackFrame.Builder builderForValue)

public StackTrace.StackFrames.Builder addFrame(int index, StackTrace.StackFrame.Builder builderForValue)

Stack frames in this call stack.

repeated .google.devtools.cloudtrace.v2.StackTrace.StackFrame frame = 1;

Parameters
Name Description
index int
builderForValue StackTrace.StackFrame.Builder
Returns
Type Description
StackTrace.StackFrames.Builder

addFrameBuilder()

public StackTrace.StackFrame.Builder addFrameBuilder()

Stack frames in this call stack.

repeated .google.devtools.cloudtrace.v2.StackTrace.StackFrame frame = 1;

Returns
Type Description
StackTrace.StackFrame.Builder

addFrameBuilder(int index)

public StackTrace.StackFrame.Builder addFrameBuilder(int index)

Stack frames in this call stack.

repeated .google.devtools.cloudtrace.v2.StackTrace.StackFrame frame = 1;

Parameter
Name Description
index int
Returns
Type Description
StackTrace.StackFrame.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StackTrace.StackFrames build()
Returns
Type Description
StackTrace.StackFrames

buildPartial()

public StackTrace.StackFrames buildPartial()
Returns
Type Description
StackTrace.StackFrames

clear()

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

clearDroppedFramesCount()

public StackTrace.StackFrames.Builder clearDroppedFramesCount()

The number of stack frames that were dropped because there were too many stack frames. If this value is 0, then no stack frames were dropped.

int32 dropped_frames_count = 2;

Returns
Type Description
StackTrace.StackFrames.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFrame()

public StackTrace.StackFrames.Builder clearFrame()

Stack frames in this call stack.

repeated .google.devtools.cloudtrace.v2.StackTrace.StackFrame frame = 1;

Returns
Type Description
StackTrace.StackFrames.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public StackTrace.StackFrames getDefaultInstanceForType()
Returns
Type Description
StackTrace.StackFrames

getDescriptorForType()

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

getDroppedFramesCount()

public int getDroppedFramesCount()

The number of stack frames that were dropped because there were too many stack frames. If this value is 0, then no stack frames were dropped.

int32 dropped_frames_count = 2;

Returns
Type Description
int

The droppedFramesCount.

getFrame(int index)

public StackTrace.StackFrame getFrame(int index)

Stack frames in this call stack.

repeated .google.devtools.cloudtrace.v2.StackTrace.StackFrame frame = 1;

Parameter
Name Description
index int
Returns
Type Description
StackTrace.StackFrame

getFrameBuilder(int index)

public StackTrace.StackFrame.Builder getFrameBuilder(int index)

Stack frames in this call stack.

repeated .google.devtools.cloudtrace.v2.StackTrace.StackFrame frame = 1;

Parameter
Name Description
index int
Returns
Type Description
StackTrace.StackFrame.Builder

getFrameBuilderList()

public List<StackTrace.StackFrame.Builder> getFrameBuilderList()

Stack frames in this call stack.

repeated .google.devtools.cloudtrace.v2.StackTrace.StackFrame frame = 1;

Returns
Type Description
List<Builder>

getFrameCount()

public int getFrameCount()

Stack frames in this call stack.

repeated .google.devtools.cloudtrace.v2.StackTrace.StackFrame frame = 1;

Returns
Type Description
int

getFrameList()

public List<StackTrace.StackFrame> getFrameList()

Stack frames in this call stack.

repeated .google.devtools.cloudtrace.v2.StackTrace.StackFrame frame = 1;

Returns
Type Description
List<StackFrame>

getFrameOrBuilder(int index)

public StackTrace.StackFrameOrBuilder getFrameOrBuilder(int index)

Stack frames in this call stack.

repeated .google.devtools.cloudtrace.v2.StackTrace.StackFrame frame = 1;

Parameter
Name Description
index int
Returns
Type Description
StackTrace.StackFrameOrBuilder

getFrameOrBuilderList()

public List<? extends StackTrace.StackFrameOrBuilder> getFrameOrBuilderList()

Stack frames in this call stack.

repeated .google.devtools.cloudtrace.v2.StackTrace.StackFrame frame = 1;

Returns
Type Description
List<? extends com.google.devtools.cloudtrace.v2.StackTrace.StackFrameOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StackTrace.StackFrames other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeFrame(int index)

public StackTrace.StackFrames.Builder removeFrame(int index)

Stack frames in this call stack.

repeated .google.devtools.cloudtrace.v2.StackTrace.StackFrame frame = 1;

Parameter
Name Description
index int
Returns
Type Description
StackTrace.StackFrames.Builder

setDroppedFramesCount(int value)

public StackTrace.StackFrames.Builder setDroppedFramesCount(int value)

The number of stack frames that were dropped because there were too many stack frames. If this value is 0, then no stack frames were dropped.

int32 dropped_frames_count = 2;

Parameter
Name Description
value int

The droppedFramesCount to set.

Returns
Type Description
StackTrace.StackFrames.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFrame(int index, StackTrace.StackFrame value)

public StackTrace.StackFrames.Builder setFrame(int index, StackTrace.StackFrame value)

Stack frames in this call stack.

repeated .google.devtools.cloudtrace.v2.StackTrace.StackFrame frame = 1;

Parameters
Name Description
index int
value StackTrace.StackFrame
Returns
Type Description
StackTrace.StackFrames.Builder

setFrame(int index, StackTrace.StackFrame.Builder builderForValue)

public StackTrace.StackFrames.Builder setFrame(int index, StackTrace.StackFrame.Builder builderForValue)

Stack frames in this call stack.

repeated .google.devtools.cloudtrace.v2.StackTrace.StackFrame frame = 1;

Parameters
Name Description
index int
builderForValue StackTrace.StackFrame.Builder
Returns
Type Description
StackTrace.StackFrames.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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