Class Trace.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Trace.Builder>
com.google.devtools.cloudtrace.v1.Trace.Builder
- All Implemented Interfaces:
TraceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Trace
public static final class Trace.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Trace.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllSpans(Iterable<? extends TraceSpan> values) Collection of spans in the trace.Collection of spans in the trace.addSpans(int index, TraceSpan.Builder builderForValue) Collection of spans in the trace.Collection of spans in the trace.addSpans(TraceSpan.Builder builderForValue) Collection of spans in the trace.Collection of spans in the trace.addSpansBuilder(int index) Collection of spans in the trace.build()clear()Project ID of the Cloud project where the trace data is stored.Collection of spans in the trace.Globally unique identifier for the trace.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorProject ID of the Cloud project where the trace data is stored.com.google.protobuf.ByteStringProject ID of the Cloud project where the trace data is stored.getSpans(int index) Collection of spans in the trace.getSpansBuilder(int index) Collection of spans in the trace.Collection of spans in the trace.intCollection of spans in the trace.Collection of spans in the trace.getSpansOrBuilder(int index) Collection of spans in the trace.List<? extends TraceSpanOrBuilder>Collection of spans in the trace.Globally unique identifier for the trace.com.google.protobuf.ByteStringGlobally unique identifier for the trace.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeSpans(int index) Collection of spans in the trace.setProjectId(String value) Project ID of the Cloud project where the trace data is stored.setProjectIdBytes(com.google.protobuf.ByteString value) Project ID of the Cloud project where the trace data is stored.Collection of spans in the trace.setSpans(int index, TraceSpan.Builder builderForValue) Collection of spans in the trace.setTraceId(String value) Globally unique identifier for the trace.setTraceIdBytes(com.google.protobuf.ByteString value) Globally unique identifier for the trace.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Trace.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Trace.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Trace.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Trace.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Trace.Builder>
-
mergeFrom
public Trace.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Trace.Builder>- Throws:
IOException
-
getProjectId
Project ID of the Cloud project where the trace data is stored.
string project_id = 1;- Specified by:
getProjectIdin interfaceTraceOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()Project ID of the Cloud project where the trace data is stored.
string project_id = 1;- Specified by:
getProjectIdBytesin interfaceTraceOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
Project ID of the Cloud project where the trace data is stored.
string project_id = 1;- Parameters:
value- The projectId to set.- Returns:
- This builder for chaining.
-
clearProjectId
Project ID of the Cloud project where the trace data is stored.
string project_id = 1;- Returns:
- This builder for chaining.
-
setProjectIdBytes
Project ID of the Cloud project where the trace data is stored.
string project_id = 1;- Parameters:
value- The bytes for projectId to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getTraceIdin interfaceTraceOrBuilder- Returns:
- The traceId.
-
getTraceIdBytes
public 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;- Specified by:
getTraceIdBytesin interfaceTraceOrBuilder- Returns:
- The bytes for traceId.
-
setTraceId
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;- Parameters:
value- The traceId to set.- Returns:
- This builder for chaining.
-
clearTraceId
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:
- This builder for chaining.
-
setTraceIdBytes
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;- Parameters:
value- The bytes for traceId to set.- Returns:
- This builder for chaining.
-
getSpansList
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;- Specified by:
getSpansListin interfaceTraceOrBuilder
-
getSpansCount
public int getSpansCount()Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;- Specified by:
getSpansCountin interfaceTraceOrBuilder
-
getSpans
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;- Specified by:
getSpansin interfaceTraceOrBuilder
-
setSpans
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3; -
setSpans
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3; -
addSpans
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3; -
addSpans
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3; -
addSpans
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3; -
addSpans
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3; -
addAllSpans
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3; -
clearSpans
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3; -
removeSpans
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3; -
getSpansBuilder
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3; -
getSpansOrBuilder
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;- Specified by:
getSpansOrBuilderin interfaceTraceOrBuilder
-
getSpansOrBuilderList
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;- Specified by:
getSpansOrBuilderListin interfaceTraceOrBuilder
-
addSpansBuilder
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3; -
addSpansBuilder
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3; -
getSpansBuilderList
Collection of spans in the trace.
repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;
-