public static final class ListMetricDescriptorsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder> implements ListMetricDescriptorsRequestOrBuilder
The `ListMetricDescriptors` request.Protobuf type
google.monitoring.v3.ListMetricDescriptorsRequest| Modifier and Type | Method and Description |
|---|---|
ListMetricDescriptorsRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ListMetricDescriptorsRequest |
build() |
ListMetricDescriptorsRequest |
buildPartial() |
ListMetricDescriptorsRequest.Builder |
clear() |
ListMetricDescriptorsRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ListMetricDescriptorsRequest.Builder |
clearFilter()
If this field is empty, all custom and
system-defined metric descriptors are returned.
|
ListMetricDescriptorsRequest.Builder |
clearName()
Required.
|
ListMetricDescriptorsRequest.Builder |
clearOneof(com.google.protobuf.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 com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getFilter()
If this field is empty, all custom and
system-defined metric descriptors are returned.
|
com.google.protobuf.ByteString |
getFilterBytes()
If this field is empty, all custom and
system-defined metric descriptors are returned.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
int |
getPageSize()
A positive number that is the maximum number of results to return.
|
String |
getPageToken()
If this field is not empty then it must contain the `nextPageToken` value
returned by a previous call to this method.
|
com.google.protobuf.ByteString |
getPageTokenBytes()
If this field is not empty then it must contain the `nextPageToken` value
returned by a previous call to this method.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ListMetricDescriptorsRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ListMetricDescriptorsRequest.Builder |
mergeFrom(ListMetricDescriptorsRequest other) |
ListMetricDescriptorsRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
ListMetricDescriptorsRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ListMetricDescriptorsRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ListMetricDescriptorsRequest.Builder |
setFilter(String value)
If this field is empty, all custom and
system-defined metric descriptors are returned.
|
ListMetricDescriptorsRequest.Builder |
setFilterBytes(com.google.protobuf.ByteString value)
If this field is empty, all custom and
system-defined metric descriptors are returned.
|
ListMetricDescriptorsRequest.Builder |
setName(String value)
Required.
|
ListMetricDescriptorsRequest.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Required.
|
ListMetricDescriptorsRequest.Builder |
setPageSize(int value)
A positive number that is the maximum number of results to return.
|
ListMetricDescriptorsRequest.Builder |
setPageToken(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(com.google.protobuf.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(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ListMetricDescriptorsRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>public ListMetricDescriptorsRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>public ListMetricDescriptorsRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ListMetricDescriptorsRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ListMetricDescriptorsRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ListMetricDescriptorsRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>public ListMetricDescriptorsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>public ListMetricDescriptorsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>public ListMetricDescriptorsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>public ListMetricDescriptorsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>public ListMetricDescriptorsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>public ListMetricDescriptorsRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ListMetricDescriptorsRequest.Builder>public ListMetricDescriptorsRequest.Builder mergeFrom(ListMetricDescriptorsRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>public ListMetricDescriptorsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ListMetricDescriptorsRequest.Builder>IOExceptionpublic String getName()
Required. The
[project](https://cloud.google.com/monitoring/api/v3#project_name) on which
to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]
string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getName in interface ListMetricDescriptorsRequestOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required. The
[project](https://cloud.google.com/monitoring/api/v3#project_name) on which
to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]
string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getNameBytes in interface ListMetricDescriptorsRequestOrBuilderpublic ListMetricDescriptorsRequest.Builder setName(String value)
Required. The
[project](https://cloud.google.com/monitoring/api/v3#project_name) on which
to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]
string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The name to set.public ListMetricDescriptorsRequest.Builder clearName()
Required. The
[project](https://cloud.google.com/monitoring/api/v3#project_name) on which
to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]
string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public ListMetricDescriptorsRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. The
[project](https://cloud.google.com/monitoring/api/v3#project_name) on which
to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]
string name = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The bytes for name to set.public String getFilter()
If this field is empty, all custom and
system-defined metric descriptors are returned.
Otherwise, the [filter](https://cloud.google.com/monitoring/api/v3/filters)
specifies which metric descriptors are to be
returned. For example, the following filter matches all
[custom metrics](https://cloud.google.com/monitoring/custom-metrics):
metric.type = starts_with("custom.googleapis.com/")
string filter = 2;getFilter in interface ListMetricDescriptorsRequestOrBuilderpublic com.google.protobuf.ByteString getFilterBytes()
If this field is empty, all custom and
system-defined metric descriptors are returned.
Otherwise, the [filter](https://cloud.google.com/monitoring/api/v3/filters)
specifies which metric descriptors are to be
returned. For example, the following filter matches all
[custom metrics](https://cloud.google.com/monitoring/custom-metrics):
metric.type = starts_with("custom.googleapis.com/")
string filter = 2;getFilterBytes in interface ListMetricDescriptorsRequestOrBuilderpublic ListMetricDescriptorsRequest.Builder setFilter(String value)
If this field is empty, all custom and
system-defined metric descriptors are returned.
Otherwise, the [filter](https://cloud.google.com/monitoring/api/v3/filters)
specifies which metric descriptors are to be
returned. For example, the following filter matches all
[custom metrics](https://cloud.google.com/monitoring/custom-metrics):
metric.type = starts_with("custom.googleapis.com/")
string filter = 2;value - The filter to set.public ListMetricDescriptorsRequest.Builder clearFilter()
If this field is empty, all custom and
system-defined metric descriptors are returned.
Otherwise, the [filter](https://cloud.google.com/monitoring/api/v3/filters)
specifies which metric descriptors are to be
returned. For example, the following filter matches all
[custom metrics](https://cloud.google.com/monitoring/custom-metrics):
metric.type = starts_with("custom.googleapis.com/")
string filter = 2;public ListMetricDescriptorsRequest.Builder setFilterBytes(com.google.protobuf.ByteString value)
If this field is empty, all custom and
system-defined metric descriptors are returned.
Otherwise, the [filter](https://cloud.google.com/monitoring/api/v3/filters)
specifies which metric descriptors are to be
returned. For example, the following filter matches all
[custom metrics](https://cloud.google.com/monitoring/custom-metrics):
metric.type = starts_with("custom.googleapis.com/")
string filter = 2;value - The bytes for filter to set.public int getPageSize()
A positive number that is the maximum number of results to return. The default and maximum value is 10,000. If a page_size <= 0 or > 10,000 is submitted, will instead return a maximum of 10,000 results.
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. The default and maximum value is 10,000. If a page_size <= 0 or > 10,000 is submitted, will instead return a maximum of 10,000 results.
int32 page_size = 3;value - The pageSize to set.public ListMetricDescriptorsRequest.Builder clearPageSize()
A positive number that is the maximum number of results to return. The default and maximum value is 10,000. If a page_size <= 0 or > 10,000 is submitted, will instead return a maximum of 10,000 results.
int32 page_size = 3;public 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 com.google.protobuf.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(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;value - The pageToken to set.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(com.google.protobuf.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;value - The bytes for pageToken to set.public final ListMetricDescriptorsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>public final ListMetricDescriptorsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>Copyright © 2024 Google LLC. All rights reserved.