public final class Trace extends com.google.protobuf.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| Modifier and Type | Class and Description |
|---|---|
static class |
Trace.Builder
A trace describes how long it takes for an application to perform an
operation.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
PROJECT_ID_FIELD_NUMBER |
static int |
SPANS_FIELD_NUMBER |
static int |
TRACE_ID_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Trace |
getDefaultInstance() |
Trace |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<Trace> |
getParserForType() |
String |
getProjectId()
Project ID of the Cloud project where the trace data is stored.
|
com.google.protobuf.ByteString |
getProjectIdBytes()
Project ID of the Cloud project where the trace data is stored.
|
int |
getSerializedSize() |
TraceSpan |
getSpans(int index)
Collection of spans in the trace.
|
int |
getSpansCount()
Collection of spans in the trace.
|
List<TraceSpan> |
getSpansList()
Collection of spans in the trace.
|
TraceSpanOrBuilder |
getSpansOrBuilder(int index)
Collection of spans in the trace.
|
List<? extends TraceSpanOrBuilder> |
getSpansOrBuilderList()
Collection of spans in the trace.
|
String |
getTraceId()
Globally unique identifier for the trace.
|
com.google.protobuf.ByteString |
getTraceIdBytes()
Globally unique identifier for the trace.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Trace.Builder |
newBuilder() |
static Trace.Builder |
newBuilder(Trace prototype) |
Trace.Builder |
newBuilderForType() |
protected Trace.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Trace |
parseDelimitedFrom(InputStream input) |
static Trace |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Trace |
parseFrom(byte[] data) |
static Trace |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Trace |
parseFrom(ByteBuffer data) |
static Trace |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Trace |
parseFrom(com.google.protobuf.ByteString data) |
static Trace |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Trace |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Trace |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Trace |
parseFrom(InputStream input) |
static Trace |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Trace> |
parser() |
Trace.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int PROJECT_ID_FIELD_NUMBER
public static final int TRACE_ID_FIELD_NUMBER
public static final int SPANS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getProjectId()
Project ID of the Cloud project where the trace data is stored.
string project_id = 1;getProjectId in interface TraceOrBuilderpublic com.google.protobuf.ByteString getProjectIdBytes()
Project ID of the Cloud project where the trace data is stored.
string project_id = 1;getProjectIdBytes in interface TraceOrBuilderpublic 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;getTraceId in interface TraceOrBuilderpublic com.google.protobuf.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;getTraceIdBytes in interface TraceOrBuilderpublic List<TraceSpan> getSpansList()
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;getSpansList in interface TraceOrBuilderpublic List<? extends TraceSpanOrBuilder> getSpansOrBuilderList()
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;getSpansOrBuilderList in interface TraceOrBuilderpublic int getSpansCount()
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;getSpansCount in interface TraceOrBuilderpublic TraceSpan getSpans(int index)
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;getSpans in interface TraceOrBuilderpublic TraceSpanOrBuilder getSpansOrBuilder(int index)
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;getSpansOrBuilder in interface TraceOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Trace parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Trace parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Trace parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Trace parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Trace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Trace parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Trace parseFrom(InputStream input) throws IOException
IOExceptionpublic static Trace parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Trace parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Trace parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Trace parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Trace parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Trace.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Trace.Builder newBuilder()
public static Trace.Builder newBuilder(Trace prototype)
public Trace.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Trace.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Trace getDefaultInstance()
public static com.google.protobuf.Parser<Trace> parser()
public com.google.protobuf.Parser<Trace> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Trace getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.