Class ListMetricDescriptorsResponse.Builder (3.42.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.api.MetricDescriptor>
Returns
TypeDescription
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
NameDescription
valuecom.google.api.MetricDescriptor
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.api.MetricDescriptor.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuecom.google.api.MetricDescriptor
Returns
TypeDescription
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
NameDescription
indexint
builderForValuecom.google.api.MetricDescriptor.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
com.google.api.MetricDescriptor.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListMetricDescriptorsResponse build()
Returns
TypeDescription
ListMetricDescriptorsResponse

buildPartial()

public ListMetricDescriptorsResponse buildPartial()
Returns
TypeDescription
ListMetricDescriptorsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListMetricDescriptorsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ListMetricDescriptorsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListMetricDescriptorsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListMetricDescriptorsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
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(ListMetricDescriptorsResponse other)

public ListMetricDescriptorsResponse.Builder mergeFrom(ListMetricDescriptorsResponse other)
Parameter
NameDescription
otherListMetricDescriptorsResponse
Returns
TypeDescription
ListMetricDescriptorsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public ListMetricDescriptorsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valuecom.google.api.MetricDescriptor
Returns
TypeDescription
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
NameDescription
indexint
builderForValuecom.google.api.MetricDescriptor.Builder
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

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

The bytes for nextPageToken to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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