public static final class AlertConfig.AlertPolicy.Builder extends GeneratedMessage.Builder<AlertConfig.AlertPolicy.Builder> implements AlertConfig.AlertPolicyOrBuilderAlert policy for a customer.
Protobuf type google.cloud.retail.v2alpha.AlertConfig.AlertPolicy
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AlertConfig.AlertPolicy.BuilderImplements
AlertConfig.AlertPolicyOrBuilderStatic 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 |
|
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 |
|
clearAlertGroup()
public AlertConfig.AlertPolicy.Builder clearAlertGroup()The feature that provides alerting capability. Supported value:
search-data-qualityfor retail search customers.conv-data-qualityfor 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. |
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 |
|
getAlertGroup()
public String getAlertGroup()The feature that provides alerting capability. Supported value:
search-data-qualityfor retail search customers.conv-data-qualityfor 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-qualityfor retail search customers.conv-data-qualityfor 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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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-qualityfor retail search customers.conv-data-qualityfor retail conversation customers.
string alert_group = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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-qualityfor retail search customers.conv-data-qualityfor retail conversation customers.
string alert_group = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe 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.EnrollStatusThe 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 |
intThe enum numeric value on the wire for enrollStatus to set. |
| Returns | |
|---|---|
| Type | Description |
AlertConfig.AlertPolicy.Builder |
This builder for chaining. |
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 |
|