Class Traces.Builder (2.35.0)

public static final class Traces.Builder extends GeneratedMessageV3.Builder<Traces.Builder> implements TracesOrBuilder

List of new or updated traces.

Protobuf type google.devtools.cloudtrace.v1.Traces

Implements

TracesOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllTraces(Iterable<? extends Trace> values)

public Traces.Builder addAllTraces(Iterable<? extends Trace> values)

List of traces.

repeated .google.devtools.cloudtrace.v1.Trace traces = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.devtools.cloudtrace.v1.Trace>
Returns
TypeDescription
Traces.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Traces.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Traces.Builder
Overrides

addTraces(Trace value)

public Traces.Builder addTraces(Trace value)

List of traces.

repeated .google.devtools.cloudtrace.v1.Trace traces = 1;

Parameter
NameDescription
valueTrace
Returns
TypeDescription
Traces.Builder

addTraces(Trace.Builder builderForValue)

public Traces.Builder addTraces(Trace.Builder builderForValue)

List of traces.

repeated .google.devtools.cloudtrace.v1.Trace traces = 1;

Parameter
NameDescription
builderForValueTrace.Builder
Returns
TypeDescription
Traces.Builder

addTraces(int index, Trace value)

public Traces.Builder addTraces(int index, Trace value)

List of traces.

repeated .google.devtools.cloudtrace.v1.Trace traces = 1;

Parameters
NameDescription
indexint
valueTrace
Returns
TypeDescription
Traces.Builder

addTraces(int index, Trace.Builder builderForValue)

public Traces.Builder addTraces(int index, Trace.Builder builderForValue)

List of traces.

repeated .google.devtools.cloudtrace.v1.Trace traces = 1;

Parameters
NameDescription
indexint
builderForValueTrace.Builder
Returns
TypeDescription
Traces.Builder

addTracesBuilder()

public Trace.Builder addTracesBuilder()

List of traces.

repeated .google.devtools.cloudtrace.v1.Trace traces = 1;

Returns
TypeDescription
Trace.Builder

addTracesBuilder(int index)

public Trace.Builder addTracesBuilder(int index)

List of traces.

repeated .google.devtools.cloudtrace.v1.Trace traces = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Trace.Builder

build()

public Traces build()
Returns
TypeDescription
Traces

buildPartial()

public Traces buildPartial()
Returns
TypeDescription
Traces

clear()

public Traces.Builder clear()
Returns
TypeDescription
Traces.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Traces.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Traces.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Traces.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Traces.Builder
Overrides

clearTraces()

public Traces.Builder clearTraces()

List of traces.

repeated .google.devtools.cloudtrace.v1.Trace traces = 1;

Returns
TypeDescription
Traces.Builder

clone()

public Traces.Builder clone()
Returns
TypeDescription
Traces.Builder
Overrides

getDefaultInstanceForType()

public Traces getDefaultInstanceForType()
Returns
TypeDescription
Traces

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getTraces(int index)

public Trace getTraces(int index)

List of traces.

repeated .google.devtools.cloudtrace.v1.Trace traces = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Trace

getTracesBuilder(int index)

public Trace.Builder getTracesBuilder(int index)

List of traces.

repeated .google.devtools.cloudtrace.v1.Trace traces = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Trace.Builder

getTracesBuilderList()

public List<Trace.Builder> getTracesBuilderList()

List of traces.

repeated .google.devtools.cloudtrace.v1.Trace traces = 1;

Returns
TypeDescription
List<Builder>

getTracesCount()

public int getTracesCount()

List of traces.

repeated .google.devtools.cloudtrace.v1.Trace traces = 1;

Returns
TypeDescription
int

getTracesList()

public List<Trace> getTracesList()

List of traces.

repeated .google.devtools.cloudtrace.v1.Trace traces = 1;

Returns
TypeDescription
List<Trace>

getTracesOrBuilder(int index)

public TraceOrBuilder getTracesOrBuilder(int index)

List of traces.

repeated .google.devtools.cloudtrace.v1.Trace traces = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
TraceOrBuilder

getTracesOrBuilderList()

public List<? extends TraceOrBuilder> getTracesOrBuilderList()

List of traces.

repeated .google.devtools.cloudtrace.v1.Trace traces = 1;

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Traces other)

public Traces.Builder mergeFrom(Traces other)
Parameter
NameDescription
otherTraces
Returns
TypeDescription
Traces.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Traces.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Traces.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Traces.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Traces.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Traces.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Traces.Builder
Overrides

removeTraces(int index)

public Traces.Builder removeTraces(int index)

List of traces.

repeated .google.devtools.cloudtrace.v1.Trace traces = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Traces.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Traces.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Traces.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Traces.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Traces.Builder
Overrides

setTraces(int index, Trace value)

public Traces.Builder setTraces(int index, Trace value)

List of traces.

repeated .google.devtools.cloudtrace.v1.Trace traces = 1;

Parameters
NameDescription
indexint
valueTrace
Returns
TypeDescription
Traces.Builder

setTraces(int index, Trace.Builder builderForValue)

public Traces.Builder setTraces(int index, Trace.Builder builderForValue)

List of traces.

repeated .google.devtools.cloudtrace.v1.Trace traces = 1;

Parameters
NameDescription
indexint
builderForValueTrace.Builder
Returns
TypeDescription
Traces.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Traces.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Traces.Builder
Overrides