Class BoolArray.Builder (3.15.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
TypeDescription
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
NameDescription
valuesIterable<? extends java.lang.Boolean>

The values to add.

Returns
TypeDescription
BoolArray.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addValues(boolean value)

public BoolArray.Builder addValues(boolean value)

A list of bool values.

repeated bool values = 1;

Parameter
NameDescription
valueboolean

The values to add.

Returns
TypeDescription
BoolArray.Builder

This builder for chaining.

build()

public BoolArray build()
Returns
TypeDescription
BoolArray

buildPartial()

public BoolArray buildPartial()
Returns
TypeDescription
BoolArray

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValues()

public BoolArray.Builder clearValues()

A list of bool values.

repeated bool values = 1;

Returns
TypeDescription
BoolArray.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public BoolArray getDefaultInstanceForType()
Returns
TypeDescription
BoolArray

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getValues(int index)

public boolean getValues(int index)

A list of bool values.

repeated bool values = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
boolean

The values at the given index.

getValuesCount()

public int getValuesCount()

A list of bool values.

repeated bool values = 1;

Returns
TypeDescription
int

The count of values.

getValuesList()

public List<Boolean> getValuesList()

A list of bool values.

repeated bool values = 1;

Returns
TypeDescription
List<Boolean>

A list containing the values.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BoolArray other)

public BoolArray.Builder mergeFrom(BoolArray other)
Parameter
NameDescription
otherBoolArray
Returns
TypeDescription
BoolArray.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final BoolArray.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueboolean

The values to set.

Returns
TypeDescription
BoolArray.Builder

This builder for chaining.