public static final class ListLogMetricsResponse.Builder extends GeneratedMessageV3.Builder<ListLogMetricsResponse.Builder> implements ListLogMetricsResponseOrBuilder
Result returned from ListLogMetrics.
Protobuf type google.logging.v2.ListLogMetricsResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
addMetrics(LogMetric value)
public ListLogMetricsResponse.Builder addMetrics(LogMetric value)
A list of logs-based metrics.
repeated .google.logging.v2.LogMetric metrics = 1;
addMetrics(LogMetric.Builder builderForValue)
public ListLogMetricsResponse.Builder addMetrics(LogMetric.Builder builderForValue)
A list of logs-based metrics.
repeated .google.logging.v2.LogMetric metrics = 1;
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;
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;
addMetricsBuilder()
public LogMetric.Builder addMetricsBuilder()
A list of logs-based metrics.
repeated .google.logging.v2.LogMetric metrics = 1;
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListLogMetricsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ListLogMetricsResponse build()
buildPartial()
public ListLogMetricsResponse buildPartial()
clear()
public ListLogMetricsResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListLogMetricsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearMetrics()
public ListLogMetricsResponse.Builder clearMetrics()
A list of logs-based metrics.
repeated .google.logging.v2.LogMetric metrics = 1;
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public ListLogMetricsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public ListLogMetricsResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public ListLogMetricsResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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
|
getMetricsBuilderList()
public List<LogMetric.Builder> getMetricsBuilderList()
A list of logs-based metrics.
repeated .google.logging.v2.LogMetric metrics = 1;
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;
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
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ListLogMetricsResponse other)
public ListLogMetricsResponse.Builder mergeFrom(ListLogMetricsResponse other)
public ListLogMetricsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ListLogMetricsResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListLogMetricsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public ListLogMetricsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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;
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListLogMetricsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListLogMetricsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides