Class AlertConfig.AlertPolicy

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy
All Implemented Interfaces:
AlertConfig.AlertPolicyOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
AlertConfig

public static final class AlertConfig.AlertPolicy extends com.google.protobuf.GeneratedMessage implements AlertConfig.AlertPolicyOrBuilder
 Alert policy for a customer.
 
Protobuf type google.cloud.retail.v2alpha.AlertConfig.AlertPolicy
See Also:
  • Field Details

    • ALERT_GROUP_FIELD_NUMBER

      public static final int ALERT_GROUP_FIELD_NUMBER
      See Also:
    • ENROLL_STATUS_FIELD_NUMBER

      public static final int ENROLL_STATUS_FIELD_NUMBER
      See Also:
    • RECIPIENTS_FIELD_NUMBER

      public static final int RECIPIENTS_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
    • getAlertGroup

      public String getAlertGroup()
       The feature that provides alerting capability.
       Supported value:
       - `search-data-quality` for retail search customers.
       - `conv-data-quality` for retail conversation customers.
       
      string alert_group = 1;
      Specified by:
      getAlertGroup in interface AlertConfig.AlertPolicyOrBuilder
      Returns:
      The alertGroup.
    • getAlertGroupBytes

      public com.google.protobuf.ByteString getAlertGroupBytes()
       The feature that provides alerting capability.
       Supported value:
       - `search-data-quality` for retail search customers.
       - `conv-data-quality` for retail conversation customers.
       
      string alert_group = 1;
      Specified by:
      getAlertGroupBytes in interface AlertConfig.AlertPolicyOrBuilder
      Returns:
      The bytes for alertGroup.
    • getEnrollStatusValue

      public int getEnrollStatusValue()
       The enrollment status of a customer.
       
      .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus enroll_status = 2;
      Specified by:
      getEnrollStatusValue in interface AlertConfig.AlertPolicyOrBuilder
      Returns:
      The enum numeric value on the wire for enrollStatus.
    • getEnrollStatus

      public AlertConfig.AlertPolicy.EnrollStatus getEnrollStatus()
       The enrollment status of a customer.
       
      .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus enroll_status = 2;
      Specified by:
      getEnrollStatus in interface AlertConfig.AlertPolicyOrBuilder
      Returns:
      The enrollStatus.
    • getRecipientsList

      public List<AlertConfig.AlertPolicy.Recipient> getRecipientsList()
       Recipients for the alert policy.
       One alert policy should not exceed 20 recipients.
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3;
      Specified by:
      getRecipientsList in interface AlertConfig.AlertPolicyOrBuilder
    • getRecipientsOrBuilderList

      public List<? extends AlertConfig.AlertPolicy.RecipientOrBuilder> getRecipientsOrBuilderList()
       Recipients for the alert policy.
       One alert policy should not exceed 20 recipients.
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3;
      Specified by:
      getRecipientsOrBuilderList in interface AlertConfig.AlertPolicyOrBuilder
    • getRecipientsCount

      public int getRecipientsCount()
       Recipients for the alert policy.
       One alert policy should not exceed 20 recipients.
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3;
      Specified by:
      getRecipientsCount in interface AlertConfig.AlertPolicyOrBuilder
    • getRecipients

      public AlertConfig.AlertPolicy.Recipient getRecipients(int index)
       Recipients for the alert policy.
       One alert policy should not exceed 20 recipients.
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3;
      Specified by:
      getRecipients in interface AlertConfig.AlertPolicyOrBuilder
    • getRecipientsOrBuilder

      public AlertConfig.AlertPolicy.RecipientOrBuilder getRecipientsOrBuilder(int index)
       Recipients for the alert policy.
       One alert policy should not exceed 20 recipients.
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3;
      Specified by:
      getRecipientsOrBuilder in interface AlertConfig.AlertPolicyOrBuilder
    • 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 AlertConfig.AlertPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static AlertConfig.AlertPolicy parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static AlertConfig.AlertPolicy parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static AlertConfig.AlertPolicy.Builder newBuilder()
    • newBuilder

      public static AlertConfig.AlertPolicy.Builder newBuilder(AlertConfig.AlertPolicy prototype)
    • toBuilder

      public AlertConfig.AlertPolicy.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static AlertConfig.AlertPolicy getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<AlertConfig.AlertPolicy> 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 AlertConfig.AlertPolicy getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder