public static final class ListAlertPoliciesRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ListAlertPoliciesRequest.Builder> implements ListAlertPoliciesRequestOrBuilder
The protocol for the `ListAlertPolicies` request.Protobuf type
google.monitoring.v3.ListAlertPoliciesRequestgetAllFields, 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<ListAlertPoliciesRequest.Builder>public ListAlertPoliciesRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ListAlertPoliciesRequest.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<ListAlertPoliciesRequest.Builder>public ListAlertPoliciesRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ListAlertPoliciesRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ListAlertPoliciesRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ListAlertPoliciesRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ListAlertPoliciesRequest.Builder>public ListAlertPoliciesRequest.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<ListAlertPoliciesRequest.Builder>public ListAlertPoliciesRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ListAlertPoliciesRequest.Builder>public ListAlertPoliciesRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ListAlertPoliciesRequest.Builder>public ListAlertPoliciesRequest.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<ListAlertPoliciesRequest.Builder>public ListAlertPoliciesRequest.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<ListAlertPoliciesRequest.Builder>public ListAlertPoliciesRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ListAlertPoliciesRequest.Builder>public ListAlertPoliciesRequest.Builder mergeFrom(ListAlertPoliciesRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ListAlertPoliciesRequest.Builder>public ListAlertPoliciesRequest.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<ListAlertPoliciesRequest.Builder>IOExceptionpublic String getName()
Required. The
[project](https://cloud.google.com/monitoring/api/v3#project_name) whose
alert policies are to be listed. The format is:
projects/[PROJECT_ID_OR_NUMBER]
Note that this field names the parent container in which the alerting
policies to be listed are stored. To retrieve a single alerting policy
by name, use the
[GetAlertPolicy][google.monitoring.v3.AlertPolicyService.GetAlertPolicy]
operation, instead.
string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getName in interface ListAlertPoliciesRequestOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required. The
[project](https://cloud.google.com/monitoring/api/v3#project_name) whose
alert policies are to be listed. The format is:
projects/[PROJECT_ID_OR_NUMBER]
Note that this field names the parent container in which the alerting
policies to be listed are stored. To retrieve a single alerting policy
by name, use the
[GetAlertPolicy][google.monitoring.v3.AlertPolicyService.GetAlertPolicy]
operation, instead.
string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getNameBytes in interface ListAlertPoliciesRequestOrBuilderpublic ListAlertPoliciesRequest.Builder setName(String value)
Required. The
[project](https://cloud.google.com/monitoring/api/v3#project_name) whose
alert policies are to be listed. The format is:
projects/[PROJECT_ID_OR_NUMBER]
Note that this field names the parent container in which the alerting
policies to be listed are stored. To retrieve a single alerting policy
by name, use the
[GetAlertPolicy][google.monitoring.v3.AlertPolicyService.GetAlertPolicy]
operation, instead.
string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The name to set.public ListAlertPoliciesRequest.Builder clearName()
Required. The
[project](https://cloud.google.com/monitoring/api/v3#project_name) whose
alert policies are to be listed. The format is:
projects/[PROJECT_ID_OR_NUMBER]
Note that this field names the parent container in which the alerting
policies to be listed are stored. To retrieve a single alerting policy
by name, use the
[GetAlertPolicy][google.monitoring.v3.AlertPolicyService.GetAlertPolicy]
operation, instead.
string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public ListAlertPoliciesRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. The
[project](https://cloud.google.com/monitoring/api/v3#project_name) whose
alert policies are to be listed. The format is:
projects/[PROJECT_ID_OR_NUMBER]
Note that this field names the parent container in which the alerting
policies to be listed are stored. To retrieve a single alerting policy
by name, use the
[GetAlertPolicy][google.monitoring.v3.AlertPolicyService.GetAlertPolicy]
operation, instead.
string name = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The bytes for name to set.public String getFilter()
Optional. If provided, this field specifies the criteria that must be met by alert policies to be included in the response. For more details, see [sorting and filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
string filter = 5 [(.google.api.field_behavior) = OPTIONAL];getFilter in interface ListAlertPoliciesRequestOrBuilderpublic com.google.protobuf.ByteString getFilterBytes()
Optional. If provided, this field specifies the criteria that must be met by alert policies to be included in the response. For more details, see [sorting and filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
string filter = 5 [(.google.api.field_behavior) = OPTIONAL];getFilterBytes in interface ListAlertPoliciesRequestOrBuilderpublic ListAlertPoliciesRequest.Builder setFilter(String value)
Optional. If provided, this field specifies the criteria that must be met by alert policies to be included in the response. For more details, see [sorting and filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
string filter = 5 [(.google.api.field_behavior) = OPTIONAL];value - The filter to set.public ListAlertPoliciesRequest.Builder clearFilter()
Optional. If provided, this field specifies the criteria that must be met by alert policies to be included in the response. For more details, see [sorting and filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
string filter = 5 [(.google.api.field_behavior) = OPTIONAL];public ListAlertPoliciesRequest.Builder setFilterBytes(com.google.protobuf.ByteString value)
Optional. If provided, this field specifies the criteria that must be met by alert policies to be included in the response. For more details, see [sorting and filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
string filter = 5 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for filter to set.public String getOrderBy()
Optional. A comma-separated list of fields by which to sort the result. Supports the same set of field references as the `filter` field. Entries can be prefixed with a minus sign to sort by the field in descending order. For more details, see [sorting and filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
string order_by = 6 [(.google.api.field_behavior) = OPTIONAL];getOrderBy in interface ListAlertPoliciesRequestOrBuilderpublic com.google.protobuf.ByteString getOrderByBytes()
Optional. A comma-separated list of fields by which to sort the result. Supports the same set of field references as the `filter` field. Entries can be prefixed with a minus sign to sort by the field in descending order. For more details, see [sorting and filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
string order_by = 6 [(.google.api.field_behavior) = OPTIONAL];getOrderByBytes in interface ListAlertPoliciesRequestOrBuilderpublic ListAlertPoliciesRequest.Builder setOrderBy(String value)
Optional. A comma-separated list of fields by which to sort the result. Supports the same set of field references as the `filter` field. Entries can be prefixed with a minus sign to sort by the field in descending order. For more details, see [sorting and filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
string order_by = 6 [(.google.api.field_behavior) = OPTIONAL];value - The orderBy to set.public ListAlertPoliciesRequest.Builder clearOrderBy()
Optional. A comma-separated list of fields by which to sort the result. Supports the same set of field references as the `filter` field. Entries can be prefixed with a minus sign to sort by the field in descending order. For more details, see [sorting and filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
string order_by = 6 [(.google.api.field_behavior) = OPTIONAL];public ListAlertPoliciesRequest.Builder setOrderByBytes(com.google.protobuf.ByteString value)
Optional. A comma-separated list of fields by which to sort the result. Supports the same set of field references as the `filter` field. Entries can be prefixed with a minus sign to sort by the field in descending order. For more details, see [sorting and filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
string order_by = 6 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for orderBy to set.public int getPageSize()
Optional. The maximum number of results to return in a single response.
int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];getPageSize in interface ListAlertPoliciesRequestOrBuilderpublic ListAlertPoliciesRequest.Builder setPageSize(int value)
Optional. The maximum number of results to return in a single response.
int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];value - The pageSize to set.public ListAlertPoliciesRequest.Builder clearPageSize()
Optional. The maximum number of results to return in a single response.
int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];public String getPageToken()
Optional. 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 more results from the previous method call.
string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];getPageToken in interface ListAlertPoliciesRequestOrBuilderpublic com.google.protobuf.ByteString getPageTokenBytes()
Optional. 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 more results from the previous method call.
string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];getPageTokenBytes in interface ListAlertPoliciesRequestOrBuilderpublic ListAlertPoliciesRequest.Builder setPageToken(String value)
Optional. 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 more results from the previous method call.
string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];value - The pageToken to set.public ListAlertPoliciesRequest.Builder clearPageToken()
Optional. 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 more results from the previous method call.
string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];public ListAlertPoliciesRequest.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
Optional. 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 more results from the previous method call.
string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for pageToken to set.public final ListAlertPoliciesRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ListAlertPoliciesRequest.Builder>public final ListAlertPoliciesRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ListAlertPoliciesRequest.Builder>Copyright © 2025 Google LLC. All rights reserved.