Class EnumArray.Builder (0.24.0)

public static final class EnumArray.Builder extends GeneratedMessageV3.Builder<EnumArray.Builder> implements EnumArrayOrBuilder

Enum values.

Protobuf type google.cloud.contentwarehouse.v1.EnumArray

Implements

EnumArrayOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllValues(Iterable<String> values)

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

List of enum values.

repeated string values = 1;

Parameter
NameDescription
valuesIterable<String>

The values to add.

Returns
TypeDescription
EnumArray.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addValues(String value)

public EnumArray.Builder addValues(String value)

List of enum values.

repeated string values = 1;

Parameter
NameDescription
valueString

The values to add.

Returns
TypeDescription
EnumArray.Builder

This builder for chaining.

addValuesBytes(ByteString value)

public EnumArray.Builder addValuesBytes(ByteString value)

List of enum values.

repeated string values = 1;

Parameter
NameDescription
valueByteString

The bytes of the values to add.

Returns
TypeDescription
EnumArray.Builder

This builder for chaining.

build()

public EnumArray build()
Returns
TypeDescription
EnumArray

buildPartial()

public EnumArray buildPartial()
Returns
TypeDescription
EnumArray

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValues()

public EnumArray.Builder clearValues()

List of enum values.

repeated string values = 1;

Returns
TypeDescription
EnumArray.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public EnumArray getDefaultInstanceForType()
Returns
TypeDescription
EnumArray

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getValues(int index)

public String getValues(int index)

List of enum values.

repeated string values = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The values at the given index.

getValuesBytes(int index)

public ByteString getValuesBytes(int index)

List of enum values.

repeated string values = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the values at the given index.

getValuesCount()

public int getValuesCount()

List of enum values.

repeated string values = 1;

Returns
TypeDescription
int

The count of values.

getValuesList()

public ProtocolStringList getValuesList()

List of enum values.

repeated string values = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the values.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(EnumArray other)

public EnumArray.Builder mergeFrom(EnumArray other)
Parameter
NameDescription
otherEnumArray
Returns
TypeDescription
EnumArray.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValues(int index, String value)

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

List of enum values.

repeated string values = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The values to set.

Returns
TypeDescription
EnumArray.Builder

This builder for chaining.