Class ListLogMetricsResponse.Builder (3.14.6)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.logging.v2.LogMetric>
Returns
TypeDescription
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
NameDescription
valueLogMetric
Returns
TypeDescription
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
NameDescription
builderForValueLogMetric.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueLogMetric
Returns
TypeDescription
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
NameDescription
indexint
builderForValueLogMetric.Builder
Returns
TypeDescription
ListLogMetricsResponse.Builder

addMetricsBuilder()

public LogMetric.Builder addMetricsBuilder()

A list of logs-based metrics.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
LogMetric.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListLogMetricsResponse build()
Returns
TypeDescription
ListLogMetricsResponse

buildPartial()

public ListLogMetricsResponse buildPartial()
Returns
TypeDescription
ListLogMetricsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMetrics()

public ListLogMetricsResponse.Builder clearMetrics()

A list of logs-based metrics.

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

Returns
TypeDescription
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
TypeDescription
ListLogMetricsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListLogMetricsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListLogMetricsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMetrics(int index)

public LogMetric getMetrics(int index)

A list of logs-based metrics.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
LogMetric

getMetricsBuilder(int index)

public LogMetric.Builder getMetricsBuilder(int index)

A list of logs-based metrics.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
LogMetric.Builder

getMetricsBuilderList()

public List<LogMetric.Builder> getMetricsBuilderList()

A list of logs-based metrics.

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

Returns
TypeDescription
List<Builder>

getMetricsCount()

public int getMetricsCount()

A list of logs-based metrics.

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

Returns
TypeDescription
int

getMetricsList()

public List<LogMetric> getMetricsList()

A list of logs-based metrics.

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

Returns
TypeDescription
List<LogMetric>

getMetricsOrBuilder(int index)

public LogMetricOrBuilder getMetricsOrBuilder(int index)

A list of logs-based metrics.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
LogMetricOrBuilder

getMetricsOrBuilderList()

public List<? extends LogMetricOrBuilder> getMetricsOrBuilderList()

A list of logs-based metrics.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListLogMetricsResponse other)

public ListLogMetricsResponse.Builder mergeFrom(ListLogMetricsResponse other)
Parameter
NameDescription
otherListLogMetricsResponse
Returns
TypeDescription
ListLogMetricsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListLogMetricsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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