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
Modifier and Type | Class and Description |
---|---|
static class |
Trace.Builder
A trace describes how long it takes for an application to perform an
operation.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
PROJECT_ID_FIELD_NUMBER |
static int |
SPANS_FIELD_NUMBER |
static int |
TRACE_ID_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static Trace |
getDefaultInstance() |
Trace |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Parser<Trace> |
getParserForType() |
java.lang.String |
getProjectId()
Project ID of the Cloud project where the trace data is stored.
|
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.
|
java.util.List<TraceSpan> |
getSpansList()
Collection of spans in the trace.
|
TraceSpanOrBuilder |
getSpansOrBuilder(int index)
Collection of spans in the trace.
|
java.util.List<? extends TraceSpanOrBuilder> |
getSpansOrBuilderList()
Collection of spans in the trace.
|
java.lang.String |
getTraceId()
Globally unique identifier for the trace.
|
ByteString |
getTraceIdBytes()
Globally unique identifier for the trace.
|
UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Trace.Builder |
newBuilder() |
static Trace.Builder |
newBuilder(Trace prototype) |
Trace.Builder |
newBuilderForType() |
protected Trace.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static Trace |
parseDelimitedFrom(java.io.InputStream input) |
static Trace |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Trace |
parseFrom(byte[] data) |
static Trace |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Trace |
parseFrom(java.nio.ByteBuffer data) |
static Trace |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Trace |
parseFrom(ByteString data) |
static Trace |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Trace |
parseFrom(CodedInputStream input) |
static Trace |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Trace |
parseFrom(java.io.InputStream input) |
static Trace |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Trace> |
parser() |
Trace.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int PROJECT_ID_FIELD_NUMBER
public static final int TRACE_ID_FIELD_NUMBER
public static final int SPANS_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public java.lang.String getProjectId()
Project ID of the Cloud project where the trace data is stored.
string project_id = 1;
getProjectId
in interface TraceOrBuilder
public ByteString getProjectIdBytes()
Project ID of the Cloud project where the trace data is stored.
string project_id = 1;
getProjectIdBytes
in interface TraceOrBuilder
public java.lang.String getTraceId()
Globally unique identifier for the trace. This identifier is a 128-bit numeric value formatted as a 32-byte hex string.
string trace_id = 2;
getTraceId
in interface TraceOrBuilder
public ByteString getTraceIdBytes()
Globally unique identifier for the trace. This identifier is a 128-bit numeric value formatted as a 32-byte hex string.
string trace_id = 2;
getTraceIdBytes
in interface TraceOrBuilder
public java.util.List<TraceSpan> getSpansList()
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
getSpansList
in interface TraceOrBuilder
public java.util.List<? extends TraceSpanOrBuilder> getSpansOrBuilderList()
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
getSpansOrBuilderList
in interface TraceOrBuilder
public int getSpansCount()
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
getSpansCount
in interface TraceOrBuilder
public TraceSpan getSpans(int index)
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
getSpans
in interface TraceOrBuilder
public TraceSpanOrBuilder getSpansOrBuilder(int index)
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
getSpansOrBuilder
in interface TraceOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Trace parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Trace parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Trace parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Trace parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Trace parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Trace parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Trace parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Trace parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Trace parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Trace parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Trace parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Trace parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Trace.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Trace.Builder newBuilder()
public static Trace.Builder newBuilder(Trace prototype)
public Trace.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Trace.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Trace getDefaultInstance()
public Parser<Trace> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Trace getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder