Class ListTracesResponse.Builder (2.6.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.devtools.cloudtrace.v1.Trace>
Returns
TypeDescription
ListTracesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListTracesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueTrace
Returns
TypeDescription
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
NameDescription
builderForValueTrace.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueTrace
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTrace.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Trace.Builder

build()

public ListTracesResponse build()
Returns
TypeDescription
ListTracesResponse

buildPartial()

public ListTracesResponse buildPartial()
Returns
TypeDescription
ListTracesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListTracesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListTracesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListTracesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ListTracesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListTracesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListTracesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
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(ListTracesResponse other)

public ListTracesResponse.Builder mergeFrom(ListTracesResponse other)
Parameter
NameDescription
otherListTracesResponse
Returns
TypeDescription
ListTracesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListTracesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListTracesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListTracesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueTrace
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTrace.Builder
Returns
TypeDescription
ListTracesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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