Class BoolArray.Builder (3.43.0)

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

A list of boolean values.

Protobuf type google.cloud.aiplatform.v1.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.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BoolArray.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BoolArray.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public BoolArray.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BoolArray.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BoolArray.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BoolArray.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BoolArray.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public BoolArray.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BoolArray.Builder
Overrides

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

public BoolArray.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BoolArray.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BoolArray.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.