- 2.57.0 (latest)
- 2.56.0
- 2.55.0
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.5
- 2.6.2
- 2.5.1
- 2.4.3
- 2.3.1
- 2.2.1
- 2.1.9
public static final class DocumentSchema.EntityType.Builder extends GeneratedMessageV3.Builder<DocumentSchema.EntityType.Builder> implements DocumentSchema.EntityTypeOrBuilder
EntityType is the wrapper of a label of the corresponding model with detailed attributes and limitations for entity-based processors. Multiple types can also compose a dependency tree to represent nested types.
Protobuf type google.cloud.documentai.v1.DocumentSchema.EntityType
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DocumentSchema.EntityType.BuilderImplements
DocumentSchema.EntityTypeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllBaseTypes(Iterable<String> values)
public DocumentSchema.EntityType.Builder addAllBaseTypes(Iterable<String> values)
The entity type that this type is derived from. For now, one and only one should be set.
repeated string base_types = 2;
Name | Description |
values | Iterable<String> The baseTypes to add. |
Type | Description |
DocumentSchema.EntityType.Builder | This builder for chaining. |
addAllProperties(Iterable<? extends DocumentSchema.EntityType.Property> values)
public DocumentSchema.EntityType.Builder addAllProperties(Iterable<? extends DocumentSchema.EntityType.Property> values)
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;
Name | Description |
values | Iterable<? extends com.google.cloud.documentai.v1.DocumentSchema.EntityType.Property> |
Type | Description |
DocumentSchema.EntityType.Builder |
addBaseTypes(String value)
public DocumentSchema.EntityType.Builder addBaseTypes(String value)
The entity type that this type is derived from. For now, one and only one should be set.
repeated string base_types = 2;
Name | Description |
value | String The baseTypes to add. |
Type | Description |
DocumentSchema.EntityType.Builder | This builder for chaining. |
addBaseTypesBytes(ByteString value)
public DocumentSchema.EntityType.Builder addBaseTypesBytes(ByteString value)
The entity type that this type is derived from. For now, one and only one should be set.
repeated string base_types = 2;
Name | Description |
value | ByteString The bytes of the baseTypes to add. |
Type | Description |
DocumentSchema.EntityType.Builder | This builder for chaining. |
addProperties(DocumentSchema.EntityType.Property value)
public DocumentSchema.EntityType.Builder addProperties(DocumentSchema.EntityType.Property value)
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;
Name | Description |
value | DocumentSchema.EntityType.Property |
Type | Description |
DocumentSchema.EntityType.Builder |
addProperties(DocumentSchema.EntityType.Property.Builder builderForValue)
public DocumentSchema.EntityType.Builder addProperties(DocumentSchema.EntityType.Property.Builder builderForValue)
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;
Name | Description |
builderForValue | DocumentSchema.EntityType.Property.Builder |
Type | Description |
DocumentSchema.EntityType.Builder |
addProperties(int index, DocumentSchema.EntityType.Property value)
public DocumentSchema.EntityType.Builder addProperties(int index, DocumentSchema.EntityType.Property value)
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;
Name | Description |
index | int |
value | DocumentSchema.EntityType.Property |
Type | Description |
DocumentSchema.EntityType.Builder |
addProperties(int index, DocumentSchema.EntityType.Property.Builder builderForValue)
public DocumentSchema.EntityType.Builder addProperties(int index, DocumentSchema.EntityType.Property.Builder builderForValue)
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;
Name | Description |
index | int |
builderForValue | DocumentSchema.EntityType.Property.Builder |
Type | Description |
DocumentSchema.EntityType.Builder |
addPropertiesBuilder()
public DocumentSchema.EntityType.Property.Builder addPropertiesBuilder()
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;
Type | Description |
DocumentSchema.EntityType.Property.Builder |
addPropertiesBuilder(int index)
public DocumentSchema.EntityType.Property.Builder addPropertiesBuilder(int index)
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;
Name | Description |
index | int |
Type | Description |
DocumentSchema.EntityType.Property.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DocumentSchema.EntityType.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
DocumentSchema.EntityType.Builder |
build()
public DocumentSchema.EntityType build()
Type | Description |
DocumentSchema.EntityType |
buildPartial()
public DocumentSchema.EntityType buildPartial()
Type | Description |
DocumentSchema.EntityType |
clear()
public DocumentSchema.EntityType.Builder clear()
Type | Description |
DocumentSchema.EntityType.Builder |
clearBaseTypes()
public DocumentSchema.EntityType.Builder clearBaseTypes()
The entity type that this type is derived from. For now, one and only one should be set.
repeated string base_types = 2;
Type | Description |
DocumentSchema.EntityType.Builder | This builder for chaining. |
clearDisplayName()
public DocumentSchema.EntityType.Builder clearDisplayName()
User defined name for the type.
string display_name = 13;
Type | Description |
DocumentSchema.EntityType.Builder | This builder for chaining. |
clearEnumValues()
public DocumentSchema.EntityType.Builder clearEnumValues()
If specified, lists all the possible values for this entity. This
should not be more than a handful of values. If the number of values
is >10 or could change frequently use the EntityType.value_ontology
field and specify a list of all possible values in a value ontology
file.
.google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues enum_values = 14;
Type | Description |
DocumentSchema.EntityType.Builder |
clearField(Descriptors.FieldDescriptor field)
public DocumentSchema.EntityType.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
DocumentSchema.EntityType.Builder |
clearName()
public DocumentSchema.EntityType.Builder clearName()
Name of the type. It must be unique within the schema file and cannot be a 'Common Type'. Besides that we use the following naming conventions:
- use
snake_casing
- name matching is case-sensitive
- Maximum 64 characters.
- Must start with a letter.
- Allowed characters: ASCII letters
[a-z0-9_-]
. (For backward compatibility internal infrastructure and tooling can handle any ascii character) - The
/
is sometimes used to denote a property of a type. For exampleline_item/amount
. This convention is deprecated, but will still be honored for backward compatibility.
string name = 1;
Type | Description |
DocumentSchema.EntityType.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public DocumentSchema.EntityType.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
DocumentSchema.EntityType.Builder |
clearProperties()
public DocumentSchema.EntityType.Builder clearProperties()
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;
Type | Description |
DocumentSchema.EntityType.Builder |
clearValueSource()
public DocumentSchema.EntityType.Builder clearValueSource()
Type | Description |
DocumentSchema.EntityType.Builder |
clone()
public DocumentSchema.EntityType.Builder clone()
Type | Description |
DocumentSchema.EntityType.Builder |
getBaseTypes(int index)
public String getBaseTypes(int index)
The entity type that this type is derived from. For now, one and only one should be set.
repeated string base_types = 2;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The baseTypes at the given index. |
getBaseTypesBytes(int index)
public ByteString getBaseTypesBytes(int index)
The entity type that this type is derived from. For now, one and only one should be set.
repeated string base_types = 2;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the baseTypes at the given index. |
getBaseTypesCount()
public int getBaseTypesCount()
The entity type that this type is derived from. For now, one and only one should be set.
repeated string base_types = 2;
Type | Description |
int | The count of baseTypes. |
getBaseTypesList()
public ProtocolStringList getBaseTypesList()
The entity type that this type is derived from. For now, one and only one should be set.
repeated string base_types = 2;
Type | Description |
ProtocolStringList | A list containing the baseTypes. |
getDefaultInstanceForType()
public DocumentSchema.EntityType getDefaultInstanceForType()
Type | Description |
DocumentSchema.EntityType |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDisplayName()
public String getDisplayName()
User defined name for the type.
string display_name = 13;
Type | Description |
String | The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
User defined name for the type.
string display_name = 13;
Type | Description |
ByteString | The bytes for displayName. |
getEnumValues()
public DocumentSchema.EntityType.EnumValues getEnumValues()
If specified, lists all the possible values for this entity. This
should not be more than a handful of values. If the number of values
is >10 or could change frequently use the EntityType.value_ontology
field and specify a list of all possible values in a value ontology
file.
.google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues enum_values = 14;
Type | Description |
DocumentSchema.EntityType.EnumValues | The enumValues. |
getEnumValuesBuilder()
public DocumentSchema.EntityType.EnumValues.Builder getEnumValuesBuilder()
If specified, lists all the possible values for this entity. This
should not be more than a handful of values. If the number of values
is >10 or could change frequently use the EntityType.value_ontology
field and specify a list of all possible values in a value ontology
file.
.google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues enum_values = 14;
Type | Description |
DocumentSchema.EntityType.EnumValues.Builder |
getEnumValuesOrBuilder()
public DocumentSchema.EntityType.EnumValuesOrBuilder getEnumValuesOrBuilder()
If specified, lists all the possible values for this entity. This
should not be more than a handful of values. If the number of values
is >10 or could change frequently use the EntityType.value_ontology
field and specify a list of all possible values in a value ontology
file.
.google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues enum_values = 14;
Type | Description |
DocumentSchema.EntityType.EnumValuesOrBuilder |
getName()
public String getName()
Name of the type. It must be unique within the schema file and cannot be a 'Common Type'. Besides that we use the following naming conventions:
- use
snake_casing
- name matching is case-sensitive
- Maximum 64 characters.
- Must start with a letter.
- Allowed characters: ASCII letters
[a-z0-9_-]
. (For backward compatibility internal infrastructure and tooling can handle any ascii character) - The
/
is sometimes used to denote a property of a type. For exampleline_item/amount
. This convention is deprecated, but will still be honored for backward compatibility.
string name = 1;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Name of the type. It must be unique within the schema file and cannot be a 'Common Type'. Besides that we use the following naming conventions:
- use
snake_casing
- name matching is case-sensitive
- Maximum 64 characters.
- Must start with a letter.
- Allowed characters: ASCII letters
[a-z0-9_-]
. (For backward compatibility internal infrastructure and tooling can handle any ascii character) - The
/
is sometimes used to denote a property of a type. For exampleline_item/amount
. This convention is deprecated, but will still be honored for backward compatibility.
string name = 1;
Type | Description |
ByteString | The bytes for name. |
getProperties(int index)
public DocumentSchema.EntityType.Property getProperties(int index)
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;
Name | Description |
index | int |
Type | Description |
DocumentSchema.EntityType.Property |
getPropertiesBuilder(int index)
public DocumentSchema.EntityType.Property.Builder getPropertiesBuilder(int index)
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;
Name | Description |
index | int |
Type | Description |
DocumentSchema.EntityType.Property.Builder |
getPropertiesBuilderList()
public List<DocumentSchema.EntityType.Property.Builder> getPropertiesBuilderList()
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;
Type | Description |
List<Builder> |
getPropertiesCount()
public int getPropertiesCount()
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;
Type | Description |
int |
getPropertiesList()
public List<DocumentSchema.EntityType.Property> getPropertiesList()
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;
Type | Description |
List<Property> |
getPropertiesOrBuilder(int index)
public DocumentSchema.EntityType.PropertyOrBuilder getPropertiesOrBuilder(int index)
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;
Name | Description |
index | int |
Type | Description |
DocumentSchema.EntityType.PropertyOrBuilder |
getPropertiesOrBuilderList()
public List<? extends DocumentSchema.EntityType.PropertyOrBuilder> getPropertiesOrBuilderList()
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;
Type | Description |
List<? extends com.google.cloud.documentai.v1.DocumentSchema.EntityType.PropertyOrBuilder> |
getValueSourceCase()
public DocumentSchema.EntityType.ValueSourceCase getValueSourceCase()
Type | Description |
DocumentSchema.EntityType.ValueSourceCase |
hasEnumValues()
public boolean hasEnumValues()
If specified, lists all the possible values for this entity. This
should not be more than a handful of values. If the number of values
is >10 or could change frequently use the EntityType.value_ontology
field and specify a list of all possible values in a value ontology
file.
.google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues enum_values = 14;
Type | Description |
boolean | Whether the enumValues field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeEnumValues(DocumentSchema.EntityType.EnumValues value)
public DocumentSchema.EntityType.Builder mergeEnumValues(DocumentSchema.EntityType.EnumValues value)
If specified, lists all the possible values for this entity. This
should not be more than a handful of values. If the number of values
is >10 or could change frequently use the EntityType.value_ontology
field and specify a list of all possible values in a value ontology
file.
.google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues enum_values = 14;
Name | Description |
value | DocumentSchema.EntityType.EnumValues |
Type | Description |
DocumentSchema.EntityType.Builder |
mergeFrom(DocumentSchema.EntityType other)
public DocumentSchema.EntityType.Builder mergeFrom(DocumentSchema.EntityType other)
Name | Description |
other | DocumentSchema.EntityType |
Type | Description |
DocumentSchema.EntityType.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DocumentSchema.EntityType.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
DocumentSchema.EntityType.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public DocumentSchema.EntityType.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
DocumentSchema.EntityType.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DocumentSchema.EntityType.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
DocumentSchema.EntityType.Builder |
removeProperties(int index)
public DocumentSchema.EntityType.Builder removeProperties(int index)
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;
Name | Description |
index | int |
Type | Description |
DocumentSchema.EntityType.Builder |
setBaseTypes(int index, String value)
public DocumentSchema.EntityType.Builder setBaseTypes(int index, String value)
The entity type that this type is derived from. For now, one and only one should be set.
repeated string base_types = 2;
Name | Description |
index | int The index to set the value at. |
value | String The baseTypes to set. |
Type | Description |
DocumentSchema.EntityType.Builder | This builder for chaining. |
setDisplayName(String value)
public DocumentSchema.EntityType.Builder setDisplayName(String value)
User defined name for the type.
string display_name = 13;
Name | Description |
value | String The displayName to set. |
Type | Description |
DocumentSchema.EntityType.Builder | This builder for chaining. |
setDisplayNameBytes(ByteString value)
public DocumentSchema.EntityType.Builder setDisplayNameBytes(ByteString value)
User defined name for the type.
string display_name = 13;
Name | Description |
value | ByteString The bytes for displayName to set. |
Type | Description |
DocumentSchema.EntityType.Builder | This builder for chaining. |
setEnumValues(DocumentSchema.EntityType.EnumValues value)
public DocumentSchema.EntityType.Builder setEnumValues(DocumentSchema.EntityType.EnumValues value)
If specified, lists all the possible values for this entity. This
should not be more than a handful of values. If the number of values
is >10 or could change frequently use the EntityType.value_ontology
field and specify a list of all possible values in a value ontology
file.
.google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues enum_values = 14;
Name | Description |
value | DocumentSchema.EntityType.EnumValues |
Type | Description |
DocumentSchema.EntityType.Builder |
setEnumValues(DocumentSchema.EntityType.EnumValues.Builder builderForValue)
public DocumentSchema.EntityType.Builder setEnumValues(DocumentSchema.EntityType.EnumValues.Builder builderForValue)
If specified, lists all the possible values for this entity. This
should not be more than a handful of values. If the number of values
is >10 or could change frequently use the EntityType.value_ontology
field and specify a list of all possible values in a value ontology
file.
.google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues enum_values = 14;
Name | Description |
builderForValue | DocumentSchema.EntityType.EnumValues.Builder |
Type | Description |
DocumentSchema.EntityType.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public DocumentSchema.EntityType.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
DocumentSchema.EntityType.Builder |
setName(String value)
public DocumentSchema.EntityType.Builder setName(String value)
Name of the type. It must be unique within the schema file and cannot be a 'Common Type'. Besides that we use the following naming conventions:
- use
snake_casing
- name matching is case-sensitive
- Maximum 64 characters.
- Must start with a letter.
- Allowed characters: ASCII letters
[a-z0-9_-]
. (For backward compatibility internal infrastructure and tooling can handle any ascii character) - The
/
is sometimes used to denote a property of a type. For exampleline_item/amount
. This convention is deprecated, but will still be honored for backward compatibility.
string name = 1;
Name | Description |
value | String The name to set. |
Type | Description |
DocumentSchema.EntityType.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public DocumentSchema.EntityType.Builder setNameBytes(ByteString value)
Name of the type. It must be unique within the schema file and cannot be a 'Common Type'. Besides that we use the following naming conventions:
- use
snake_casing
- name matching is case-sensitive
- Maximum 64 characters.
- Must start with a letter.
- Allowed characters: ASCII letters
[a-z0-9_-]
. (For backward compatibility internal infrastructure and tooling can handle any ascii character) - The
/
is sometimes used to denote a property of a type. For exampleline_item/amount
. This convention is deprecated, but will still be honored for backward compatibility.
string name = 1;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
DocumentSchema.EntityType.Builder | This builder for chaining. |
setProperties(int index, DocumentSchema.EntityType.Property value)
public DocumentSchema.EntityType.Builder setProperties(int index, DocumentSchema.EntityType.Property value)
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;
Name | Description |
index | int |
value | DocumentSchema.EntityType.Property |
Type | Description |
DocumentSchema.EntityType.Builder |
setProperties(int index, DocumentSchema.EntityType.Property.Builder builderForValue)
public DocumentSchema.EntityType.Builder setProperties(int index, DocumentSchema.EntityType.Property.Builder builderForValue)
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;
Name | Description |
index | int |
builderForValue | DocumentSchema.EntityType.Property.Builder |
Type | Description |
DocumentSchema.EntityType.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DocumentSchema.EntityType.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
DocumentSchema.EntityType.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final DocumentSchema.EntityType.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
DocumentSchema.EntityType.Builder |