Class StringValueBatch.Builder (3.97.0)

public static final class StringValueBatch.Builder extends GeneratedMessage.Builder<StringValueBatch.Builder> implements StringValueBatchOrBuilder

Represents a batch of string values to inspect or redact.

Protobuf type google.privacy.dlp.v2.StringValueBatch

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllValues(Iterable<String> values)

public StringValueBatch.Builder addAllValues(Iterable<String> values)

Optional. Represents string data to inspect or redact.

repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The values to add.

Returns
Type Description
StringValueBatch.Builder

This builder for chaining.

addValues(String value)

public StringValueBatch.Builder addValues(String value)

Optional. Represents string data to inspect or redact.

repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The values to add.

Returns
Type Description
StringValueBatch.Builder

This builder for chaining.

addValuesBytes(ByteString value)

public StringValueBatch.Builder addValuesBytes(ByteString value)

Optional. Represents string data to inspect or redact.

repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the values to add.

Returns
Type Description
StringValueBatch.Builder

This builder for chaining.

build()

public StringValueBatch build()
Returns
Type Description
StringValueBatch

buildPartial()

public StringValueBatch buildPartial()
Returns
Type Description
StringValueBatch

clear()

public StringValueBatch.Builder clear()
Returns
Type Description
StringValueBatch.Builder
Overrides

clearValues()

public StringValueBatch.Builder clearValues()

Optional. Represents string data to inspect or redact.

repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StringValueBatch.Builder

This builder for chaining.

getDefaultInstanceForType()

public StringValueBatch getDefaultInstanceForType()
Returns
Type Description
StringValueBatch

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getValues(int index)

public String getValues(int index)

Optional. Represents string data to inspect or redact.

repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The values at the given index.

getValuesBytes(int index)

public ByteString getValuesBytes(int index)

Optional. Represents string data to inspect or redact.

repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the values at the given index.

getValuesCount()

public int getValuesCount()

Optional. Represents string data to inspect or redact.

repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of values.

getValuesList()

public ProtocolStringList getValuesList()

Optional. Represents string data to inspect or redact.

repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the values.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StringValueBatch other)

public StringValueBatch.Builder mergeFrom(StringValueBatch other)
Parameter
Name Description
other StringValueBatch
Returns
Type Description
StringValueBatch.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StringValueBatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StringValueBatch.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StringValueBatch.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StringValueBatch.Builder
Overrides

setValues(int index, String value)

public StringValueBatch.Builder setValues(int index, String value)

Optional. Represents string data to inspect or redact.

repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The values to set.

Returns
Type Description
StringValueBatch.Builder

This builder for chaining.