Package com.google.privacy.dlp.v2
Class OutputStorageConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OutputStorageConfig.Builder>
com.google.privacy.dlp.v2.OutputStorageConfig.Builder
- All Implemented Interfaces:
OutputStorageConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- OutputStorageConfig
public static final class OutputStorageConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<OutputStorageConfig.Builder>
implements OutputStorageConfigOrBuilder
Cloud repository for storing output.Protobuf type
google.privacy.dlp.v2.OutputStorageConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Schema used for writing the findings for Inspect jobs.Store findings in an existing Cloud Storage bucket.Store findings in an existing table or a new table in an existing dataset.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSchema used for writing the findings for Inspect jobs.intSchema used for writing the findings for Inspect jobs.Store findings in an existing Cloud Storage bucket.Store findings in an existing Cloud Storage bucket.Store findings in an existing Cloud Storage bucket.getTable()Store findings in an existing table or a new table in an existing dataset.Store findings in an existing table or a new table in an existing dataset.Store findings in an existing table or a new table in an existing dataset.booleanStore findings in an existing Cloud Storage bucket.booleanhasTable()Store findings in an existing table or a new table in an existing dataset.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(OutputStorageConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStoragePath(CloudStoragePath value) Store findings in an existing Cloud Storage bucket.mergeTable(BigQueryTable value) Store findings in an existing table or a new table in an existing dataset.Schema used for writing the findings for Inspect jobs.setOutputSchemaValue(int value) Schema used for writing the findings for Inspect jobs.setStoragePath(CloudStoragePath value) Store findings in an existing Cloud Storage bucket.setStoragePath(CloudStoragePath.Builder builderForValue) Store findings in an existing Cloud Storage bucket.setTable(BigQueryTable value) Store findings in an existing table or a new table in an existing dataset.setTable(BigQueryTable.Builder builderForValue) Store findings in an existing table or a new table in an existing dataset.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<OutputStorageConfig.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<OutputStorageConfig.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<OutputStorageConfig.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<OutputStorageConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<OutputStorageConfig.Builder>
-
mergeFrom
public OutputStorageConfig.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<OutputStorageConfig.Builder>- Throws:
IOException
-
getTypeCase
- Specified by:
getTypeCasein interfaceOutputStorageConfigOrBuilder
-
clearType
-
hasTable
public boolean hasTable()Store findings in an existing table or a new table in an existing dataset. If table_id is not set a new one will be generated for you with the following format: dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used for generating the date details. For Inspect, each column in an existing output table must have the same name, type, and mode of a field in the `Finding` object. For Risk, an existing output table should be the output of a previous Risk analysis job run on the same source table, with the same privacy metric and quasi-identifiers. Risk jobs that analyze the same table but compute a different privacy metric, or use different sets of quasi-identifiers, cannot store their results in the same table.
.google.privacy.dlp.v2.BigQueryTable table = 1;- Specified by:
hasTablein interfaceOutputStorageConfigOrBuilder- Returns:
- Whether the table field is set.
-
getTable
Store findings in an existing table or a new table in an existing dataset. If table_id is not set a new one will be generated for you with the following format: dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used for generating the date details. For Inspect, each column in an existing output table must have the same name, type, and mode of a field in the `Finding` object. For Risk, an existing output table should be the output of a previous Risk analysis job run on the same source table, with the same privacy metric and quasi-identifiers. Risk jobs that analyze the same table but compute a different privacy metric, or use different sets of quasi-identifiers, cannot store their results in the same table.
.google.privacy.dlp.v2.BigQueryTable table = 1;- Specified by:
getTablein interfaceOutputStorageConfigOrBuilder- Returns:
- The table.
-
setTable
Store findings in an existing table or a new table in an existing dataset. If table_id is not set a new one will be generated for you with the following format: dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used for generating the date details. For Inspect, each column in an existing output table must have the same name, type, and mode of a field in the `Finding` object. For Risk, an existing output table should be the output of a previous Risk analysis job run on the same source table, with the same privacy metric and quasi-identifiers. Risk jobs that analyze the same table but compute a different privacy metric, or use different sets of quasi-identifiers, cannot store their results in the same table.
.google.privacy.dlp.v2.BigQueryTable table = 1; -
setTable
Store findings in an existing table or a new table in an existing dataset. If table_id is not set a new one will be generated for you with the following format: dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used for generating the date details. For Inspect, each column in an existing output table must have the same name, type, and mode of a field in the `Finding` object. For Risk, an existing output table should be the output of a previous Risk analysis job run on the same source table, with the same privacy metric and quasi-identifiers. Risk jobs that analyze the same table but compute a different privacy metric, or use different sets of quasi-identifiers, cannot store their results in the same table.
.google.privacy.dlp.v2.BigQueryTable table = 1; -
mergeTable
Store findings in an existing table or a new table in an existing dataset. If table_id is not set a new one will be generated for you with the following format: dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used for generating the date details. For Inspect, each column in an existing output table must have the same name, type, and mode of a field in the `Finding` object. For Risk, an existing output table should be the output of a previous Risk analysis job run on the same source table, with the same privacy metric and quasi-identifiers. Risk jobs that analyze the same table but compute a different privacy metric, or use different sets of quasi-identifiers, cannot store their results in the same table.
.google.privacy.dlp.v2.BigQueryTable table = 1; -
clearTable
Store findings in an existing table or a new table in an existing dataset. If table_id is not set a new one will be generated for you with the following format: dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used for generating the date details. For Inspect, each column in an existing output table must have the same name, type, and mode of a field in the `Finding` object. For Risk, an existing output table should be the output of a previous Risk analysis job run on the same source table, with the same privacy metric and quasi-identifiers. Risk jobs that analyze the same table but compute a different privacy metric, or use different sets of quasi-identifiers, cannot store their results in the same table.
.google.privacy.dlp.v2.BigQueryTable table = 1; -
getTableBuilder
Store findings in an existing table or a new table in an existing dataset. If table_id is not set a new one will be generated for you with the following format: dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used for generating the date details. For Inspect, each column in an existing output table must have the same name, type, and mode of a field in the `Finding` object. For Risk, an existing output table should be the output of a previous Risk analysis job run on the same source table, with the same privacy metric and quasi-identifiers. Risk jobs that analyze the same table but compute a different privacy metric, or use different sets of quasi-identifiers, cannot store their results in the same table.
.google.privacy.dlp.v2.BigQueryTable table = 1; -
getTableOrBuilder
Store findings in an existing table or a new table in an existing dataset. If table_id is not set a new one will be generated for you with the following format: dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used for generating the date details. For Inspect, each column in an existing output table must have the same name, type, and mode of a field in the `Finding` object. For Risk, an existing output table should be the output of a previous Risk analysis job run on the same source table, with the same privacy metric and quasi-identifiers. Risk jobs that analyze the same table but compute a different privacy metric, or use different sets of quasi-identifiers, cannot store their results in the same table.
.google.privacy.dlp.v2.BigQueryTable table = 1;- Specified by:
getTableOrBuilderin interfaceOutputStorageConfigOrBuilder
-
hasStoragePath
public boolean hasStoragePath()Store findings in an existing Cloud Storage bucket. Files will be generated with the job ID and file part number as the filename and will contain findings in textproto format as [SaveToGcsFindingsOutput][google.privacy.dlp.v2.SaveToGcsFindingsOutput]. The filename will follow the naming convention `<job_id>-<shard_number>`. Example: `my-job-id-2`. Supported for [Inspect jobs][google.privacy.dlp.v2.InspectJobConfig]. The bucket must not be the same as the bucket being inspected. If storing findings to Cloud Storage, the output schema field should not be set. If set, it will be ignored.
.google.privacy.dlp.v2.CloudStoragePath storage_path = 5;- Specified by:
hasStoragePathin interfaceOutputStorageConfigOrBuilder- Returns:
- Whether the storagePath field is set.
-
getStoragePath
Store findings in an existing Cloud Storage bucket. Files will be generated with the job ID and file part number as the filename and will contain findings in textproto format as [SaveToGcsFindingsOutput][google.privacy.dlp.v2.SaveToGcsFindingsOutput]. The filename will follow the naming convention `<job_id>-<shard_number>`. Example: `my-job-id-2`. Supported for [Inspect jobs][google.privacy.dlp.v2.InspectJobConfig]. The bucket must not be the same as the bucket being inspected. If storing findings to Cloud Storage, the output schema field should not be set. If set, it will be ignored.
.google.privacy.dlp.v2.CloudStoragePath storage_path = 5;- Specified by:
getStoragePathin interfaceOutputStorageConfigOrBuilder- Returns:
- The storagePath.
-
setStoragePath
Store findings in an existing Cloud Storage bucket. Files will be generated with the job ID and file part number as the filename and will contain findings in textproto format as [SaveToGcsFindingsOutput][google.privacy.dlp.v2.SaveToGcsFindingsOutput]. The filename will follow the naming convention `<job_id>-<shard_number>`. Example: `my-job-id-2`. Supported for [Inspect jobs][google.privacy.dlp.v2.InspectJobConfig]. The bucket must not be the same as the bucket being inspected. If storing findings to Cloud Storage, the output schema field should not be set. If set, it will be ignored.
.google.privacy.dlp.v2.CloudStoragePath storage_path = 5; -
setStoragePath
Store findings in an existing Cloud Storage bucket. Files will be generated with the job ID and file part number as the filename and will contain findings in textproto format as [SaveToGcsFindingsOutput][google.privacy.dlp.v2.SaveToGcsFindingsOutput]. The filename will follow the naming convention `<job_id>-<shard_number>`. Example: `my-job-id-2`. Supported for [Inspect jobs][google.privacy.dlp.v2.InspectJobConfig]. The bucket must not be the same as the bucket being inspected. If storing findings to Cloud Storage, the output schema field should not be set. If set, it will be ignored.
.google.privacy.dlp.v2.CloudStoragePath storage_path = 5; -
mergeStoragePath
Store findings in an existing Cloud Storage bucket. Files will be generated with the job ID and file part number as the filename and will contain findings in textproto format as [SaveToGcsFindingsOutput][google.privacy.dlp.v2.SaveToGcsFindingsOutput]. The filename will follow the naming convention `<job_id>-<shard_number>`. Example: `my-job-id-2`. Supported for [Inspect jobs][google.privacy.dlp.v2.InspectJobConfig]. The bucket must not be the same as the bucket being inspected. If storing findings to Cloud Storage, the output schema field should not be set. If set, it will be ignored.
.google.privacy.dlp.v2.CloudStoragePath storage_path = 5; -
clearStoragePath
Store findings in an existing Cloud Storage bucket. Files will be generated with the job ID and file part number as the filename and will contain findings in textproto format as [SaveToGcsFindingsOutput][google.privacy.dlp.v2.SaveToGcsFindingsOutput]. The filename will follow the naming convention `<job_id>-<shard_number>`. Example: `my-job-id-2`. Supported for [Inspect jobs][google.privacy.dlp.v2.InspectJobConfig]. The bucket must not be the same as the bucket being inspected. If storing findings to Cloud Storage, the output schema field should not be set. If set, it will be ignored.
.google.privacy.dlp.v2.CloudStoragePath storage_path = 5; -
getStoragePathBuilder
Store findings in an existing Cloud Storage bucket. Files will be generated with the job ID and file part number as the filename and will contain findings in textproto format as [SaveToGcsFindingsOutput][google.privacy.dlp.v2.SaveToGcsFindingsOutput]. The filename will follow the naming convention `<job_id>-<shard_number>`. Example: `my-job-id-2`. Supported for [Inspect jobs][google.privacy.dlp.v2.InspectJobConfig]. The bucket must not be the same as the bucket being inspected. If storing findings to Cloud Storage, the output schema field should not be set. If set, it will be ignored.
.google.privacy.dlp.v2.CloudStoragePath storage_path = 5; -
getStoragePathOrBuilder
Store findings in an existing Cloud Storage bucket. Files will be generated with the job ID and file part number as the filename and will contain findings in textproto format as [SaveToGcsFindingsOutput][google.privacy.dlp.v2.SaveToGcsFindingsOutput]. The filename will follow the naming convention `<job_id>-<shard_number>`. Example: `my-job-id-2`. Supported for [Inspect jobs][google.privacy.dlp.v2.InspectJobConfig]. The bucket must not be the same as the bucket being inspected. If storing findings to Cloud Storage, the output schema field should not be set. If set, it will be ignored.
.google.privacy.dlp.v2.CloudStoragePath storage_path = 5;- Specified by:
getStoragePathOrBuilderin interfaceOutputStorageConfigOrBuilder
-
getOutputSchemaValue
public int getOutputSchemaValue()Schema used for writing the findings for Inspect jobs. This field is only used for Inspect and must be unspecified for Risk jobs. Columns are derived from the `Finding` object. If appending to an existing table, any columns from the predefined schema that are missing will be added. No columns in the existing table will be deleted. If unspecified, then all available columns will be used for a new table or an (existing) table with no schema, and no changes will be made to an existing table that has a schema. Only for use with external storage.
.google.privacy.dlp.v2.OutputStorageConfig.OutputSchema output_schema = 3;- Specified by:
getOutputSchemaValuein interfaceOutputStorageConfigOrBuilder- Returns:
- The enum numeric value on the wire for outputSchema.
-
setOutputSchemaValue
Schema used for writing the findings for Inspect jobs. This field is only used for Inspect and must be unspecified for Risk jobs. Columns are derived from the `Finding` object. If appending to an existing table, any columns from the predefined schema that are missing will be added. No columns in the existing table will be deleted. If unspecified, then all available columns will be used for a new table or an (existing) table with no schema, and no changes will be made to an existing table that has a schema. Only for use with external storage.
.google.privacy.dlp.v2.OutputStorageConfig.OutputSchema output_schema = 3;- Parameters:
value- The enum numeric value on the wire for outputSchema to set.- Returns:
- This builder for chaining.
-
getOutputSchema
Schema used for writing the findings for Inspect jobs. This field is only used for Inspect and must be unspecified for Risk jobs. Columns are derived from the `Finding` object. If appending to an existing table, any columns from the predefined schema that are missing will be added. No columns in the existing table will be deleted. If unspecified, then all available columns will be used for a new table or an (existing) table with no schema, and no changes will be made to an existing table that has a schema. Only for use with external storage.
.google.privacy.dlp.v2.OutputStorageConfig.OutputSchema output_schema = 3;- Specified by:
getOutputSchemain interfaceOutputStorageConfigOrBuilder- Returns:
- The outputSchema.
-
setOutputSchema
Schema used for writing the findings for Inspect jobs. This field is only used for Inspect and must be unspecified for Risk jobs. Columns are derived from the `Finding` object. If appending to an existing table, any columns from the predefined schema that are missing will be added. No columns in the existing table will be deleted. If unspecified, then all available columns will be used for a new table or an (existing) table with no schema, and no changes will be made to an existing table that has a schema. Only for use with external storage.
.google.privacy.dlp.v2.OutputStorageConfig.OutputSchema output_schema = 3;- Parameters:
value- The outputSchema to set.- Returns:
- This builder for chaining.
-
clearOutputSchema
Schema used for writing the findings for Inspect jobs. This field is only used for Inspect and must be unspecified for Risk jobs. Columns are derived from the `Finding` object. If appending to an existing table, any columns from the predefined schema that are missing will be added. No columns in the existing table will be deleted. If unspecified, then all available columns will be used for a new table or an (existing) table with no schema, and no changes will be made to an existing table that has a schema. Only for use with external storage.
.google.privacy.dlp.v2.OutputStorageConfig.OutputSchema output_schema = 3;- Returns:
- This builder for chaining.
-