Class AlertConfig.AlertPolicy.Builder

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

public static final class AlertConfig.AlertPolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<AlertConfig.AlertPolicy.Builder> implements AlertConfig.AlertPolicyOrBuilder
 Alert policy for a customer.
 
Protobuf type google.cloud.retail.v2alpha.AlertConfig.AlertPolicy
  • 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<AlertConfig.AlertPolicy.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<AlertConfig.AlertPolicy.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<AlertConfig.AlertPolicy.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public AlertConfig.AlertPolicy.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<AlertConfig.AlertPolicy.Builder>
      Throws:
      IOException
    • 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.
    • setAlertGroup

      public AlertConfig.AlertPolicy.Builder setAlertGroup(String value)
       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;
      Parameters:
      value - The alertGroup to set.
      Returns:
      This builder for chaining.
    • clearAlertGroup

      public AlertConfig.AlertPolicy.Builder clearAlertGroup()
       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;
      Returns:
      This builder for chaining.
    • setAlertGroupBytes

      public AlertConfig.AlertPolicy.Builder setAlertGroupBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for alertGroup to set.
      Returns:
      This builder for chaining.
    • 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.
    • setEnrollStatusValue

      public AlertConfig.AlertPolicy.Builder setEnrollStatusValue(int value)
       The enrollment status of a customer.
       
      .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus enroll_status = 2;
      Parameters:
      value - The enum numeric value on the wire for enrollStatus to set.
      Returns:
      This builder for chaining.
    • 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.
    • setEnrollStatus

       The enrollment status of a customer.
       
      .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus enroll_status = 2;
      Parameters:
      value - The enrollStatus to set.
      Returns:
      This builder for chaining.
    • clearEnrollStatus

      public AlertConfig.AlertPolicy.Builder clearEnrollStatus()
       The enrollment status of a customer.
       
      .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus enroll_status = 2;
      Returns:
      This builder for chaining.
    • 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
    • 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
    • setRecipients

      public AlertConfig.AlertPolicy.Builder setRecipients(int index, AlertConfig.AlertPolicy.Recipient value)
       Recipients for the alert policy.
       One alert policy should not exceed 20 recipients.
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3;
    • setRecipients

      public AlertConfig.AlertPolicy.Builder setRecipients(int index, AlertConfig.AlertPolicy.Recipient.Builder builderForValue)
       Recipients for the alert policy.
       One alert policy should not exceed 20 recipients.
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3;
    • addRecipients

       Recipients for the alert policy.
       One alert policy should not exceed 20 recipients.
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3;
    • addRecipients

      public AlertConfig.AlertPolicy.Builder addRecipients(int index, AlertConfig.AlertPolicy.Recipient value)
       Recipients for the alert policy.
       One alert policy should not exceed 20 recipients.
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3;
    • addRecipients

       Recipients for the alert policy.
       One alert policy should not exceed 20 recipients.
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3;
    • addRecipients

      public AlertConfig.AlertPolicy.Builder addRecipients(int index, AlertConfig.AlertPolicy.Recipient.Builder builderForValue)
       Recipients for the alert policy.
       One alert policy should not exceed 20 recipients.
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3;
    • addAllRecipients

      public AlertConfig.AlertPolicy.Builder addAllRecipients(Iterable<? extends AlertConfig.AlertPolicy.Recipient> values)
       Recipients for the alert policy.
       One alert policy should not exceed 20 recipients.
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3;
    • clearRecipients

      public AlertConfig.AlertPolicy.Builder clearRecipients()
       Recipients for the alert policy.
       One alert policy should not exceed 20 recipients.
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3;
    • removeRecipients

      public AlertConfig.AlertPolicy.Builder removeRecipients(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;
    • getRecipientsBuilder

      public AlertConfig.AlertPolicy.Recipient.Builder getRecipientsBuilder(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;
    • 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
    • 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
    • addRecipientsBuilder

      public AlertConfig.AlertPolicy.Recipient.Builder addRecipientsBuilder()
       Recipients for the alert policy.
       One alert policy should not exceed 20 recipients.
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3;
    • addRecipientsBuilder

      public AlertConfig.AlertPolicy.Recipient.Builder addRecipientsBuilder(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;
    • getRecipientsBuilderList

      public List<AlertConfig.AlertPolicy.Recipient.Builder> getRecipientsBuilderList()
       Recipients for the alert policy.
       One alert policy should not exceed 20 recipients.
       
      repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3;