public static final class StackTrace.Builder extends GeneratedMessage.Builder<StackTrace.Builder> implements StackTraceOrBuilderA call stack appearing in a trace.
Protobuf type google.devtools.cloudtrace.v2.StackTrace
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > StackTrace.BuilderImplements
StackTraceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
getDefaultInstanceForType()
public StackTrace getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
StackTrace |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public StackTrace.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
StackTrace.Builder |
|
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 |
|
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 |
longThe stackTraceHashId to set. |
| Returns | |
|---|---|
| Type | Description |
StackTrace.Builder |
This builder for chaining. |