Class Trace (2.24.0)

public final class Trace extends GeneratedMessageV3 implements TraceOrBuilder

A trace describes how long it takes for an application to perform an operation. It consists of a set of spans, each of which represent a single timed event within the operation.

Protobuf type google.devtools.cloudtrace.v1.Trace

Implements

TraceOrBuilder

Static Fields

PROJECT_ID_FIELD_NUMBER

public static final int PROJECT_ID_FIELD_NUMBER
Field Value
TypeDescription
int

SPANS_FIELD_NUMBER

public static final int SPANS_FIELD_NUMBER
Field Value
TypeDescription
int

TRACE_ID_FIELD_NUMBER

public static final int TRACE_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Trace getDefaultInstance()
Returns
TypeDescription
Trace

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Trace.Builder newBuilder()
Returns
TypeDescription
Trace.Builder

newBuilder(Trace prototype)

public static Trace.Builder newBuilder(Trace prototype)
Parameter
NameDescription
prototypeTrace
Returns
TypeDescription
Trace.Builder

parseDelimitedFrom(InputStream input)

public static Trace parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Trace
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Trace parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Trace
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Trace parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Trace
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Trace parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Trace
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Trace parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Trace
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Trace parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Trace
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Trace parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Trace
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Trace parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Trace
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Trace parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Trace
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Trace parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Trace
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Trace parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Trace
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Trace parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Trace
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Trace> parser()
Returns
TypeDescription
Parser<Trace>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Trace getDefaultInstanceForType()
Returns
TypeDescription
Trace

getParserForType()

public Parser<Trace> getParserForType()
Returns
TypeDescription
Parser<Trace>
Overrides

getProjectId()

public String getProjectId()

Project ID of the Cloud project where the trace data is stored.

string project_id = 1;

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Project ID of the Cloud project where the trace data is stored.

string project_id = 1;

Returns
TypeDescription
ByteString

The bytes for projectId.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSpans(int index)

public TraceSpan getSpans(int index)

Collection of spans in the trace.

repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
TraceSpan

getSpansCount()

public int getSpansCount()

Collection of spans in the trace.

repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;

Returns
TypeDescription
int

getSpansList()

public List<TraceSpan> getSpansList()

Collection of spans in the trace.

repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;

Returns
TypeDescription
List<TraceSpan>

getSpansOrBuilder(int index)

public TraceSpanOrBuilder getSpansOrBuilder(int index)

Collection of spans in the trace.

repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
TraceSpanOrBuilder

getSpansOrBuilderList()

public List<? extends TraceSpanOrBuilder> getSpansOrBuilderList()

Collection of spans in the trace.

repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;

Returns
TypeDescription
List<? extends com.google.devtools.cloudtrace.v1.TraceSpanOrBuilder>

getTraceId()

public String getTraceId()

Globally unique identifier for the trace. This identifier is a 128-bit numeric value formatted as a 32-byte hex string. For example, 382d4f4c6b7bb2f4a972559d9085001d.

string trace_id = 2;

Returns
TypeDescription
String

The traceId.

getTraceIdBytes()

public ByteString getTraceIdBytes()

Globally unique identifier for the trace. This identifier is a 128-bit numeric value formatted as a 32-byte hex string. For example, 382d4f4c6b7bb2f4a972559d9085001d.

string trace_id = 2;

Returns
TypeDescription
ByteString

The bytes for traceId.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Trace.Builder newBuilderForType()
Returns
TypeDescription
Trace.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Trace.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Trace.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Trace.Builder toBuilder()
Returns
TypeDescription
Trace.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException