Class AlertConfig.AlertPolicy.Builder (2.54.0)

public static final class AlertConfig.AlertPolicy.Builder extends GeneratedMessageV3.Builder<AlertConfig.AlertPolicy.Builder> implements AlertConfig.AlertPolicyOrBuilder

Alert policy for a customer.

Protobuf type google.cloud.retail.v2alpha.AlertConfig.AlertPolicy

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllRecipients(Iterable<? extends AlertConfig.AlertPolicy.Recipient> values)

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;

Parameter
Name Description
values Iterable<? extends com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient>
Returns
Type Description
AlertConfig.AlertPolicy.Builder

addRecipients(AlertConfig.AlertPolicy.Recipient value)

public AlertConfig.AlertPolicy.Builder addRecipients(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;

Parameter
Name Description
value AlertConfig.AlertPolicy.Recipient
Returns
Type Description
AlertConfig.AlertPolicy.Builder

addRecipients(AlertConfig.AlertPolicy.Recipient.Builder builderForValue)

public AlertConfig.AlertPolicy.Builder addRecipients(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;

Parameter
Name Description
builderForValue AlertConfig.AlertPolicy.Recipient.Builder
Returns
Type Description
AlertConfig.AlertPolicy.Builder

addRecipients(int index, AlertConfig.AlertPolicy.Recipient value)

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;

Parameters
Name Description
index int
value AlertConfig.AlertPolicy.Recipient
Returns
Type Description
AlertConfig.AlertPolicy.Builder

addRecipients(int index, AlertConfig.AlertPolicy.Recipient.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue AlertConfig.AlertPolicy.Recipient.Builder
Returns
Type Description
AlertConfig.AlertPolicy.Builder

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;

Returns
Type Description
AlertConfig.AlertPolicy.Recipient.Builder

addRecipientsBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
AlertConfig.AlertPolicy.Recipient.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AlertConfig.AlertPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AlertConfig.AlertPolicy.Builder
Overrides

build()

public AlertConfig.AlertPolicy build()
Returns
Type Description
AlertConfig.AlertPolicy

buildPartial()

public AlertConfig.AlertPolicy buildPartial()
Returns
Type Description
AlertConfig.AlertPolicy

clear()

public AlertConfig.AlertPolicy.Builder clear()
Returns
Type Description
AlertConfig.AlertPolicy.Builder
Overrides

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
Type Description
AlertConfig.AlertPolicy.Builder

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
Type Description
AlertConfig.AlertPolicy.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AlertConfig.AlertPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AlertConfig.AlertPolicy.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AlertConfig.AlertPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AlertConfig.AlertPolicy.Builder
Overrides

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;

Returns
Type Description
AlertConfig.AlertPolicy.Builder

clone()

public AlertConfig.AlertPolicy.Builder clone()
Returns
Type Description
AlertConfig.AlertPolicy.Builder
Overrides

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;

Returns
Type Description
String

The alertGroup.

getAlertGroupBytes()

public 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;

Returns
Type Description
ByteString

The bytes for alertGroup.

getDefaultInstanceForType()

public AlertConfig.AlertPolicy getDefaultInstanceForType()
Returns
Type Description
AlertConfig.AlertPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnrollStatus()

public AlertConfig.AlertPolicy.EnrollStatus getEnrollStatus()

The enrollment status of a customer.

.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus enroll_status = 2;

Returns
Type Description
AlertConfig.AlertPolicy.EnrollStatus

The enrollStatus.

getEnrollStatusValue()

public int getEnrollStatusValue()

The enrollment status of a customer.

.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus enroll_status = 2;

Returns
Type Description
int

The enum numeric value on the wire for enrollStatus.

getRecipients(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
AlertConfig.AlertPolicy.Recipient

getRecipientsBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
AlertConfig.AlertPolicy.Recipient.Builder

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;

Returns
Type Description
List<Builder>

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;

Returns
Type Description
int

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;

Returns
Type Description
List<Recipient>

getRecipientsOrBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
AlertConfig.AlertPolicy.RecipientOrBuilder

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;

Returns
Type Description
List<? extends com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.RecipientOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AlertConfig.AlertPolicy other)

public AlertConfig.AlertPolicy.Builder mergeFrom(AlertConfig.AlertPolicy other)
Parameter
Name Description
other AlertConfig.AlertPolicy
Returns
Type Description
AlertConfig.AlertPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AlertConfig.AlertPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlertConfig.AlertPolicy.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AlertConfig.AlertPolicy.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AlertConfig.AlertPolicy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AlertConfig.AlertPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AlertConfig.AlertPolicy.Builder
Overrides

removeRecipients(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
AlertConfig.AlertPolicy.Builder

setAlertGroup(String value)

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;

Parameter
Name Description
value String

The alertGroup to set.

Returns
Type Description
AlertConfig.AlertPolicy.Builder

This builder for chaining.

setAlertGroupBytes(ByteString value)

public AlertConfig.AlertPolicy.Builder setAlertGroupBytes(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;

Parameter
Name Description
value ByteString

The bytes for alertGroup to set.

Returns
Type Description
AlertConfig.AlertPolicy.Builder

This builder for chaining.

setEnrollStatus(AlertConfig.AlertPolicy.EnrollStatus value)

public AlertConfig.AlertPolicy.Builder setEnrollStatus(AlertConfig.AlertPolicy.EnrollStatus value)

The enrollment status of a customer.

.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus enroll_status = 2;

Parameter
Name Description
value AlertConfig.AlertPolicy.EnrollStatus

The enrollStatus to set.

Returns
Type Description
AlertConfig.AlertPolicy.Builder

This builder for chaining.

setEnrollStatusValue(int value)

public AlertConfig.AlertPolicy.Builder setEnrollStatusValue(int value)

The enrollment status of a customer.

.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus enroll_status = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for enrollStatus to set.

Returns
Type Description
AlertConfig.AlertPolicy.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AlertConfig.AlertPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AlertConfig.AlertPolicy.Builder
Overrides

setRecipients(int index, AlertConfig.AlertPolicy.Recipient value)

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;

Parameters
Name Description
index int
value AlertConfig.AlertPolicy.Recipient
Returns
Type Description
AlertConfig.AlertPolicy.Builder

setRecipients(int index, AlertConfig.AlertPolicy.Recipient.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue AlertConfig.AlertPolicy.Recipient.Builder
Returns
Type Description
AlertConfig.AlertPolicy.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AlertConfig.AlertPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AlertConfig.AlertPolicy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AlertConfig.AlertPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AlertConfig.AlertPolicy.Builder
Overrides