Class IntegerArray.Builder (0.28.0)

public static final class IntegerArray.Builder extends GeneratedMessageV3.Builder<IntegerArray.Builder> implements IntegerArrayOrBuilder

Integer values.

Protobuf type google.cloud.contentwarehouse.v1.IntegerArray

Static Methods

getDescriptor()

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

Methods

addAllValues(Iterable<? extends Integer> values)

public IntegerArray.Builder addAllValues(Iterable<? extends Integer> values)

List of integer values.

repeated int32 values = 1;

Parameter
NameDescription
valuesIterable<? extends java.lang.Integer>

The values to add.

Returns
TypeDescription
IntegerArray.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addValues(int value)

public IntegerArray.Builder addValues(int value)

List of integer values.

repeated int32 values = 1;

Parameter
NameDescription
valueint

The values to add.

Returns
TypeDescription
IntegerArray.Builder

This builder for chaining.

build()

public IntegerArray build()
Returns
TypeDescription
IntegerArray

buildPartial()

public IntegerArray buildPartial()
Returns
TypeDescription
IntegerArray

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValues()

public IntegerArray.Builder clearValues()

List of integer values.

repeated int32 values = 1;

Returns
TypeDescription
IntegerArray.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public IntegerArray getDefaultInstanceForType()
Returns
TypeDescription
IntegerArray

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getValues(int index)

public int getValues(int index)

List of integer values.

repeated int32 values = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
int

The values at the given index.

getValuesCount()

public int getValuesCount()

List of integer values.

repeated int32 values = 1;

Returns
TypeDescription
int

The count of values.

getValuesList()

public List<Integer> getValuesList()

List of integer values.

repeated int32 values = 1;

Returns
TypeDescription
List<Integer>

A list containing the values.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(IntegerArray other)

public IntegerArray.Builder mergeFrom(IntegerArray other)
Parameter
NameDescription
otherIntegerArray
Returns
TypeDescription
IntegerArray.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValues(int index, int value)

public IntegerArray.Builder setValues(int index, int value)

List of integer values.

repeated int32 values = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

The values to set.

Returns
TypeDescription
IntegerArray.Builder

This builder for chaining.