public static final class ListMetricDescriptorsResponse.Builder extends GeneratedMessageV3.Builder<ListMetricDescriptorsResponse.Builder> implements ListMetricDescriptorsResponseOrBuilder
The ListMetricDescriptors
response.
Protobuf type google.monitoring.v3.ListMetricDescriptorsResponse
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllMetricDescriptors(Iterable<? extends MetricDescriptor> values)
public ListMetricDescriptorsResponse.Builder addAllMetricDescriptors(Iterable<? extends MetricDescriptor> values)
The metric descriptors that are available to the project
and that match the value of filter
, if present.
repeated .google.api.MetricDescriptor metric_descriptors = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.api.MetricDescriptor>
|
Returns
addMetricDescriptors(MetricDescriptor value)
public ListMetricDescriptorsResponse.Builder addMetricDescriptors(MetricDescriptor value)
The metric descriptors that are available to the project
and that match the value of filter
, if present.
repeated .google.api.MetricDescriptor metric_descriptors = 1;
Parameter
Name | Description |
value | com.google.api.MetricDescriptor
|
Returns
addMetricDescriptors(MetricDescriptor.Builder builderForValue)
public ListMetricDescriptorsResponse.Builder addMetricDescriptors(MetricDescriptor.Builder builderForValue)
The metric descriptors that are available to the project
and that match the value of filter
, if present.
repeated .google.api.MetricDescriptor metric_descriptors = 1;
Parameter
Name | Description |
builderForValue | com.google.api.MetricDescriptor.Builder
|
Returns
addMetricDescriptors(int index, MetricDescriptor value)
public ListMetricDescriptorsResponse.Builder addMetricDescriptors(int index, MetricDescriptor value)
The metric descriptors that are available to the project
and that match the value of filter
, if present.
repeated .google.api.MetricDescriptor metric_descriptors = 1;
Parameters
Name | Description |
index | int
|
value | com.google.api.MetricDescriptor
|
Returns
addMetricDescriptors(int index, MetricDescriptor.Builder builderForValue)
public ListMetricDescriptorsResponse.Builder addMetricDescriptors(int index, MetricDescriptor.Builder builderForValue)
The metric descriptors that are available to the project
and that match the value of filter
, if present.
repeated .google.api.MetricDescriptor metric_descriptors = 1;
Parameters
Name | Description |
index | int
|
builderForValue | com.google.api.MetricDescriptor.Builder
|
Returns
addMetricDescriptorsBuilder()
public MetricDescriptor.Builder addMetricDescriptorsBuilder()
The metric descriptors that are available to the project
and that match the value of filter
, if present.
repeated .google.api.MetricDescriptor metric_descriptors = 1;
Returns
Type | Description |
com.google.api.MetricDescriptor.Builder | |
addMetricDescriptorsBuilder(int index)
public MetricDescriptor.Builder addMetricDescriptorsBuilder(int index)
The metric descriptors that are available to the project
and that match the value of filter
, if present.
repeated .google.api.MetricDescriptor metric_descriptors = 1;
Parameter
Returns
Type | Description |
com.google.api.MetricDescriptor.Builder | |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListMetricDescriptorsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ListMetricDescriptorsResponse build()
Returns
buildPartial()
public ListMetricDescriptorsResponse buildPartial()
Returns
clear()
public ListMetricDescriptorsResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListMetricDescriptorsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearMetricDescriptors()
public ListMetricDescriptorsResponse.Builder clearMetricDescriptors()
The metric descriptors that are available to the project
and that match the value of filter
, if present.
repeated .google.api.MetricDescriptor metric_descriptors = 1;
Returns
clearNextPageToken()
public ListMetricDescriptorsResponse.Builder clearNextPageToken()
If there are more results than have been returned, then this field is set
to a non-empty value. To see the additional results,
use that value as page_token
in the next call to this method.
string next_page_token = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ListMetricDescriptorsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ListMetricDescriptorsResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ListMetricDescriptorsResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMetricDescriptors(int index)
public MetricDescriptor getMetricDescriptors(int index)
The metric descriptors that are available to the project
and that match the value of filter
, if present.
repeated .google.api.MetricDescriptor metric_descriptors = 1;
Parameter
Returns
Type | Description |
com.google.api.MetricDescriptor | |
getMetricDescriptorsBuilder(int index)
public MetricDescriptor.Builder getMetricDescriptorsBuilder(int index)
The metric descriptors that are available to the project
and that match the value of filter
, if present.
repeated .google.api.MetricDescriptor metric_descriptors = 1;
Parameter
Returns
Type | Description |
com.google.api.MetricDescriptor.Builder | |
getMetricDescriptorsBuilderList()
public List<MetricDescriptor.Builder> getMetricDescriptorsBuilderList()
The metric descriptors that are available to the project
and that match the value of filter
, if present.
repeated .google.api.MetricDescriptor metric_descriptors = 1;
Returns
Type | Description |
List<com.google.api.MetricDescriptor.Builder> | |
getMetricDescriptorsCount()
public int getMetricDescriptorsCount()
The metric descriptors that are available to the project
and that match the value of filter
, if present.
repeated .google.api.MetricDescriptor metric_descriptors = 1;
Returns
getMetricDescriptorsList()
public List<MetricDescriptor> getMetricDescriptorsList()
The metric descriptors that are available to the project
and that match the value of filter
, if present.
repeated .google.api.MetricDescriptor metric_descriptors = 1;
Returns
Type | Description |
List<com.google.api.MetricDescriptor> | |
getMetricDescriptorsOrBuilder(int index)
public MetricDescriptorOrBuilder getMetricDescriptorsOrBuilder(int index)
The metric descriptors that are available to the project
and that match the value of filter
, if present.
repeated .google.api.MetricDescriptor metric_descriptors = 1;
Parameter
Returns
Type | Description |
com.google.api.MetricDescriptorOrBuilder | |
getMetricDescriptorsOrBuilderList()
public List<? extends MetricDescriptorOrBuilder> getMetricDescriptorsOrBuilderList()
The metric descriptors that are available to the project
and that match the value of filter
, if present.
repeated .google.api.MetricDescriptor metric_descriptors = 1;
Returns
Type | Description |
List<? extends com.google.api.MetricDescriptorOrBuilder> | |
getNextPageToken()
public String getNextPageToken()
If there are more results than have been returned, then this field is set
to a non-empty value. To see the additional results,
use that value as page_token
in the next call to this method.
string next_page_token = 2;
Returns
Type | Description |
String | The nextPageToken.
|
getNextPageTokenBytes()
public ByteString getNextPageTokenBytes()
If there are more results than have been returned, then this field is set
to a non-empty value. To see the additional results,
use that value as page_token
in the next call to this method.
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(ListMetricDescriptorsResponse other)
public ListMetricDescriptorsResponse.Builder mergeFrom(ListMetricDescriptorsResponse other)
Parameter
Returns
public ListMetricDescriptorsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListMetricDescriptorsResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListMetricDescriptorsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeMetricDescriptors(int index)
public ListMetricDescriptorsResponse.Builder removeMetricDescriptors(int index)
The metric descriptors that are available to the project
and that match the value of filter
, if present.
repeated .google.api.MetricDescriptor metric_descriptors = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListMetricDescriptorsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setMetricDescriptors(int index, MetricDescriptor value)
public ListMetricDescriptorsResponse.Builder setMetricDescriptors(int index, MetricDescriptor value)
The metric descriptors that are available to the project
and that match the value of filter
, if present.
repeated .google.api.MetricDescriptor metric_descriptors = 1;
Parameters
Name | Description |
index | int
|
value | com.google.api.MetricDescriptor
|
Returns
setMetricDescriptors(int index, MetricDescriptor.Builder builderForValue)
public ListMetricDescriptorsResponse.Builder setMetricDescriptors(int index, MetricDescriptor.Builder builderForValue)
The metric descriptors that are available to the project
and that match the value of filter
, if present.
repeated .google.api.MetricDescriptor metric_descriptors = 1;
Parameters
Name | Description |
index | int
|
builderForValue | com.google.api.MetricDescriptor.Builder
|
Returns
setNextPageToken(String value)
public ListMetricDescriptorsResponse.Builder setNextPageToken(String value)
If there are more results than have been returned, then this field is set
to a non-empty value. To see the additional results,
use that value as page_token
in the next call to this method.
string next_page_token = 2;
Parameter
Name | Description |
value | String
The nextPageToken to set.
|
Returns
setNextPageTokenBytes(ByteString value)
public ListMetricDescriptorsResponse.Builder setNextPageTokenBytes(ByteString value)
If there are more results than have been returned, then this field is set
to a non-empty value. To see the additional results,
use that value as page_token
in the next call to this method.
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 ListMetricDescriptorsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListMetricDescriptorsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides