Class ListAlertPoliciesResponse

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.monitoring.v3.ListAlertPoliciesResponse
All Implemented Interfaces:
ListAlertPoliciesResponseOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ListAlertPoliciesResponse extends com.google.protobuf.GeneratedMessage implements ListAlertPoliciesResponseOrBuilder
 The protocol for the `ListAlertPolicies` response.
 
Protobuf type google.monitoring.v3.ListAlertPoliciesResponse
See Also:
  • Field Details

    • ALERT_POLICIES_FIELD_NUMBER

      public static final int ALERT_POLICIES_FIELD_NUMBER
      See Also:
    • NEXT_PAGE_TOKEN_FIELD_NUMBER

      public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER
      See Also:
    • TOTAL_SIZE_FIELD_NUMBER

      public static final int TOTAL_SIZE_FIELD_NUMBER
      See Also:
  • 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
    • getAlertPoliciesList

      public List<AlertPolicy> getAlertPoliciesList()
       The returned alert policies.
       
      repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;
      Specified by:
      getAlertPoliciesList 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
    • 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
    • getAlertPoliciesOrBuilder

      public AlertPolicyOrBuilder getAlertPoliciesOrBuilder(int index)
       The returned alert policies.
       
      repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;
      Specified by:
      getAlertPoliciesOrBuilder in interface ListAlertPoliciesResponseOrBuilder
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ListAlertPoliciesResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ListAlertPoliciesResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ListAlertPoliciesResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ListAlertPoliciesResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ListAlertPoliciesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ListAlertPoliciesResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ListAlertPoliciesResponse parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ListAlertPoliciesResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ListAlertPoliciesResponse parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ListAlertPoliciesResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ListAlertPoliciesResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ListAlertPoliciesResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static ListAlertPoliciesResponse.Builder newBuilder()
    • newBuilder

      public static ListAlertPoliciesResponse.Builder newBuilder(ListAlertPoliciesResponse prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ListAlertPoliciesResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ListAlertPoliciesResponse getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ListAlertPoliciesResponse> parser()
    • getParserForType

      public com.google.protobuf.Parser<ListAlertPoliciesResponse> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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