Class ListAlertPoliciesResponse.Builder

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

public static final class ListAlertPoliciesResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListAlertPoliciesResponse.Builder> implements ListAlertPoliciesResponseOrBuilder
 The protocol for the `ListAlertPolicies` response.
 
Protobuf type google.monitoring.v3.ListAlertPoliciesResponse
  • 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<ListAlertPoliciesResponse.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<ListAlertPoliciesResponse.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<ListAlertPoliciesResponse.Builder>
    • getDefaultInstanceForType

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

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

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

      public ListAlertPoliciesResponse.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<ListAlertPoliciesResponse.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<ListAlertPoliciesResponse.Builder>
    • mergeFrom

      public ListAlertPoliciesResponse.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<ListAlertPoliciesResponse.Builder>
      Throws:
      IOException
    • getAlertPoliciesList

      public List<AlertPolicy> getAlertPoliciesList()
       The returned alert policies.
       
      repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;
      Specified by:
      getAlertPoliciesList in interface ListAlertPoliciesResponseOrBuilder
    • getAlertPoliciesCount

      public int getAlertPoliciesCount()
       The returned alert policies.
       
      repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;
      Specified by:
      getAlertPoliciesCount in interface ListAlertPoliciesResponseOrBuilder
    • getAlertPolicies

      public AlertPolicy getAlertPolicies(int index)
       The returned alert policies.
       
      repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;
      Specified by:
      getAlertPolicies in interface ListAlertPoliciesResponseOrBuilder
    • setAlertPolicies

      public ListAlertPoliciesResponse.Builder setAlertPolicies(int index, AlertPolicy value)
       The returned alert policies.
       
      repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;
    • setAlertPolicies

      public ListAlertPoliciesResponse.Builder setAlertPolicies(int index, AlertPolicy.Builder builderForValue)
       The returned alert policies.
       
      repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;
    • addAlertPolicies

      public ListAlertPoliciesResponse.Builder addAlertPolicies(AlertPolicy value)
       The returned alert policies.
       
      repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;
    • addAlertPolicies

      public ListAlertPoliciesResponse.Builder addAlertPolicies(int index, AlertPolicy value)
       The returned alert policies.
       
      repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;
    • addAlertPolicies

      public ListAlertPoliciesResponse.Builder addAlertPolicies(AlertPolicy.Builder builderForValue)
       The returned alert policies.
       
      repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;
    • addAlertPolicies

      public ListAlertPoliciesResponse.Builder addAlertPolicies(int index, AlertPolicy.Builder builderForValue)
       The returned alert policies.
       
      repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;
    • addAllAlertPolicies

      public ListAlertPoliciesResponse.Builder addAllAlertPolicies(Iterable<? extends AlertPolicy> values)
       The returned alert policies.
       
      repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;
    • clearAlertPolicies

      public ListAlertPoliciesResponse.Builder clearAlertPolicies()
       The returned alert policies.
       
      repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;
    • removeAlertPolicies

      public ListAlertPoliciesResponse.Builder removeAlertPolicies(int index)
       The returned alert policies.
       
      repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;
    • getAlertPoliciesBuilder

      public AlertPolicy.Builder getAlertPoliciesBuilder(int index)
       The returned alert policies.
       
      repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;
    • getAlertPoliciesOrBuilder

      public AlertPolicyOrBuilder getAlertPoliciesOrBuilder(int index)
       The returned alert policies.
       
      repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;
      Specified by:
      getAlertPoliciesOrBuilder in interface ListAlertPoliciesResponseOrBuilder
    • getAlertPoliciesOrBuilderList

      public List<? extends AlertPolicyOrBuilder> getAlertPoliciesOrBuilderList()
       The returned alert policies.
       
      repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;
      Specified by:
      getAlertPoliciesOrBuilderList in interface ListAlertPoliciesResponseOrBuilder
    • addAlertPoliciesBuilder

      public AlertPolicy.Builder addAlertPoliciesBuilder()
       The returned alert policies.
       
      repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;
    • addAlertPoliciesBuilder

      public AlertPolicy.Builder addAlertPoliciesBuilder(int index)
       The returned alert policies.
       
      repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;
    • getAlertPoliciesBuilderList

      public List<AlertPolicy.Builder> getAlertPoliciesBuilderList()
       The returned alert policies.
       
      repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;
    • getNextPageToken

      public String getNextPageToken()
       If there might be more results than were returned, then this field is set
       to a non-empty value. To see the additional results,
       use that value as `page_token` in the next call to this method.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListAlertPoliciesResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       If there might be more results than were returned, then this field is set
       to a non-empty value. To see the additional results,
       use that value as `page_token` in the next call to this method.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListAlertPoliciesResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListAlertPoliciesResponse.Builder setNextPageToken(String value)
       If there might be more results than were returned, then this field is set
       to a non-empty value. To see the additional results,
       use that value as `page_token` in the next call to this method.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListAlertPoliciesResponse.Builder clearNextPageToken()
       If there might be more results than were returned, then this field is set
       to a non-empty value. To see the additional results,
       use that value as `page_token` in the next call to this method.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListAlertPoliciesResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       If there might be more results than were returned, then this field is set
       to a non-empty value. To see the additional results,
       use that value as `page_token` in the next call to this method.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.
    • getTotalSize

      public int getTotalSize()
       The total number of alert policies in all pages. This number is only an
       estimate, and may change in subsequent pages. https://aip.dev/158
       
      int32 total_size = 4;
      Specified by:
      getTotalSize in interface ListAlertPoliciesResponseOrBuilder
      Returns:
      The totalSize.
    • setTotalSize

      public ListAlertPoliciesResponse.Builder setTotalSize(int value)
       The total number of alert policies in all pages. This number is only an
       estimate, and may change in subsequent pages. https://aip.dev/158
       
      int32 total_size = 4;
      Parameters:
      value - The totalSize to set.
      Returns:
      This builder for chaining.
    • clearTotalSize

      public ListAlertPoliciesResponse.Builder clearTotalSize()
       The total number of alert policies in all pages. This number is only an
       estimate, and may change in subsequent pages. https://aip.dev/158
       
      int32 total_size = 4;
      Returns:
      This builder for chaining.