Class AlertConfig.Builder (2.51.0)

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

Project level alert config.

Protobuf type google.cloud.retail.v2alpha.AlertConfig

Static Methods

getDescriptor()

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

Methods

addAlertPolicies(AlertConfig.AlertPolicy value)

public AlertConfig.Builder addAlertPolicies(AlertConfig.AlertPolicy value)

Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]

repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;

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

addAlertPolicies(AlertConfig.AlertPolicy.Builder builderForValue)

public AlertConfig.Builder addAlertPolicies(AlertConfig.AlertPolicy.Builder builderForValue)

Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]

repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;

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

addAlertPolicies(int index, AlertConfig.AlertPolicy value)

public AlertConfig.Builder addAlertPolicies(int index, AlertConfig.AlertPolicy value)

Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]

repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;

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

addAlertPolicies(int index, AlertConfig.AlertPolicy.Builder builderForValue)

public AlertConfig.Builder addAlertPolicies(int index, AlertConfig.AlertPolicy.Builder builderForValue)

Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]

repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;

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

addAlertPoliciesBuilder()

public AlertConfig.AlertPolicy.Builder addAlertPoliciesBuilder()

Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]

repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;

Returns
Type Description
AlertConfig.AlertPolicy.Builder

addAlertPoliciesBuilder(int index)

public AlertConfig.AlertPolicy.Builder addAlertPoliciesBuilder(int index)

Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]

repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;

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

addAllAlertPolicies(Iterable<? extends AlertConfig.AlertPolicy> values)

public AlertConfig.Builder addAllAlertPolicies(Iterable<? extends AlertConfig.AlertPolicy> values)

Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]

repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AlertConfig build()
Returns
Type Description
AlertConfig

buildPartial()

public AlertConfig buildPartial()
Returns
Type Description
AlertConfig

clear()

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

clearAlertPolicies()

public AlertConfig.Builder clearAlertPolicies()

Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]

repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;

Returns
Type Description
AlertConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public AlertConfig.Builder clearName()

Required. Immutable. The name of the AlertConfig singleton resource. Format: projects/*/alertConfig

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
AlertConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAlertPolicies(int index)

public AlertConfig.AlertPolicy getAlertPolicies(int index)

Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]

repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;

Parameter
Name Description
index int
Returns
Type Description
AlertConfig.AlertPolicy

getAlertPoliciesBuilder(int index)

public AlertConfig.AlertPolicy.Builder getAlertPoliciesBuilder(int index)

Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]

repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;

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

getAlertPoliciesBuilderList()

public List<AlertConfig.AlertPolicy.Builder> getAlertPoliciesBuilderList()

Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]

repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;

Returns
Type Description
List<Builder>

getAlertPoliciesCount()

public int getAlertPoliciesCount()

Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]

repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;

Returns
Type Description
int

getAlertPoliciesList()

public List<AlertConfig.AlertPolicy> getAlertPoliciesList()

Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]

repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;

Returns
Type Description
List<AlertPolicy>

getAlertPoliciesOrBuilder(int index)

public AlertConfig.AlertPolicyOrBuilder getAlertPoliciesOrBuilder(int index)

Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]

repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;

Parameter
Name Description
index int
Returns
Type Description
AlertConfig.AlertPolicyOrBuilder

getAlertPoliciesOrBuilderList()

public List<? extends AlertConfig.AlertPolicyOrBuilder> getAlertPoliciesOrBuilderList()

Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]

repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;

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

getDefaultInstanceForType()

public AlertConfig getDefaultInstanceForType()
Returns
Type Description
AlertConfig

getDescriptorForType()

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

getName()

public String getName()

Required. Immutable. The name of the AlertConfig singleton resource. Format: projects/*/alertConfig

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Immutable. The name of the AlertConfig singleton resource. Format: projects/*/alertConfig

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AlertConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAlertPolicies(int index)

public AlertConfig.Builder removeAlertPolicies(int index)

Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]

repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;

Parameter
Name Description
index int
Returns
Type Description
AlertConfig.Builder

setAlertPolicies(int index, AlertConfig.AlertPolicy value)

public AlertConfig.Builder setAlertPolicies(int index, AlertConfig.AlertPolicy value)

Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]

repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;

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

setAlertPolicies(int index, AlertConfig.AlertPolicy.Builder builderForValue)

public AlertConfig.Builder setAlertPolicies(int index, AlertConfig.AlertPolicy.Builder builderForValue)

Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]

repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2;

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public AlertConfig.Builder setName(String value)

Required. Immutable. The name of the AlertConfig singleton resource. Format: projects/*/alertConfig

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AlertConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AlertConfig.Builder setNameBytes(ByteString value)

Required. Immutable. The name of the AlertConfig singleton resource. Format: projects/*/alertConfig

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AlertConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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