Class DocumentSchema.EntityType.EnumValues.Builder (2.7.2)

public static final class DocumentSchema.EntityType.EnumValues.Builder extends GeneratedMessageV3.Builder<DocumentSchema.EntityType.EnumValues.Builder> implements DocumentSchema.EntityType.EnumValuesOrBuilder

Defines the a list of enum values.

Protobuf type google.cloud.documentai.v1beta3.DocumentSchema.EntityType.EnumValues

Static Methods

getDescriptor()

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

Methods

addAllValues(Iterable<String> values)

public DocumentSchema.EntityType.EnumValues.Builder addAllValues(Iterable<String> values)

The individual values that this enum values type can include.

repeated string values = 1;

Parameter
NameDescription
valuesIterable<String>

The values to add.

Returns
TypeDescription
DocumentSchema.EntityType.EnumValues.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addValues(String value)

public DocumentSchema.EntityType.EnumValues.Builder addValues(String value)

The individual values that this enum values type can include.

repeated string values = 1;

Parameter
NameDescription
valueString

The values to add.

Returns
TypeDescription
DocumentSchema.EntityType.EnumValues.Builder

This builder for chaining.

addValuesBytes(ByteString value)

public DocumentSchema.EntityType.EnumValues.Builder addValuesBytes(ByteString value)

The individual values that this enum values type can include.

repeated string values = 1;

Parameter
NameDescription
valueByteString

The bytes of the values to add.

Returns
TypeDescription
DocumentSchema.EntityType.EnumValues.Builder

This builder for chaining.

build()

public DocumentSchema.EntityType.EnumValues build()
Returns
TypeDescription
DocumentSchema.EntityType.EnumValues

buildPartial()

public DocumentSchema.EntityType.EnumValues buildPartial()
Returns
TypeDescription
DocumentSchema.EntityType.EnumValues

clear()

public DocumentSchema.EntityType.EnumValues.Builder clear()
Returns
TypeDescription
DocumentSchema.EntityType.EnumValues.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DocumentSchema.EntityType.EnumValues.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DocumentSchema.EntityType.EnumValues.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DocumentSchema.EntityType.EnumValues.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DocumentSchema.EntityType.EnumValues.Builder
Overrides

clearValues()

public DocumentSchema.EntityType.EnumValues.Builder clearValues()

The individual values that this enum values type can include.

repeated string values = 1;

Returns
TypeDescription
DocumentSchema.EntityType.EnumValues.Builder

This builder for chaining.

clone()

public DocumentSchema.EntityType.EnumValues.Builder clone()
Returns
TypeDescription
DocumentSchema.EntityType.EnumValues.Builder
Overrides

getDefaultInstanceForType()

public DocumentSchema.EntityType.EnumValues getDefaultInstanceForType()
Returns
TypeDescription
DocumentSchema.EntityType.EnumValues

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getValues(int index)

public String getValues(int index)

The individual values that this enum values type can include.

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)

The individual values that this enum values type can include.

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

The individual values that this enum values type can include.

repeated string values = 1;

Returns
TypeDescription
int

The count of values.

getValuesList()

public ProtocolStringList getValuesList()

The individual values that this enum values type can include.

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(DocumentSchema.EntityType.EnumValues other)

public DocumentSchema.EntityType.EnumValues.Builder mergeFrom(DocumentSchema.EntityType.EnumValues other)
Parameter
NameDescription
otherDocumentSchema.EntityType.EnumValues
Returns
TypeDescription
DocumentSchema.EntityType.EnumValues.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DocumentSchema.EntityType.EnumValues.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DocumentSchema.EntityType.EnumValues.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DocumentSchema.EntityType.EnumValues.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DocumentSchema.EntityType.EnumValues.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final DocumentSchema.EntityType.EnumValues.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DocumentSchema.EntityType.EnumValues.Builder
Overrides

setValues(int index, String value)

public DocumentSchema.EntityType.EnumValues.Builder setValues(int index, String value)

The individual values that this enum values type can include.

repeated string values = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The values to set.

Returns
TypeDescription
DocumentSchema.EntityType.EnumValues.Builder

This builder for chaining.