Class ListTracesResponse.Builder (2.44.0)

public static final class ListTracesResponse.Builder extends GeneratedMessageV3.Builder<ListTracesResponse.Builder> implements ListTracesResponseOrBuilder

The response message for the ListTraces method.

Protobuf type google.devtools.cloudtrace.v1.ListTracesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllTraces(Iterable<? extends Trace> values)

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

List of trace records as specified by the view parameter.

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

Parameter
Name Description
values Iterable<? extends com.google.devtools.cloudtrace.v1.Trace>
Returns
Type Description
ListTracesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListTracesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListTracesResponse.Builder
Overrides

addTraces(Trace value)

public ListTracesResponse.Builder addTraces(Trace value)

List of trace records as specified by the view parameter.

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

Parameter
Name Description
value Trace
Returns
Type Description
ListTracesResponse.Builder

addTraces(Trace.Builder builderForValue)

public ListTracesResponse.Builder addTraces(Trace.Builder builderForValue)

List of trace records as specified by the view parameter.

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

Parameter
Name Description
builderForValue Trace.Builder
Returns
Type Description
ListTracesResponse.Builder

addTraces(int index, Trace value)

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

List of trace records as specified by the view parameter.

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

Parameters
Name Description
index int
value Trace
Returns
Type Description
ListTracesResponse.Builder

addTraces(int index, Trace.Builder builderForValue)

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

List of trace records as specified by the view parameter.

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

Parameters
Name Description
index int
builderForValue Trace.Builder
Returns
Type Description
ListTracesResponse.Builder

addTracesBuilder()

public Trace.Builder addTracesBuilder()

List of trace records as specified by the view parameter.

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

Returns
Type Description
Trace.Builder

addTracesBuilder(int index)

public Trace.Builder addTracesBuilder(int index)

List of trace records as specified by the view parameter.

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

Parameter
Name Description
index int
Returns
Type Description
Trace.Builder

build()

public ListTracesResponse build()
Returns
Type Description
ListTracesResponse

buildPartial()

public ListTracesResponse buildPartial()
Returns
Type Description
ListTracesResponse

clear()

public ListTracesResponse.Builder clear()
Returns
Type Description
ListTracesResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListTracesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListTracesResponse.Builder
Overrides

clearNextPageToken()

public ListTracesResponse.Builder clearNextPageToken()

If defined, indicates that there are more traces that match the request and that this value should be passed to the next request to continue retrieving additional traces.

string next_page_token = 2;

Returns
Type Description
ListTracesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListTracesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListTracesResponse.Builder
Overrides

clearTraces()

public ListTracesResponse.Builder clearTraces()

List of trace records as specified by the view parameter.

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

Returns
Type Description
ListTracesResponse.Builder

clone()

public ListTracesResponse.Builder clone()
Returns
Type Description
ListTracesResponse.Builder
Overrides

getDefaultInstanceForType()

public ListTracesResponse getDefaultInstanceForType()
Returns
Type Description
ListTracesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

If defined, indicates that there are more traces that match the request and that this value should be passed to the next request to continue retrieving additional traces.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

If defined, indicates that there are more traces that match the request and that this value should be passed to the next request to continue retrieving additional traces.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getTraces(int index)

public Trace getTraces(int index)

List of trace records as specified by the view parameter.

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

Parameter
Name Description
index int
Returns
Type Description
Trace

getTracesBuilder(int index)

public Trace.Builder getTracesBuilder(int index)

List of trace records as specified by the view parameter.

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

Parameter
Name Description
index int
Returns
Type Description
Trace.Builder

getTracesBuilderList()

public List<Trace.Builder> getTracesBuilderList()

List of trace records as specified by the view parameter.

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

Returns
Type Description
List<Builder>

getTracesCount()

public int getTracesCount()

List of trace records as specified by the view parameter.

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

Returns
Type Description
int

getTracesList()

public List<Trace> getTracesList()

List of trace records as specified by the view parameter.

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

Returns
Type Description
List<Trace>

getTracesOrBuilder(int index)

public TraceOrBuilder getTracesOrBuilder(int index)

List of trace records as specified by the view parameter.

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

Parameter
Name Description
index int
Returns
Type Description
TraceOrBuilder

getTracesOrBuilderList()

public List<? extends TraceOrBuilder> getTracesOrBuilderList()

List of trace records as specified by the view parameter.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListTracesResponse other)

public ListTracesResponse.Builder mergeFrom(ListTracesResponse other)
Parameter
Name Description
other ListTracesResponse
Returns
Type Description
ListTracesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListTracesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListTracesResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListTracesResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListTracesResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListTracesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListTracesResponse.Builder
Overrides

removeTraces(int index)

public ListTracesResponse.Builder removeTraces(int index)

List of trace records as specified by the view parameter.

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

Parameter
Name Description
index int
Returns
Type Description
ListTracesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListTracesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListTracesResponse.Builder
Overrides

setNextPageToken(String value)

public ListTracesResponse.Builder setNextPageToken(String value)

If defined, indicates that there are more traces that match the request and that this value should be passed to the next request to continue retrieving additional traces.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListTracesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListTracesResponse.Builder setNextPageTokenBytes(ByteString value)

If defined, indicates that there are more traces that match the request and that this value should be passed to the next request to continue retrieving additional traces.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListTracesResponse.Builder

This builder for chaining.

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

public ListTracesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListTracesResponse.Builder
Overrides

setTraces(int index, Trace value)

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

List of trace records as specified by the view parameter.

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

Parameters
Name Description
index int
value Trace
Returns
Type Description
ListTracesResponse.Builder

setTraces(int index, Trace.Builder builderForValue)

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

List of trace records as specified by the view parameter.

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

Parameters
Name Description
index int
builderForValue Trace.Builder
Returns
Type Description
ListTracesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ListTracesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListTracesResponse.Builder
Overrides