Class ListAlertPoliciesRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListAlertPoliciesRequest.Builder>
com.google.monitoring.v3.ListAlertPoliciesRequest.Builder
All Implemented Interfaces:
ListAlertPoliciesRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListAlertPoliciesRequest

public static final class ListAlertPoliciesRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListAlertPoliciesRequest.Builder> implements ListAlertPoliciesRequestOrBuilder
 The protocol for the `ListAlertPolicies` request.
 
Protobuf type google.monitoring.v3.ListAlertPoliciesRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ListAlertPoliciesRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ListAlertPoliciesRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ListAlertPoliciesRequest.Builder>
    • getDefaultInstanceForType

      public ListAlertPoliciesRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ListAlertPoliciesRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ListAlertPoliciesRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ListAlertPoliciesRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ListAlertPoliciesRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ListAlertPoliciesRequest.Builder>
    • mergeFrom

      public ListAlertPoliciesRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ListAlertPoliciesRequest.Builder>
      Throws:
      IOException
    • getName

      public 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) = { ... }
      Specified by:
      getName in interface ListAlertPoliciesRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public 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) = { ... }
      Specified by:
      getNameBytes in interface ListAlertPoliciesRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public 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) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • 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) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      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) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getFilter

      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];
      Specified by:
      getFilter in interface ListAlertPoliciesRequestOrBuilder
      Returns:
      The filter.
    • getFilterBytes

      public 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];
      Specified by:
      getFilterBytes in interface ListAlertPoliciesRequestOrBuilder
      Returns:
      The bytes for filter.
    • setFilter

      public 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];
      Parameters:
      value - The filter to set.
      Returns:
      This builder for chaining.
    • clearFilter

      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];
      Returns:
      This builder for chaining.
    • setFilterBytes

      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];
      Parameters:
      value - The bytes for filter to set.
      Returns:
      This builder for chaining.
    • getOrderBy

      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];
      Specified by:
      getOrderBy in interface ListAlertPoliciesRequestOrBuilder
      Returns:
      The orderBy.
    • getOrderByBytes

      public 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];
      Specified by:
      getOrderByBytes in interface ListAlertPoliciesRequestOrBuilder
      Returns:
      The bytes for orderBy.
    • setOrderBy

      public 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];
      Parameters:
      value - The orderBy to set.
      Returns:
      This builder for chaining.
    • clearOrderBy

      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];
      Returns:
      This builder for chaining.
    • setOrderByBytes

      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];
      Parameters:
      value - The bytes for orderBy to set.
      Returns:
      This builder for chaining.
    • getPageSize

      public int getPageSize()
       Optional. The maximum number of results to return in a single response.
       
      int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageSize in interface ListAlertPoliciesRequestOrBuilder
      Returns:
      The pageSize.
    • setPageSize

      public 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];
      Parameters:
      value - The pageSize to set.
      Returns:
      This builder for chaining.
    • clearPageSize

      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];
      Returns:
      This builder for chaining.
    • getPageToken

      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];
      Specified by:
      getPageToken in interface ListAlertPoliciesRequestOrBuilder
      Returns:
      The pageToken.
    • getPageTokenBytes

      public 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];
      Specified by:
      getPageTokenBytes in interface ListAlertPoliciesRequestOrBuilder
      Returns:
      The bytes for pageToken.
    • setPageToken

      public 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];
      Parameters:
      value - The pageToken to set.
      Returns:
      This builder for chaining.
    • clearPageToken

      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];
      Returns:
      This builder for chaining.
    • setPageTokenBytes

      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];
      Parameters:
      value - The bytes for pageToken to set.
      Returns:
      This builder for chaining.