Class AlertPolicyConfig.Builder (0.99.0)

public static final class AlertPolicyConfig.Builder extends GeneratedMessage.Builder<AlertPolicyConfig.Builder> implements AlertPolicyConfigOrBuilder

The connector level alert config.

Protobuf type google.cloud.discoveryengine.v1.AlertPolicyConfig

Static Methods

getDescriptor()

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

Methods

addAlertEnrollments(AlertPolicyConfig.AlertEnrollment value)

public AlertPolicyConfig.Builder addAlertEnrollments(AlertPolicyConfig.AlertEnrollment value)

Optional. The enrollment states of each alert.

repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AlertPolicyConfig.AlertEnrollment
Returns
Type Description
AlertPolicyConfig.Builder

addAlertEnrollments(AlertPolicyConfig.AlertEnrollment.Builder builderForValue)

public AlertPolicyConfig.Builder addAlertEnrollments(AlertPolicyConfig.AlertEnrollment.Builder builderForValue)

Optional. The enrollment states of each alert.

repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AlertPolicyConfig.AlertEnrollment.Builder
Returns
Type Description
AlertPolicyConfig.Builder

addAlertEnrollments(int index, AlertPolicyConfig.AlertEnrollment value)

public AlertPolicyConfig.Builder addAlertEnrollments(int index, AlertPolicyConfig.AlertEnrollment value)

Optional. The enrollment states of each alert.

repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value AlertPolicyConfig.AlertEnrollment
Returns
Type Description
AlertPolicyConfig.Builder

addAlertEnrollments(int index, AlertPolicyConfig.AlertEnrollment.Builder builderForValue)

public AlertPolicyConfig.Builder addAlertEnrollments(int index, AlertPolicyConfig.AlertEnrollment.Builder builderForValue)

Optional. The enrollment states of each alert.

repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue AlertPolicyConfig.AlertEnrollment.Builder
Returns
Type Description
AlertPolicyConfig.Builder

addAlertEnrollmentsBuilder()

public AlertPolicyConfig.AlertEnrollment.Builder addAlertEnrollmentsBuilder()

Optional. The enrollment states of each alert.

repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AlertPolicyConfig.AlertEnrollment.Builder

addAlertEnrollmentsBuilder(int index)

public AlertPolicyConfig.AlertEnrollment.Builder addAlertEnrollmentsBuilder(int index)

Optional. The enrollment states of each alert.

repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AlertPolicyConfig.AlertEnrollment.Builder

addAllAlertEnrollments(Iterable<? extends AlertPolicyConfig.AlertEnrollment> values)

public AlertPolicyConfig.Builder addAllAlertEnrollments(Iterable<? extends AlertPolicyConfig.AlertEnrollment> values)

Optional. The enrollment states of each alert.

repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment>
Returns
Type Description
AlertPolicyConfig.Builder

build()

public AlertPolicyConfig build()
Returns
Type Description
AlertPolicyConfig

buildPartial()

public AlertPolicyConfig buildPartial()
Returns
Type Description
AlertPolicyConfig

clear()

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

clearAlertEnrollments()

public AlertPolicyConfig.Builder clearAlertEnrollments()

Optional. The enrollment states of each alert.

repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AlertPolicyConfig.Builder

clearAlertPolicyName()

public AlertPolicyConfig.Builder clearAlertPolicyName()

Immutable. The fully qualified resource name of the AlertPolicy.

string alert_policy_name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
AlertPolicyConfig.Builder

This builder for chaining.

getAlertEnrollments(int index)

public AlertPolicyConfig.AlertEnrollment getAlertEnrollments(int index)

Optional. The enrollment states of each alert.

repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AlertPolicyConfig.AlertEnrollment

getAlertEnrollmentsBuilder(int index)

public AlertPolicyConfig.AlertEnrollment.Builder getAlertEnrollmentsBuilder(int index)

Optional. The enrollment states of each alert.

repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AlertPolicyConfig.AlertEnrollment.Builder

getAlertEnrollmentsBuilderList()

public List<AlertPolicyConfig.AlertEnrollment.Builder> getAlertEnrollmentsBuilderList()

Optional. The enrollment states of each alert.

repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getAlertEnrollmentsCount()

public int getAlertEnrollmentsCount()

Optional. The enrollment states of each alert.

repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getAlertEnrollmentsList()

public List<AlertPolicyConfig.AlertEnrollment> getAlertEnrollmentsList()

Optional. The enrollment states of each alert.

repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<AlertEnrollment>

getAlertEnrollmentsOrBuilder(int index)

public AlertPolicyConfig.AlertEnrollmentOrBuilder getAlertEnrollmentsOrBuilder(int index)

Optional. The enrollment states of each alert.

repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AlertPolicyConfig.AlertEnrollmentOrBuilder

getAlertEnrollmentsOrBuilderList()

public List<? extends AlertPolicyConfig.AlertEnrollmentOrBuilder> getAlertEnrollmentsOrBuilderList()

Optional. The enrollment states of each alert.

repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollmentOrBuilder>

getAlertPolicyName()

public String getAlertPolicyName()

Immutable. The fully qualified resource name of the AlertPolicy.

string alert_policy_name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The alertPolicyName.

getAlertPolicyNameBytes()

public ByteString getAlertPolicyNameBytes()

Immutable. The fully qualified resource name of the AlertPolicy.

string alert_policy_name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for alertPolicyName.

getDefaultInstanceForType()

public AlertPolicyConfig getDefaultInstanceForType()
Returns
Type Description
AlertPolicyConfig

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AlertPolicyConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeAlertEnrollments(int index)

public AlertPolicyConfig.Builder removeAlertEnrollments(int index)

Optional. The enrollment states of each alert.

repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AlertPolicyConfig.Builder

setAlertEnrollments(int index, AlertPolicyConfig.AlertEnrollment value)

public AlertPolicyConfig.Builder setAlertEnrollments(int index, AlertPolicyConfig.AlertEnrollment value)

Optional. The enrollment states of each alert.

repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value AlertPolicyConfig.AlertEnrollment
Returns
Type Description
AlertPolicyConfig.Builder

setAlertEnrollments(int index, AlertPolicyConfig.AlertEnrollment.Builder builderForValue)

public AlertPolicyConfig.Builder setAlertEnrollments(int index, AlertPolicyConfig.AlertEnrollment.Builder builderForValue)

Optional. The enrollment states of each alert.

repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue AlertPolicyConfig.AlertEnrollment.Builder
Returns
Type Description
AlertPolicyConfig.Builder

setAlertPolicyName(String value)

public AlertPolicyConfig.Builder setAlertPolicyName(String value)

Immutable. The fully qualified resource name of the AlertPolicy.

string alert_policy_name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The alertPolicyName to set.

Returns
Type Description
AlertPolicyConfig.Builder

This builder for chaining.

setAlertPolicyNameBytes(ByteString value)

public AlertPolicyConfig.Builder setAlertPolicyNameBytes(ByteString value)

Immutable. The fully qualified resource name of the AlertPolicy.

string alert_policy_name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for alertPolicyName to set.

Returns
Type Description
AlertPolicyConfig.Builder

This builder for chaining.