Class ListMetricDescriptorsResponse.Builder (3.47.0)

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
Type Description
Descriptor

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
Type Description
ListMetricDescriptorsResponse.Builder

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
Type Description
ListMetricDescriptorsResponse.Builder

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
Type Description
ListMetricDescriptorsResponse.Builder

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
Type Description
ListMetricDescriptorsResponse.Builder

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
Type Description
ListMetricDescriptorsResponse.Builder

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
Name Description
index int
Returns
Type Description
com.google.api.MetricDescriptor.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListMetricDescriptorsResponse build()
Returns
Type Description
ListMetricDescriptorsResponse

buildPartial()

public ListMetricDescriptorsResponse buildPartial()
Returns
Type Description
ListMetricDescriptorsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListMetricDescriptorsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListMetricDescriptorsResponse.Builder
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
Type Description
ListMetricDescriptorsResponse.Builder

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
Type Description
ListMetricDescriptorsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListMetricDescriptorsResponse getDefaultInstanceForType()
Returns
Type Description
ListMetricDescriptorsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Name Description
index int
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
Name Description
index int
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
Type Description
int

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
Name Description
index int
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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListMetricDescriptorsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListMetricDescriptorsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListMetricDescriptorsResponse.Builder
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
Name Description
index int
Returns
Type Description
ListMetricDescriptorsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListMetricDescriptorsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListMetricDescriptorsResponse.Builder
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
Type Description
ListMetricDescriptorsResponse.Builder

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
Type Description
ListMetricDescriptorsResponse.Builder

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
Type Description
ListMetricDescriptorsResponse.Builder

This builder for chaining.

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
Type Description
ListMetricDescriptorsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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