Package com.google.privacy.dlp.v2
Class Connection.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Connection.Builder>
com.google.privacy.dlp.v2.Connection.Builder
- All Implemented Interfaces:
ConnectionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Connection
public static final class Connection.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Connection.Builder>
implements ConnectionOrBuilder
A data connection to allow the DLP API to profile data in locations that require additional configuration.Protobuf type
google.privacy.dlp.v2.Connection-
Method Summary
Modifier and TypeMethodDescriptionaddAllErrors(Iterable<? extends Error> values) Output only.Output only.addErrors(int index, Error.Builder builderForValue) Output only.Output only.addErrors(Error.Builder builderForValue) Output only.Output only.addErrorsBuilder(int index) Output only.build()clear()Connect to a Cloud SQL instance.Output only.Output only.Required.Connect to a Cloud SQL instance.Connect to a Cloud SQL instance.Connect to a Cloud SQL instance.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetErrors(int index) Output only.getErrorsBuilder(int index) Output only.Output only.intOutput only.Output only.getErrorsOrBuilder(int index) Output only.List<? extends ErrorOrBuilder>Output only.getName()Output only.com.google.protobuf.ByteStringOutput only.getState()Required.intRequired.booleanConnect to a Cloud SQL instance.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCloudSql(CloudSqlProperties value) Connect to a Cloud SQL instance.mergeFrom(Connection other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeErrors(int index) Output only.setCloudSql(CloudSqlProperties value) Connect to a Cloud SQL instance.setCloudSql(CloudSqlProperties.Builder builderForValue) Connect to a Cloud SQL instance.Output only.setErrors(int index, Error.Builder builderForValue) Output only.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setState(ConnectionState value) Required.setStateValue(int value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Connection.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Connection.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Connection.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Connection.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Connection.Builder>
-
mergeFrom
public Connection.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Connection.Builder>- Throws:
IOException
-
getPropertiesCase
- Specified by:
getPropertiesCasein interfaceConnectionOrBuilder
-
clearProperties
-
getName
Output only. Name of the connection: `projects/{project}/locations/{location}/connections/{name}`.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceConnectionOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. Name of the connection: `projects/{project}/locations/{location}/connections/{name}`.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceConnectionOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. Name of the connection: `projects/{project}/locations/{location}/connections/{name}`.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Output only. Name of the connection: `projects/{project}/locations/{location}/connections/{name}`.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
Output only. Name of the connection: `projects/{project}/locations/{location}/connections/{name}`.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue()Required. The connection's state in its lifecycle.
.google.privacy.dlp.v2.ConnectionState state = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getStateValuein interfaceConnectionOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
Required. The connection's state in its lifecycle.
.google.privacy.dlp.v2.ConnectionState state = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
Required. The connection's state in its lifecycle.
.google.privacy.dlp.v2.ConnectionState state = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getStatein interfaceConnectionOrBuilder- Returns:
- The state.
-
setState
Required. The connection's state in its lifecycle.
.google.privacy.dlp.v2.ConnectionState state = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Required. The connection's state in its lifecycle.
.google.privacy.dlp.v2.ConnectionState state = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getErrorsList
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];- Specified by:
getErrorsListin interfaceConnectionOrBuilder
-
getErrorsCount
public int getErrorsCount()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];- Specified by:
getErrorsCountin interfaceConnectionOrBuilder
-
getErrors
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];- Specified by:
getErrorsin interfaceConnectionOrBuilder
-
setErrors
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]; -
setErrors
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]; -
addErrors
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]; -
addErrors
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]; -
addErrors
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]; -
addErrors
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]; -
addAllErrors
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]; -
clearErrors
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]; -
removeErrors
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]; -
getErrorsBuilder
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]; -
getErrorsOrBuilder
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];- Specified by:
getErrorsOrBuilderin interfaceConnectionOrBuilder
-
getErrorsOrBuilderList
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];- Specified by:
getErrorsOrBuilderListin interfaceConnectionOrBuilder
-
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]; -
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]; -
getErrorsBuilderList
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]; -
hasCloudSql
public boolean hasCloudSql()Connect to a Cloud SQL instance.
.google.privacy.dlp.v2.CloudSqlProperties cloud_sql = 4;- Specified by:
hasCloudSqlin interfaceConnectionOrBuilder- Returns:
- Whether the cloudSql field is set.
-
getCloudSql
Connect to a Cloud SQL instance.
.google.privacy.dlp.v2.CloudSqlProperties cloud_sql = 4;- Specified by:
getCloudSqlin interfaceConnectionOrBuilder- Returns:
- The cloudSql.
-
setCloudSql
Connect to a Cloud SQL instance.
.google.privacy.dlp.v2.CloudSqlProperties cloud_sql = 4; -
setCloudSql
Connect to a Cloud SQL instance.
.google.privacy.dlp.v2.CloudSqlProperties cloud_sql = 4; -
mergeCloudSql
Connect to a Cloud SQL instance.
.google.privacy.dlp.v2.CloudSqlProperties cloud_sql = 4; -
clearCloudSql
Connect to a Cloud SQL instance.
.google.privacy.dlp.v2.CloudSqlProperties cloud_sql = 4; -
getCloudSqlBuilder
Connect to a Cloud SQL instance.
.google.privacy.dlp.v2.CloudSqlProperties cloud_sql = 4; -
getCloudSqlOrBuilder
Connect to a Cloud SQL instance.
.google.privacy.dlp.v2.CloudSqlProperties cloud_sql = 4;- Specified by:
getCloudSqlOrBuilderin interfaceConnectionOrBuilder
-