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
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
addMetrics(LogMetric value)
public ListLogMetricsResponse.Builder addMetrics(LogMetric value)
A list of logs-based metrics.
repeated .google.logging.v2.LogMetric metrics = 1;
Parameter
Returns
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
Returns
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
Returns
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
Returns
addMetricsBuilder()
public LogMetric.Builder addMetricsBuilder()
A list of logs-based metrics.
repeated .google.logging.v2.LogMetric metrics = 1;
Returns
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListLogMetricsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ListLogMetricsResponse build()
Returns
buildPartial()
public ListLogMetricsResponse buildPartial()
Returns
clear()
public ListLogMetricsResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListLogMetricsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearMetrics()
public ListLogMetricsResponse.Builder clearMetrics()
A list of logs-based metrics.
repeated .google.logging.v2.LogMetric metrics = 1;
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public ListLogMetricsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ListLogMetricsResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ListLogMetricsResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
getMetricsBuilderList()
public List<LogMetric.Builder> getMetricsBuilderList()
A list of logs-based metrics.
repeated .google.logging.v2.LogMetric metrics = 1;
Returns
getMetricsCount()
public int getMetricsCount()
A list of logs-based metrics.
repeated .google.logging.v2.LogMetric metrics = 1;
Returns
getMetricsList()
public List<LogMetric> getMetricsList()
A list of logs-based metrics.
repeated .google.logging.v2.LogMetric metrics = 1;
Returns
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ListLogMetricsResponse other)
public ListLogMetricsResponse.Builder mergeFrom(ListLogMetricsResponse other)
Parameter
Returns
public ListLogMetricsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListLogMetricsResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListLogMetricsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public ListLogMetricsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListLogMetricsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListLogMetricsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides