public static final class ListMetricDescriptorsRequest.Builder extends GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder> implements ListMetricDescriptorsRequestOrBuilder
The `ListMetricDescriptors` request.Protobuf type
google.monitoring.v3.ListMetricDescriptorsRequest| Modifier and Type | Method and Description |
|---|---|
ListMetricDescriptorsRequest.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
ListMetricDescriptorsRequest |
build() |
ListMetricDescriptorsRequest |
buildPartial() |
ListMetricDescriptorsRequest.Builder |
clear() |
ListMetricDescriptorsRequest.Builder |
clearField(Descriptors.FieldDescriptor field) |
ListMetricDescriptorsRequest.Builder |
clearFilter()
If this field is empty, all custom and
system-defined metric descriptors are returned.
|
ListMetricDescriptorsRequest.Builder |
clearName()
The project on which to execute the request.
|
ListMetricDescriptorsRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
ListMetricDescriptorsRequest.Builder |
clearPageSize()
A positive number that is the maximum number of results to return.
|
ListMetricDescriptorsRequest.Builder |
clearPageToken()
If this field is not empty then it must contain the `nextPageToken` value
returned by a previous call to this method.
|
ListMetricDescriptorsRequest.Builder |
clone() |
ListMetricDescriptorsRequest |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getFilter()
If this field is empty, all custom and
system-defined metric descriptors are returned.
|
ByteString |
getFilterBytes()
If this field is empty, all custom and
system-defined metric descriptors are returned.
|
java.lang.String |
getName()
The project on which to execute the request.
|
ByteString |
getNameBytes()
The project on which to execute the request.
|
int |
getPageSize()
A positive number that is the maximum number of results to return.
|
java.lang.String |
getPageToken()
If this field is not empty then it must contain the `nextPageToken` value
returned by a previous call to this method.
|
ByteString |
getPageTokenBytes()
If this field is not empty then it must contain the `nextPageToken` value
returned by a previous call to this method.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ListMetricDescriptorsRequest.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
ListMetricDescriptorsRequest.Builder |
mergeFrom(ListMetricDescriptorsRequest other) |
ListMetricDescriptorsRequest.Builder |
mergeFrom(Message other) |
ListMetricDescriptorsRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
ListMetricDescriptorsRequest.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
ListMetricDescriptorsRequest.Builder |
setFilter(java.lang.String value)
If this field is empty, all custom and
system-defined metric descriptors are returned.
|
ListMetricDescriptorsRequest.Builder |
setFilterBytes(ByteString value)
If this field is empty, all custom and
system-defined metric descriptors are returned.
|
ListMetricDescriptorsRequest.Builder |
setName(java.lang.String value)
The project on which to execute the request.
|
ListMetricDescriptorsRequest.Builder |
setNameBytes(ByteString value)
The project on which to execute the request.
|
ListMetricDescriptorsRequest.Builder |
setPageSize(int value)
A positive number that is the maximum number of results to return.
|
ListMetricDescriptorsRequest.Builder |
setPageToken(java.lang.String value)
If this field is not empty then it must contain the `nextPageToken` value
returned by a previous call to this method.
|
ListMetricDescriptorsRequest.Builder |
setPageTokenBytes(ByteString value)
If this field is not empty then it must contain the `nextPageToken` value
returned by a previous call to this method.
|
ListMetricDescriptorsRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
ListMetricDescriptorsRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>public ListMetricDescriptorsRequest.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>public ListMetricDescriptorsRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic ListMetricDescriptorsRequest build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic ListMetricDescriptorsRequest buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic ListMetricDescriptorsRequest.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>public ListMetricDescriptorsRequest.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>public ListMetricDescriptorsRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>public ListMetricDescriptorsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>public ListMetricDescriptorsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>public ListMetricDescriptorsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>public ListMetricDescriptorsRequest.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<ListMetricDescriptorsRequest.Builder>public ListMetricDescriptorsRequest.Builder mergeFrom(ListMetricDescriptorsRequest other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>public ListMetricDescriptorsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<ListMetricDescriptorsRequest.Builder>java.io.IOExceptionpublic java.lang.String getName()
The project on which to execute the request. The format is
`"projects/{project_id_or_number}"`.
string name = 5;getName in interface ListMetricDescriptorsRequestOrBuilderpublic ByteString getNameBytes()
The project on which to execute the request. The format is
`"projects/{project_id_or_number}"`.
string name = 5;getNameBytes in interface ListMetricDescriptorsRequestOrBuilderpublic ListMetricDescriptorsRequest.Builder setName(java.lang.String value)
The project on which to execute the request. The format is
`"projects/{project_id_or_number}"`.
string name = 5;public ListMetricDescriptorsRequest.Builder clearName()
The project on which to execute the request. The format is
`"projects/{project_id_or_number}"`.
string name = 5;public ListMetricDescriptorsRequest.Builder setNameBytes(ByteString value)
The project on which to execute the request. The format is
`"projects/{project_id_or_number}"`.
string name = 5;public java.lang.String getFilter()
If this field is empty, all custom and
system-defined metric descriptors are returned.
Otherwise, the [filter](/monitoring/api/v3/filters)
specifies which metric descriptors are to be
returned. For example, the following filter matches all
[custom metrics](/monitoring/custom-metrics):
metric.type = starts_with("custom.googleapis.com/")
string filter = 2;getFilter in interface ListMetricDescriptorsRequestOrBuilderpublic ByteString getFilterBytes()
If this field is empty, all custom and
system-defined metric descriptors are returned.
Otherwise, the [filter](/monitoring/api/v3/filters)
specifies which metric descriptors are to be
returned. For example, the following filter matches all
[custom metrics](/monitoring/custom-metrics):
metric.type = starts_with("custom.googleapis.com/")
string filter = 2;getFilterBytes in interface ListMetricDescriptorsRequestOrBuilderpublic ListMetricDescriptorsRequest.Builder setFilter(java.lang.String value)
If this field is empty, all custom and
system-defined metric descriptors are returned.
Otherwise, the [filter](/monitoring/api/v3/filters)
specifies which metric descriptors are to be
returned. For example, the following filter matches all
[custom metrics](/monitoring/custom-metrics):
metric.type = starts_with("custom.googleapis.com/")
string filter = 2;public ListMetricDescriptorsRequest.Builder clearFilter()
If this field is empty, all custom and
system-defined metric descriptors are returned.
Otherwise, the [filter](/monitoring/api/v3/filters)
specifies which metric descriptors are to be
returned. For example, the following filter matches all
[custom metrics](/monitoring/custom-metrics):
metric.type = starts_with("custom.googleapis.com/")
string filter = 2;public ListMetricDescriptorsRequest.Builder setFilterBytes(ByteString value)
If this field is empty, all custom and
system-defined metric descriptors are returned.
Otherwise, the [filter](/monitoring/api/v3/filters)
specifies which metric descriptors are to be
returned. For example, the following filter matches all
[custom metrics](/monitoring/custom-metrics):
metric.type = starts_with("custom.googleapis.com/")
string filter = 2;public int getPageSize()
A positive number that is the maximum number of results to return.
int32 page_size = 3;getPageSize in interface ListMetricDescriptorsRequestOrBuilderpublic ListMetricDescriptorsRequest.Builder setPageSize(int value)
A positive number that is the maximum number of results to return.
int32 page_size = 3;public ListMetricDescriptorsRequest.Builder clearPageSize()
A positive number that is the maximum number of results to return.
int32 page_size = 3;public java.lang.String getPageToken()
If this field is not empty then it must contain the `nextPageToken` value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
string page_token = 4;getPageToken in interface ListMetricDescriptorsRequestOrBuilderpublic ByteString getPageTokenBytes()
If this field is not empty then it must contain the `nextPageToken` value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
string page_token = 4;getPageTokenBytes in interface ListMetricDescriptorsRequestOrBuilderpublic ListMetricDescriptorsRequest.Builder setPageToken(java.lang.String value)
If this field is not empty then it must contain the `nextPageToken` value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
string page_token = 4;public ListMetricDescriptorsRequest.Builder clearPageToken()
If this field is not empty then it must contain the `nextPageToken` value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
string page_token = 4;public ListMetricDescriptorsRequest.Builder setPageTokenBytes(ByteString value)
If this field is not empty then it must contain the `nextPageToken` value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
string page_token = 4;public final ListMetricDescriptorsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>public final ListMetricDescriptorsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>