Class ListLogMetricsResponse.Builder (3.14.9)

public static final class ListLogMetricsResponse.Builder extends GeneratedMessageV3.Builder<ListLogMetricsResponse.Builder> implements ListLogMetricsResponseOrBuilder

Result returned from ListLogMetrics.

Protobuf type google.logging.v2.ListLogMetricsResponse

Static Methods

getDescriptor()

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

Methods

addAllMetrics(Iterable<? extends LogMetric> values)

public ListLogMetricsResponse.Builder addAllMetrics(Iterable<? extends LogMetric> values)

A list of logs-based metrics.

repeated .google.logging.v2.LogMetric metrics = 1;

Parameter
Name Description
values Iterable<? extends com.google.logging.v2.LogMetric>
Returns
Type Description
ListLogMetricsResponse.Builder

addMetrics(LogMetric value)

public ListLogMetricsResponse.Builder addMetrics(LogMetric value)

A list of logs-based metrics.

repeated .google.logging.v2.LogMetric metrics = 1;

Parameter
Name Description
value LogMetric
Returns
Type Description
ListLogMetricsResponse.Builder

addMetrics(LogMetric.Builder builderForValue)

public ListLogMetricsResponse.Builder addMetrics(LogMetric.Builder builderForValue)

A list of logs-based metrics.

repeated .google.logging.v2.LogMetric metrics = 1;

Parameter
Name Description
builderForValue LogMetric.Builder
Returns
Type Description
ListLogMetricsResponse.Builder

addMetrics(int index, LogMetric value)

public ListLogMetricsResponse.Builder addMetrics(int index, LogMetric value)

A list of logs-based metrics.

repeated .google.logging.v2.LogMetric metrics = 1;

Parameters
Name Description
index int
value LogMetric
Returns
Type Description
ListLogMetricsResponse.Builder

addMetrics(int index, LogMetric.Builder builderForValue)

public ListLogMetricsResponse.Builder addMetrics(int index, LogMetric.Builder builderForValue)

A list of logs-based metrics.

repeated .google.logging.v2.LogMetric metrics = 1;

Parameters
Name Description
index int
builderForValue LogMetric.Builder
Returns
Type Description
ListLogMetricsResponse.Builder

addMetricsBuilder()

public LogMetric.Builder addMetricsBuilder()

A list of logs-based metrics.

repeated .google.logging.v2.LogMetric metrics = 1;

Returns
Type Description
LogMetric.Builder

addMetricsBuilder(int index)

public LogMetric.Builder addMetricsBuilder(int index)

A list of logs-based metrics.

repeated .google.logging.v2.LogMetric metrics = 1;

Parameter
Name Description
index int
Returns
Type Description
LogMetric.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListLogMetricsResponse build()
Returns
Type Description
ListLogMetricsResponse

buildPartial()

public ListLogMetricsResponse buildPartial()
Returns
Type Description
ListLogMetricsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMetrics()

public ListLogMetricsResponse.Builder clearMetrics()

A list of logs-based metrics.

repeated .google.logging.v2.LogMetric metrics = 1;

Returns
Type Description
ListLogMetricsResponse.Builder

clearNextPageToken()

public ListLogMetricsResponse.Builder clearNextPageToken()

If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call this method again using the value of nextPageToken as pageToken.

string next_page_token = 2;

Returns
Type Description
ListLogMetricsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListLogMetricsResponse getDefaultInstanceForType()
Returns
Type Description
ListLogMetricsResponse

getDescriptorForType()

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

getMetrics(int index)

public LogMetric getMetrics(int index)

A list of logs-based metrics.

repeated .google.logging.v2.LogMetric metrics = 1;

Parameter
Name Description
index int
Returns
Type Description
LogMetric

getMetricsBuilder(int index)

public LogMetric.Builder getMetricsBuilder(int index)

A list of logs-based metrics.

repeated .google.logging.v2.LogMetric metrics = 1;

Parameter
Name Description
index int
Returns
Type Description
LogMetric.Builder

getMetricsBuilderList()

public List<LogMetric.Builder> getMetricsBuilderList()

A list of logs-based metrics.

repeated .google.logging.v2.LogMetric metrics = 1;

Returns
Type Description
List<Builder>

getMetricsCount()

public int getMetricsCount()

A list of logs-based metrics.

repeated .google.logging.v2.LogMetric metrics = 1;

Returns
Type Description
int

getMetricsList()

public List<LogMetric> getMetricsList()

A list of logs-based metrics.

repeated .google.logging.v2.LogMetric metrics = 1;

Returns
Type Description
List<LogMetric>

getMetricsOrBuilder(int index)

public LogMetricOrBuilder getMetricsOrBuilder(int index)

A list of logs-based metrics.

repeated .google.logging.v2.LogMetric metrics = 1;

Parameter
Name Description
index int
Returns
Type Description
LogMetricOrBuilder

getMetricsOrBuilderList()

public List<? extends LogMetricOrBuilder> getMetricsOrBuilderList()

A list of logs-based metrics.

repeated .google.logging.v2.LogMetric metrics = 1;

Returns
Type Description
List<? extends com.google.logging.v2.LogMetricOrBuilder>

getNextPageToken()

public String getNextPageToken()

If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call this method again using the value of nextPageToken as pageToken.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call this method again using the value of nextPageToken as pageToken.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListLogMetricsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMetrics(int index)

public ListLogMetricsResponse.Builder removeMetrics(int index)

A list of logs-based metrics.

repeated .google.logging.v2.LogMetric metrics = 1;

Parameter
Name Description
index int
Returns
Type Description
ListLogMetricsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetrics(int index, LogMetric value)

public ListLogMetricsResponse.Builder setMetrics(int index, LogMetric value)

A list of logs-based metrics.

repeated .google.logging.v2.LogMetric metrics = 1;

Parameters
Name Description
index int
value LogMetric
Returns
Type Description
ListLogMetricsResponse.Builder

setMetrics(int index, LogMetric.Builder builderForValue)

public ListLogMetricsResponse.Builder setMetrics(int index, LogMetric.Builder builderForValue)

A list of logs-based metrics.

repeated .google.logging.v2.LogMetric metrics = 1;

Parameters
Name Description
index int
builderForValue LogMetric.Builder
Returns
Type Description
ListLogMetricsResponse.Builder

setNextPageToken(String value)

public ListLogMetricsResponse.Builder setNextPageToken(String value)

If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call this method again using the value of nextPageToken as pageToken.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListLogMetricsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListLogMetricsResponse.Builder setNextPageTokenBytes(ByteString value)

If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call this method again using the value of nextPageToken as pageToken.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListLogMetricsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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