Class TransformationSummary.SummaryResult.Builder (3.28.0)

public static final class TransformationSummary.SummaryResult.Builder extends GeneratedMessageV3.Builder<TransformationSummary.SummaryResult.Builder> implements TransformationSummary.SummaryResultOrBuilder

A collection that informs the user the number of times a particular TransformationResultCode and error details occurred.

Protobuf type google.privacy.dlp.v2.TransformationSummary.SummaryResult

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TransformationSummary.SummaryResult build()
Returns
TypeDescription
TransformationSummary.SummaryResult

buildPartial()

public TransformationSummary.SummaryResult buildPartial()
Returns
TypeDescription
TransformationSummary.SummaryResult

clear()

public TransformationSummary.SummaryResult.Builder clear()
Returns
TypeDescription
TransformationSummary.SummaryResult.Builder
Overrides

clearCode()

public TransformationSummary.SummaryResult.Builder clearCode()

Outcome of the transformation.

.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode code = 2;

Returns
TypeDescription
TransformationSummary.SummaryResult.Builder

This builder for chaining.

clearCount()

public TransformationSummary.SummaryResult.Builder clearCount()

Number of transformations counted by this result.

int64 count = 1;

Returns
TypeDescription
TransformationSummary.SummaryResult.Builder

This builder for chaining.

clearDetails()

public TransformationSummary.SummaryResult.Builder clearDetails()

A place for warnings or errors to show up if a transformation didn't work as expected.

string details = 3;

Returns
TypeDescription
TransformationSummary.SummaryResult.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public TransformationSummary.SummaryResult.Builder clone()
Returns
TypeDescription
TransformationSummary.SummaryResult.Builder
Overrides

getCode()

public TransformationSummary.TransformationResultCode getCode()

Outcome of the transformation.

.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode code = 2;

Returns
TypeDescription
TransformationSummary.TransformationResultCode

The code.

getCodeValue()

public int getCodeValue()

Outcome of the transformation.

.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode code = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for code.

getCount()

public long getCount()

Number of transformations counted by this result.

int64 count = 1;

Returns
TypeDescription
long

The count.

getDefaultInstanceForType()

public TransformationSummary.SummaryResult getDefaultInstanceForType()
Returns
TypeDescription
TransformationSummary.SummaryResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDetails()

public String getDetails()

A place for warnings or errors to show up if a transformation didn't work as expected.

string details = 3;

Returns
TypeDescription
String

The details.

getDetailsBytes()

public ByteString getDetailsBytes()

A place for warnings or errors to show up if a transformation didn't work as expected.

string details = 3;

Returns
TypeDescription
ByteString

The bytes for details.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TransformationSummary.SummaryResult other)

public TransformationSummary.SummaryResult.Builder mergeFrom(TransformationSummary.SummaryResult other)
Parameter
NameDescription
otherTransformationSummary.SummaryResult
Returns
TypeDescription
TransformationSummary.SummaryResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCode(TransformationSummary.TransformationResultCode value)

public TransformationSummary.SummaryResult.Builder setCode(TransformationSummary.TransformationResultCode value)

Outcome of the transformation.

.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode code = 2;

Parameter
NameDescription
valueTransformationSummary.TransformationResultCode

The code to set.

Returns
TypeDescription
TransformationSummary.SummaryResult.Builder

This builder for chaining.

setCodeValue(int value)

public TransformationSummary.SummaryResult.Builder setCodeValue(int value)

Outcome of the transformation.

.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode code = 2;

Parameter
NameDescription
valueint

The enum numeric value on the wire for code to set.

Returns
TypeDescription
TransformationSummary.SummaryResult.Builder

This builder for chaining.

setCount(long value)

public TransformationSummary.SummaryResult.Builder setCount(long value)

Number of transformations counted by this result.

int64 count = 1;

Parameter
NameDescription
valuelong

The count to set.

Returns
TypeDescription
TransformationSummary.SummaryResult.Builder

This builder for chaining.

setDetails(String value)

public TransformationSummary.SummaryResult.Builder setDetails(String value)

A place for warnings or errors to show up if a transformation didn't work as expected.

string details = 3;

Parameter
NameDescription
valueString

The details to set.

Returns
TypeDescription
TransformationSummary.SummaryResult.Builder

This builder for chaining.

setDetailsBytes(ByteString value)

public TransformationSummary.SummaryResult.Builder setDetailsBytes(ByteString value)

A place for warnings or errors to show up if a transformation didn't work as expected.

string details = 3;

Parameter
NameDescription
valueByteString

The bytes for details to set.

Returns
TypeDescription
TransformationSummary.SummaryResult.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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