Class BoolArray.Builder (3.84.0)

public static final class BoolArray.Builder extends GeneratedMessage.Builder<BoolArray.Builder> implements BoolArrayOrBuilder

A list of boolean values.

Protobuf type google.cloud.aiplatform.v1beta1.BoolArray

Implements

BoolArrayOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllValues(Iterable<? extends Boolean> values)

public BoolArray.Builder addAllValues(Iterable<? extends Boolean> values)

A list of bool values.

repeated bool values = 1;

Parameter
Name Description
values Iterable<? extends java.lang.Boolean>

The values to add.

Returns
Type Description
BoolArray.Builder

This builder for chaining.

addValues(boolean value)

public BoolArray.Builder addValues(boolean value)

A list of bool values.

repeated bool values = 1;

Parameter
Name Description
value boolean

The values to add.

Returns
Type Description
BoolArray.Builder

This builder for chaining.

build()

public BoolArray build()
Returns
Type Description
BoolArray

buildPartial()

public BoolArray buildPartial()
Returns
Type Description
BoolArray

clear()

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

clearValues()

public BoolArray.Builder clearValues()

A list of bool values.

repeated bool values = 1;

Returns
Type Description
BoolArray.Builder

This builder for chaining.

getDefaultInstanceForType()

public BoolArray getDefaultInstanceForType()
Returns
Type Description
BoolArray

getDescriptorForType()

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

getValues(int index)

public boolean getValues(int index)

A list of bool values.

repeated bool values = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
boolean

The values at the given index.

getValuesCount()

public int getValuesCount()

A list of bool values.

repeated bool values = 1;

Returns
Type Description
int

The count of values.

getValuesList()

public List<Boolean> getValuesList()

A list of bool values.

repeated bool values = 1;

Returns
Type Description
List<Boolean>

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(BoolArray other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setValues(int index, boolean value)

public BoolArray.Builder setValues(int index, boolean value)

A list of bool values.

repeated bool values = 1;

Parameters
Name Description
index int

The index to set the value at.

value boolean

The values to set.

Returns
Type Description
BoolArray.Builder

This builder for chaining.