Class CloudDlpInspection.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CloudDlpInspection.Builder>
-
- com.google.cloud.securitycenter.v1.CloudDlpInspection.Builder
-
- All Implemented Interfaces:
CloudDlpInspectionOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- CloudDlpInspection
public static final class CloudDlpInspection.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CloudDlpInspection.Builder> implements CloudDlpInspectionOrBuilder
Details about the Cloud Data Loss Prevention (Cloud DLP) [inspection job](https://cloud.google.com/dlp/docs/concepts-job-triggers) that produced the finding.
Protobuf typegoogle.cloud.securitycenter.v1.CloudDlpInspection
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudDlpInspection.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CloudDlpInspection
build()
CloudDlpInspection
buildPartial()
CloudDlpInspection.Builder
clear()
CloudDlpInspection.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CloudDlpInspection.Builder
clearFullScan()
Whether Cloud DLP scanned the complete resource or a sampled subset.CloudDlpInspection.Builder
clearInfoType()
The type of information (or *[infoType](https://cloud.google.com/dlp/docs/infotypes-reference)*) found, for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.CloudDlpInspection.Builder
clearInfoTypeCount()
The number of times Cloud DLP found this infoType within this job and resource.CloudDlpInspection.Builder
clearInspectJob()
Name of the inspection job, for example, `projects/123/locations/europe/dlpJobs/i-8383929`.CloudDlpInspection.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CloudDlpInspection.Builder
clone()
CloudDlpInspection
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
getFullScan()
Whether Cloud DLP scanned the complete resource or a sampled subset.String
getInfoType()
The type of information (or *[infoType](https://cloud.google.com/dlp/docs/infotypes-reference)*) found, for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.com.google.protobuf.ByteString
getInfoTypeBytes()
The type of information (or *[infoType](https://cloud.google.com/dlp/docs/infotypes-reference)*) found, for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.long
getInfoTypeCount()
The number of times Cloud DLP found this infoType within this job and resource.String
getInspectJob()
Name of the inspection job, for example, `projects/123/locations/europe/dlpJobs/i-8383929`.com.google.protobuf.ByteString
getInspectJobBytes()
Name of the inspection job, for example, `projects/123/locations/europe/dlpJobs/i-8383929`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
CloudDlpInspection.Builder
mergeFrom(CloudDlpInspection other)
CloudDlpInspection.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CloudDlpInspection.Builder
mergeFrom(com.google.protobuf.Message other)
CloudDlpInspection.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CloudDlpInspection.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CloudDlpInspection.Builder
setFullScan(boolean value)
Whether Cloud DLP scanned the complete resource or a sampled subset.CloudDlpInspection.Builder
setInfoType(String value)
The type of information (or *[infoType](https://cloud.google.com/dlp/docs/infotypes-reference)*) found, for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.CloudDlpInspection.Builder
setInfoTypeBytes(com.google.protobuf.ByteString value)
The type of information (or *[infoType](https://cloud.google.com/dlp/docs/infotypes-reference)*) found, for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.CloudDlpInspection.Builder
setInfoTypeCount(long value)
The number of times Cloud DLP found this infoType within this job and resource.CloudDlpInspection.Builder
setInspectJob(String value)
Name of the inspection job, for example, `projects/123/locations/europe/dlpJobs/i-8383929`.CloudDlpInspection.Builder
setInspectJobBytes(com.google.protobuf.ByteString value)
Name of the inspection job, for example, `projects/123/locations/europe/dlpJobs/i-8383929`.CloudDlpInspection.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
CloudDlpInspection.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudDlpInspection.Builder>
-
clear
public CloudDlpInspection.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudDlpInspection.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudDlpInspection.Builder>
-
getDefaultInstanceForType
public CloudDlpInspection getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CloudDlpInspection build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CloudDlpInspection buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CloudDlpInspection.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudDlpInspection.Builder>
-
setField
public CloudDlpInspection.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudDlpInspection.Builder>
-
clearField
public CloudDlpInspection.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudDlpInspection.Builder>
-
clearOneof
public CloudDlpInspection.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudDlpInspection.Builder>
-
setRepeatedField
public CloudDlpInspection.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudDlpInspection.Builder>
-
addRepeatedField
public CloudDlpInspection.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudDlpInspection.Builder>
-
mergeFrom
public CloudDlpInspection.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CloudDlpInspection.Builder>
-
mergeFrom
public CloudDlpInspection.Builder mergeFrom(CloudDlpInspection other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudDlpInspection.Builder>
-
mergeFrom
public CloudDlpInspection.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CloudDlpInspection.Builder>
- Throws:
IOException
-
getInspectJob
public String getInspectJob()
Name of the inspection job, for example, `projects/123/locations/europe/dlpJobs/i-8383929`.
string inspect_job = 1 [(.google.api.resource_reference) = { ... }
- Specified by:
getInspectJob
in interfaceCloudDlpInspectionOrBuilder
- Returns:
- The inspectJob.
-
getInspectJobBytes
public com.google.protobuf.ByteString getInspectJobBytes()
Name of the inspection job, for example, `projects/123/locations/europe/dlpJobs/i-8383929`.
string inspect_job = 1 [(.google.api.resource_reference) = { ... }
- Specified by:
getInspectJobBytes
in interfaceCloudDlpInspectionOrBuilder
- Returns:
- The bytes for inspectJob.
-
setInspectJob
public CloudDlpInspection.Builder setInspectJob(String value)
Name of the inspection job, for example, `projects/123/locations/europe/dlpJobs/i-8383929`.
string inspect_job = 1 [(.google.api.resource_reference) = { ... }
- Parameters:
value
- The inspectJob to set.- Returns:
- This builder for chaining.
-
clearInspectJob
public CloudDlpInspection.Builder clearInspectJob()
Name of the inspection job, for example, `projects/123/locations/europe/dlpJobs/i-8383929`.
string inspect_job = 1 [(.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setInspectJobBytes
public CloudDlpInspection.Builder setInspectJobBytes(com.google.protobuf.ByteString value)
Name of the inspection job, for example, `projects/123/locations/europe/dlpJobs/i-8383929`.
string inspect_job = 1 [(.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for inspectJob to set.- Returns:
- This builder for chaining.
-
getInfoType
public String getInfoType()
The type of information (or *[infoType](https://cloud.google.com/dlp/docs/infotypes-reference)*) found, for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.
string info_type = 2;
- Specified by:
getInfoType
in interfaceCloudDlpInspectionOrBuilder
- Returns:
- The infoType.
-
getInfoTypeBytes
public com.google.protobuf.ByteString getInfoTypeBytes()
The type of information (or *[infoType](https://cloud.google.com/dlp/docs/infotypes-reference)*) found, for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.
string info_type = 2;
- Specified by:
getInfoTypeBytes
in interfaceCloudDlpInspectionOrBuilder
- Returns:
- The bytes for infoType.
-
setInfoType
public CloudDlpInspection.Builder setInfoType(String value)
The type of information (or *[infoType](https://cloud.google.com/dlp/docs/infotypes-reference)*) found, for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.
string info_type = 2;
- Parameters:
value
- The infoType to set.- Returns:
- This builder for chaining.
-
clearInfoType
public CloudDlpInspection.Builder clearInfoType()
The type of information (or *[infoType](https://cloud.google.com/dlp/docs/infotypes-reference)*) found, for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.
string info_type = 2;
- Returns:
- This builder for chaining.
-
setInfoTypeBytes
public CloudDlpInspection.Builder setInfoTypeBytes(com.google.protobuf.ByteString value)
The type of information (or *[infoType](https://cloud.google.com/dlp/docs/infotypes-reference)*) found, for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.
string info_type = 2;
- Parameters:
value
- The bytes for infoType to set.- Returns:
- This builder for chaining.
-
getInfoTypeCount
public long getInfoTypeCount()
The number of times Cloud DLP found this infoType within this job and resource.
int64 info_type_count = 3;
- Specified by:
getInfoTypeCount
in interfaceCloudDlpInspectionOrBuilder
- Returns:
- The infoTypeCount.
-
setInfoTypeCount
public CloudDlpInspection.Builder setInfoTypeCount(long value)
The number of times Cloud DLP found this infoType within this job and resource.
int64 info_type_count = 3;
- Parameters:
value
- The infoTypeCount to set.- Returns:
- This builder for chaining.
-
clearInfoTypeCount
public CloudDlpInspection.Builder clearInfoTypeCount()
The number of times Cloud DLP found this infoType within this job and resource.
int64 info_type_count = 3;
- Returns:
- This builder for chaining.
-
getFullScan
public boolean getFullScan()
Whether Cloud DLP scanned the complete resource or a sampled subset.
bool full_scan = 4;
- Specified by:
getFullScan
in interfaceCloudDlpInspectionOrBuilder
- Returns:
- The fullScan.
-
setFullScan
public CloudDlpInspection.Builder setFullScan(boolean value)
Whether Cloud DLP scanned the complete resource or a sampled subset.
bool full_scan = 4;
- Parameters:
value
- The fullScan to set.- Returns:
- This builder for chaining.
-
clearFullScan
public CloudDlpInspection.Builder clearFullScan()
Whether Cloud DLP scanned the complete resource or a sampled subset.
bool full_scan = 4;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final CloudDlpInspection.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudDlpInspection.Builder>
-
mergeUnknownFields
public final CloudDlpInspection.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudDlpInspection.Builder>
-
-