public final class Connection extends GeneratedMessageV3 implements ConnectionOrBuilder
A data connection to allow DLP to profile data in locations that require
additional configuration.
Protobuf type google.privacy.dlp.v2.Connection
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CLOUD_SQL_FIELD_NUMBER
public static final int CLOUD_SQL_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
ERRORS_FIELD_NUMBER
public static final int ERRORS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Connection getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Connection.Builder newBuilder()
newBuilder(Connection prototype)
public static Connection.Builder newBuilder(Connection prototype)
public static Connection parseDelimitedFrom(InputStream input)
public static Connection parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Connection parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Connection parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Connection parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Connection parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Connection parseFrom(CodedInputStream input)
public static Connection parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Connection parseFrom(InputStream input)
public static Connection parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Connection parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Connection parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Connection> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getCloudSql()
public CloudSqlProperties getCloudSql()
Connect to a Cloud SQL instance.
.google.privacy.dlp.v2.CloudSqlProperties cloud_sql = 4;
getCloudSqlOrBuilder()
public CloudSqlPropertiesOrBuilder getCloudSqlOrBuilder()
Connect to a Cloud SQL instance.
.google.privacy.dlp.v2.CloudSqlProperties cloud_sql = 4;
getDefaultInstanceForType()
public Connection getDefaultInstanceForType()
getErrors(int index)
public Error getErrors(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 |
|
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];
Returns |
Type |
Description |
int |
|
getErrorsList()
public List<Error> 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];
getErrorsOrBuilder(int index)
public ErrorOrBuilder getErrorsOrBuilder(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
|
getErrorsOrBuilderList()
public List<? extends ErrorOrBuilder> 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];
Returns |
Type |
Description |
List<? extends com.google.privacy.dlp.v2.ErrorOrBuilder> |
|
getName()
Output only. Name of the connection:
projects/{project}/locations/{location}/connections/{name}
.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Output only. Name of the connection:
projects/{project}/locations/{location}/connections/{name}
.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<Connection> getParserForType()
Overrides
getPropertiesCase()
public Connection.PropertiesCase getPropertiesCase()
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getState()
public ConnectionState getState()
Required. The connection's state in its lifecycle.
.google.privacy.dlp.v2.ConnectionState state = 2 [(.google.api.field_behavior) = REQUIRED];
getStateValue()
public int getStateValue()
Required. The connection's state in its lifecycle.
.google.privacy.dlp.v2.ConnectionState state = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
The enum numeric value on the wire for state.
|
hasCloudSql()
public boolean hasCloudSql()
Connect to a Cloud SQL instance.
.google.privacy.dlp.v2.CloudSqlProperties cloud_sql = 4;
Returns |
Type |
Description |
boolean |
Whether the cloudSql field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Connection.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Connection.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Connection.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides