public static final class AlertConfig.Builder extends GeneratedMessageV3.Builder<AlertConfig.Builder> implements AlertConfigOrBuilder
Project level alert config.
Protobuf type google.cloud.retail.v2alpha.AlertConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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;
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;
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;
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;
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;
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
|
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AlertConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AlertConfig build()
buildPartial()
public AlertConfig buildPartial()
clear()
public AlertConfig.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public AlertConfig.Builder clearField(Descriptors.FieldDescriptor field)
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public AlertConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public AlertConfig.Builder clone()
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
|
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
|
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;
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;
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
|
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AlertConfig other)
public AlertConfig.Builder mergeFrom(AlertConfig other)
public AlertConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AlertConfig.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AlertConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public AlertConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AlertConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AlertConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides