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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>
public ListMetricDescriptorsRequest.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>
public ListMetricDescriptorsRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public ListMetricDescriptorsRequest build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public ListMetricDescriptorsRequest buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public ListMetricDescriptorsRequest.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>
public ListMetricDescriptorsRequest.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>
public ListMetricDescriptorsRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>
public ListMetricDescriptorsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>
public ListMetricDescriptorsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>
public ListMetricDescriptorsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>
public ListMetricDescriptorsRequest.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<ListMetricDescriptorsRequest.Builder>
public ListMetricDescriptorsRequest.Builder mergeFrom(ListMetricDescriptorsRequest other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>
public ListMetricDescriptorsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<ListMetricDescriptorsRequest.Builder>
java.io.IOException
public 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 ListMetricDescriptorsRequestOrBuilder
public ByteString getNameBytes()
The project on which to execute the request. The format is `"projects/{project_id_or_number}"`.
string name = 5;
getNameBytes
in interface ListMetricDescriptorsRequestOrBuilder
public 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 ListMetricDescriptorsRequestOrBuilder
public 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 ListMetricDescriptorsRequestOrBuilder
public 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 ListMetricDescriptorsRequestOrBuilder
public 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 ListMetricDescriptorsRequestOrBuilder
public 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 ListMetricDescriptorsRequestOrBuilder
public 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.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>
public final ListMetricDescriptorsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<ListMetricDescriptorsRequest.Builder>