Class Connection.Builder (3.50.0)

public static final class Connection.Builder extends GeneratedMessageV3.Builder<Connection.Builder> implements ConnectionOrBuilder

A data connection to allow DLP to profile data in locations that require additional configuration.

Protobuf type google.privacy.dlp.v2.Connection

Implements

ConnectionOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllErrors(Iterable<? extends Error> values)

public Connection.Builder addAllErrors(Iterable<? extends Error> values)

Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.

repeated .google.privacy.dlp.v2.Error errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.privacy.dlp.v2.Error>
Returns
Type Description
Connection.Builder

addErrors(Error value)

public Connection.Builder addErrors(Error value)

Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.

repeated .google.privacy.dlp.v2.Error errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Error
Returns
Type Description
Connection.Builder

addErrors(Error.Builder builderForValue)

public Connection.Builder addErrors(Error.Builder builderForValue)

Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.

repeated .google.privacy.dlp.v2.Error errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Error.Builder
Returns
Type Description
Connection.Builder

addErrors(int index, Error value)

public Connection.Builder addErrors(int index, Error value)

Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.

repeated .google.privacy.dlp.v2.Error errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Error
Returns
Type Description
Connection.Builder

addErrors(int index, Error.Builder builderForValue)

public Connection.Builder addErrors(int index, Error.Builder builderForValue)

Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.

repeated .google.privacy.dlp.v2.Error errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Error.Builder
Returns
Type Description
Connection.Builder

addErrorsBuilder()

public Error.Builder addErrorsBuilder()

Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.

repeated .google.privacy.dlp.v2.Error errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Error.Builder

addErrorsBuilder(int index)

public Error.Builder addErrorsBuilder(int index)

Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.

repeated .google.privacy.dlp.v2.Error errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Error.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Connection build()
Returns
Type Description
Connection

buildPartial()

public Connection buildPartial()
Returns
Type Description
Connection

clear()

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

clearCloudSql()

public Connection.Builder clearCloudSql()

Connect to a Cloud SQL instance.

.google.privacy.dlp.v2.CloudSqlProperties cloud_sql = 4;