Class ProjectDataProfile.Builder (3.45.0)

public static final class ProjectDataProfile.Builder extends GeneratedMessageV3.Builder<ProjectDataProfile.Builder> implements ProjectDataProfileOrBuilder

An aggregated profile for this project, based on the resources profiled within it.

Protobuf type google.privacy.dlp.v2.ProjectDataProfile

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProjectDataProfile.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ProjectDataProfile.Builder
Overrides

build()

public ProjectDataProfile build()
Returns
TypeDescription
ProjectDataProfile

buildPartial()

public ProjectDataProfile buildPartial()
Returns
TypeDescription
ProjectDataProfile

clear()

public ProjectDataProfile.Builder clear()
Returns
TypeDescription
ProjectDataProfile.Builder
Overrides

clearDataRiskLevel()

public ProjectDataProfile.Builder clearDataRiskLevel()

The data risk level of this project.

.google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5;

Returns
TypeDescription
ProjectDataProfile.Builder

clearField(Descriptors.FieldDescriptor field)

public ProjectDataProfile.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ProjectDataProfile.Builder
Overrides

clearName()

public ProjectDataProfile.Builder clearName()

The resource name of the profile.

string name = 1;

Returns
TypeDescription
ProjectDataProfile.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ProjectDataProfile.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ProjectDataProfile.Builder
Overrides

clearProfileLastGenerated()

public ProjectDataProfile.Builder clearProfileLastGenerated()

The last time the profile was generated.

.google.protobuf.Timestamp profile_last_generated = 3;

Returns
TypeDescription
ProjectDataProfile.Builder

clearProfileStatus()

public ProjectDataProfile.Builder clearProfileStatus()

Success or error status of the last attempt to profile the project.

.google.privacy.dlp.v2.ProfileStatus profile_status = 7;

Returns
TypeDescription
ProjectDataProfile.Builder

clearProjectId()

public ProjectDataProfile.Builder clearProjectId()

Project ID that was profiled.

string project_id = 2;

Returns
TypeDescription
ProjectDataProfile.Builder

This builder for chaining.

clearSensitivityScore()

public ProjectDataProfile.Builder clearSensitivityScore()

The sensitivity score of this project.

.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4;

Returns
TypeDescription
ProjectDataProfile.Builder

clone()

public ProjectDataProfile.Builder clone()
Returns
TypeDescription
ProjectDataProfile.Builder
Overrides

getDataRiskLevel()

public DataRiskLevel getDataRiskLevel()

The data risk level of this project.

.google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5;

Returns
TypeDescription
DataRiskLevel

The dataRiskLevel.

getDataRiskLevelBuilder()

public DataRiskLevel.Builder getDataRiskLevelBuilder()

The data risk level of this project.

.google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5;

Returns
TypeDescription
DataRiskLevel.Builder

getDataRiskLevelOrBuilder()

public DataRiskLevelOrBuilder getDataRiskLevelOrBuilder()

The data risk level of this project.

.google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5;

Returns
TypeDescription
DataRiskLevelOrBuilder

getDefaultInstanceForType()

public ProjectDataProfile getDefaultInstanceForType()
Returns
TypeDescription
ProjectDataProfile

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

The resource name of the profile.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of the profile.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getProfileLastGenerated()

public Timestamp getProfileLastGenerated()

The last time the profile was generated.

.google.protobuf.Timestamp profile_last_generated = 3;

Returns
TypeDescription
Timestamp

The profileLastGenerated.

getProfileLastGeneratedBuilder()

public Timestamp.Builder getProfileLastGeneratedBuilder()

The last time the profile was generated.

.google.protobuf.Timestamp profile_last_generated = 3;

Returns
TypeDescription
Builder

getProfileLastGeneratedOrBuilder()

public TimestampOrBuilder getProfileLastGeneratedOrBuilder()

The last time the profile was generated.

.google.protobuf.Timestamp profile_last_generated = 3;

Returns
TypeDescription
TimestampOrBuilder

getProfileStatus()

public ProfileStatus getProfileStatus()

Success or error status of the last attempt to profile the project.

.google.privacy.dlp.v2.ProfileStatus profile_status = 7;

Returns
TypeDescription
ProfileStatus

The profileStatus.

getProfileStatusBuilder()

public ProfileStatus.Builder getProfileStatusBuilder()

Success or error status of the last attempt to profile the project.

.google.privacy.dlp.v2.ProfileStatus profile_status = 7;

Returns
TypeDescription
ProfileStatus.Builder

getProfileStatusOrBuilder()

public ProfileStatusOrBuilder getProfileStatusOrBuilder()

Success or error status of the last attempt to profile the project.

.google.privacy.dlp.v2.ProfileStatus profile_status = 7;

Returns
TypeDescription
ProfileStatusOrBuilder

getProjectId()

public String getProjectId()

Project ID that was profiled.

string project_id = 2;

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Project ID that was profiled.

string project_id = 2;

Returns
TypeDescription
ByteString

The bytes for projectId.

getSensitivityScore()

public SensitivityScore getSensitivityScore()

The sensitivity score of this project.

.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4;

Returns
TypeDescription
SensitivityScore

The sensitivityScore.

getSensitivityScoreBuilder()

public SensitivityScore.Builder getSensitivityScoreBuilder()

The sensitivity score of this project.

.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4;

Returns
TypeDescription
SensitivityScore.Builder

getSensitivityScoreOrBuilder()

public SensitivityScoreOrBuilder getSensitivityScoreOrBuilder()

The sensitivity score of this project.

.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4;

Returns
TypeDescription
SensitivityScoreOrBuilder

hasDataRiskLevel()

public boolean hasDataRiskLevel()

The data risk level of this project.

.google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5;

Returns
TypeDescription
boolean

Whether the dataRiskLevel field is set.

hasProfileLastGenerated()

public boolean hasProfileLastGenerated()

The last time the profile was generated.

.google.protobuf.Timestamp profile_last_generated = 3;

Returns
TypeDescription
boolean

Whether the profileLastGenerated field is set.

hasProfileStatus()

public boolean hasProfileStatus()

Success or error status of the last attempt to profile the project.

.google.privacy.dlp.v2.ProfileStatus profile_status = 7;

Returns
TypeDescription
boolean

Whether the profileStatus field is set.

hasSensitivityScore()

public boolean hasSensitivityScore()

The sensitivity score of this project.

.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4;

Returns
TypeDescription
boolean

Whether the sensitivityScore field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDataRiskLevel(DataRiskLevel value)

public ProjectDataProfile.Builder mergeDataRiskLevel(DataRiskLevel value)

The data risk level of this project.

.google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5;

Parameter
NameDescription
valueDataRiskLevel
Returns
TypeDescription
ProjectDataProfile.Builder

mergeFrom(ProjectDataProfile other)

public ProjectDataProfile.Builder mergeFrom(ProjectDataProfile other)
Parameter
NameDescription
otherProjectDataProfile
Returns
TypeDescription
ProjectDataProfile.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProjectDataProfile.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProjectDataProfile.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ProjectDataProfile.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ProjectDataProfile.Builder
Overrides

mergeProfileLastGenerated(Timestamp value)

public ProjectDataProfile.Builder mergeProfileLastGenerated(Timestamp value)

The last time the profile was generated.

.google.protobuf.Timestamp profile_last_generated = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ProjectDataProfile.Builder

mergeProfileStatus(ProfileStatus value)

public ProjectDataProfile.Builder mergeProfileStatus(ProfileStatus value)

Success or error status of the last attempt to profile the project.

.google.privacy.dlp.v2.ProfileStatus profile_status = 7;

Parameter
NameDescription
valueProfileStatus
Returns
TypeDescription
ProjectDataProfile.Builder

mergeSensitivityScore(SensitivityScore value)

public ProjectDataProfile.Builder mergeSensitivityScore(SensitivityScore value)

The sensitivity score of this project.

.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4;

Parameter
NameDescription
valueSensitivityScore
Returns
TypeDescription
ProjectDataProfile.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProjectDataProfile.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ProjectDataProfile.Builder
Overrides

setDataRiskLevel(DataRiskLevel value)

public ProjectDataProfile.Builder setDataRiskLevel(DataRiskLevel value)

The data risk level of this project.

.google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5;

Parameter
NameDescription
valueDataRiskLevel
Returns
TypeDescription
ProjectDataProfile.Builder

setDataRiskLevel(DataRiskLevel.Builder builderForValue)

public ProjectDataProfile.Builder setDataRiskLevel(DataRiskLevel.Builder builderForValue)

The data risk level of this project.

.google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5;

Parameter
NameDescription
builderForValueDataRiskLevel.Builder
Returns
TypeDescription
ProjectDataProfile.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ProjectDataProfile.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ProjectDataProfile.Builder
Overrides

setName(String value)

public ProjectDataProfile.Builder setName(String value)

The resource name of the profile.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ProjectDataProfile.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ProjectDataProfile.Builder setNameBytes(ByteString value)

The resource name of the profile.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ProjectDataProfile.Builder

This builder for chaining.

setProfileLastGenerated(Timestamp value)

public ProjectDataProfile.Builder setProfileLastGenerated(Timestamp value)

The last time the profile was generated.

.google.protobuf.Timestamp profile_last_generated = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ProjectDataProfile.Builder

setProfileLastGenerated(Timestamp.Builder builderForValue)

public ProjectDataProfile.Builder setProfileLastGenerated(Timestamp.Builder builderForValue)

The last time the profile was generated.

.google.protobuf.Timestamp profile_last_generated = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ProjectDataProfile.Builder

setProfileStatus(ProfileStatus value)

public ProjectDataProfile.Builder setProfileStatus(ProfileStatus value)

Success or error status of the last attempt to profile the project.

.google.privacy.dlp.v2.ProfileStatus profile_status = 7;

Parameter
NameDescription
valueProfileStatus
Returns
TypeDescription
ProjectDataProfile.Builder

setProfileStatus(ProfileStatus.Builder builderForValue)

public ProjectDataProfile.Builder setProfileStatus(ProfileStatus.Builder builderForValue)

Success or error status of the last attempt to profile the project.

.google.privacy.dlp.v2.ProfileStatus profile_status = 7;

Parameter
NameDescription
builderForValueProfileStatus.Builder
Returns
TypeDescription
ProjectDataProfile.Builder

setProjectId(String value)

public ProjectDataProfile.Builder setProjectId(String value)

Project ID that was profiled.

string project_id = 2;

Parameter
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
ProjectDataProfile.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public ProjectDataProfile.Builder setProjectIdBytes(ByteString value)

Project ID that was profiled.

string project_id = 2;

Parameter
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
ProjectDataProfile.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ProjectDataProfile.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ProjectDataProfile.Builder
Overrides

setSensitivityScore(SensitivityScore value)

public ProjectDataProfile.Builder setSensitivityScore(SensitivityScore value)

The sensitivity score of this project.

.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4;

Parameter
NameDescription
valueSensitivityScore
Returns
TypeDescription
ProjectDataProfile.Builder

setSensitivityScore(SensitivityScore.Builder builderForValue)

public ProjectDataProfile.Builder setSensitivityScore(SensitivityScore.Builder builderForValue)

The sensitivity score of this project.

.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4;

Parameter
NameDescription
builderForValueSensitivityScore.Builder
Returns
TypeDescription
ProjectDataProfile.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ProjectDataProfile.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ProjectDataProfile.Builder
Overrides