Package com.google.cloud.documentai.v1
Class DocumentSchema.EntityType.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DocumentSchema.EntityType.Builder>
com.google.cloud.documentai.v1.DocumentSchema.EntityType.Builder
- All Implemented Interfaces:
DocumentSchema.EntityTypeOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DocumentSchema.EntityType
public static final class DocumentSchema.EntityType.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllBaseTypes(Iterable<String> values) The entity type that this type is derived from.addAllProperties(Iterable<? extends DocumentSchema.EntityType.Property> values) Description the nested structure, or composition of an entity.addBaseTypes(String value) The entity type that this type is derived from.addBaseTypesBytes(com.google.protobuf.ByteString value) The entity type that this type is derived from.addProperties(int index, DocumentSchema.EntityType.Property value) Description the nested structure, or composition of an entity.addProperties(int index, DocumentSchema.EntityType.Property.Builder builderForValue) Description the nested structure, or composition of an entity.Description the nested structure, or composition of an entity.addProperties(DocumentSchema.EntityType.Property.Builder builderForValue) Description the nested structure, or composition of an entity.Description the nested structure, or composition of an entity.addPropertiesBuilder(int index) Description the nested structure, or composition of an entity.build()clear()The entity type that this type is derived from.User defined name for the type.If specified, lists all the possible values for this entity.Name of the type.Description the nested structure, or composition of an entity.getBaseTypes(int index) The entity type that this type is derived from.com.google.protobuf.ByteStringgetBaseTypesBytes(int index) The entity type that this type is derived from.intThe entity type that this type is derived from.com.google.protobuf.ProtocolStringListThe entity type that this type is derived from.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorUser defined name for the type.com.google.protobuf.ByteStringUser defined name for the type.If specified, lists all the possible values for this entity.If specified, lists all the possible values for this entity.If specified, lists all the possible values for this entity.getName()Name of the type.com.google.protobuf.ByteStringName of the type.getProperties(int index) Description the nested structure, or composition of an entity.getPropertiesBuilder(int index) Description the nested structure, or composition of an entity.Description the nested structure, or composition of an entity.intDescription the nested structure, or composition of an entity.Description the nested structure, or composition of an entity.getPropertiesOrBuilder(int index) Description the nested structure, or composition of an entity.List<? extends DocumentSchema.EntityType.PropertyOrBuilder>Description the nested structure, or composition of an entity.booleanIf specified, lists all the possible values for this entity.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanIf specified, lists all the possible values for this entity.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeProperties(int index) Description the nested structure, or composition of an entity.setBaseTypes(int index, String value) The entity type that this type is derived from.setDisplayName(String value) User defined name for the type.setDisplayNameBytes(com.google.protobuf.ByteString value) User defined name for the type.If specified, lists all the possible values for this entity.setEnumValues(DocumentSchema.EntityType.EnumValues.Builder builderForValue) If specified, lists all the possible values for this entity.Name of the type.setNameBytes(com.google.protobuf.ByteString value) Name of the type.setProperties(int index, DocumentSchema.EntityType.Property value) Description the nested structure, or composition of an entity.setProperties(int index, DocumentSchema.EntityType.Property.Builder builderForValue) Description the nested structure, or composition of an entity.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DocumentSchema.EntityType.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DocumentSchema.EntityType.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DocumentSchema.EntityType.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DocumentSchema.EntityType.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DocumentSchema.EntityType.Builder>
-
mergeFrom
public DocumentSchema.EntityType.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DocumentSchema.EntityType.Builder>- Throws:
IOException
-
getValueSourceCase
- Specified by:
getValueSourceCasein interfaceDocumentSchema.EntityTypeOrBuilder
-
clearValueSource
-
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;- Specified by:
hasEnumValuesin interfaceDocumentSchema.EntityTypeOrBuilder- Returns:
- Whether the enumValues field is set.
-
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;- Specified by:
getEnumValuesin interfaceDocumentSchema.EntityTypeOrBuilder- Returns:
- The enumValues.
-
setEnumValues
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; -
setEnumValues
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; -
mergeEnumValues
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; -
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; -
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; -
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;- Specified by:
getEnumValuesOrBuilderin interfaceDocumentSchema.EntityTypeOrBuilder
-
getDisplayName
User defined name for the type.
string display_name = 13;- Specified by:
getDisplayNamein interfaceDocumentSchema.EntityTypeOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()User defined name for the type.
string display_name = 13;- Specified by:
getDisplayNameBytesin interfaceDocumentSchema.EntityTypeOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
User defined name for the type.
string display_name = 13;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
User defined name for the type.
string display_name = 13;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
User defined name for the type.
string display_name = 13;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getName
Name of the type. It must be unique within the schema file and cannot be a "Common Type". The following naming conventions are used: - 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 example `line_item/amount`. This convention is deprecated, but will still be honored for backward compatibility.
string name = 1;- Specified by:
getNamein interfaceDocumentSchema.EntityTypeOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of the type. It must be unique within the schema file and cannot be a "Common Type". The following naming conventions are used: - 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 example `line_item/amount`. This convention is deprecated, but will still be honored for backward compatibility.
string name = 1;- Specified by:
getNameBytesin interfaceDocumentSchema.EntityTypeOrBuilder- Returns:
- The bytes for name.
-
setName
Name of the type. It must be unique within the schema file and cannot be a "Common Type". The following naming conventions are used: - 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 example `line_item/amount`. This convention is deprecated, but will still be honored for backward compatibility.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of the type. It must be unique within the schema file and cannot be a "Common Type". The following naming conventions are used: - 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 example `line_item/amount`. This convention is deprecated, but will still be honored for backward compatibility.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
Name of the type. It must be unique within the schema file and cannot be a "Common Type". The following naming conventions are used: - 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 example `line_item/amount`. This convention is deprecated, but will still be honored for backward compatibility.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getBaseTypesList
public com.google.protobuf.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;- Specified by:
getBaseTypesListin interfaceDocumentSchema.EntityTypeOrBuilder- Returns:
- A list containing the baseTypes.
-
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;- Specified by:
getBaseTypesCountin interfaceDocumentSchema.EntityTypeOrBuilder- Returns:
- The count of baseTypes.
-
getBaseTypes
The entity type that this type is derived from. For now, one and only one should be set.
repeated string base_types = 2;- Specified by:
getBaseTypesin interfaceDocumentSchema.EntityTypeOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The baseTypes at the given index.
-
getBaseTypesBytes
public com.google.protobuf.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;- Specified by:
getBaseTypesBytesin interfaceDocumentSchema.EntityTypeOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the baseTypes at the given index.
-
setBaseTypes
The entity type that this type is derived from. For now, one and only one should be set.
repeated string base_types = 2;- Parameters:
index- The index to set the value at.value- The baseTypes to set.- Returns:
- This builder for chaining.
-
addBaseTypes
The entity type that this type is derived from. For now, one and only one should be set.
repeated string base_types = 2;- Parameters:
value- The baseTypes to add.- Returns:
- This builder for chaining.
-
addAllBaseTypes
The entity type that this type is derived from. For now, one and only one should be set.
repeated string base_types = 2;- Parameters:
values- The baseTypes to add.- Returns:
- This builder for chaining.
-
clearBaseTypes
The entity type that this type is derived from. For now, one and only one should be set.
repeated string base_types = 2;- Returns:
- This builder for chaining.
-
addBaseTypesBytes
The entity type that this type is derived from. For now, one and only one should be set.
repeated string base_types = 2;- Parameters:
value- The bytes of the baseTypes to add.- Returns:
- This builder for chaining.
-
getPropertiesList
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;- Specified by:
getPropertiesListin interfaceDocumentSchema.EntityTypeOrBuilder
-
getPropertiesCount
public int getPropertiesCount()Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;- Specified by:
getPropertiesCountin interfaceDocumentSchema.EntityTypeOrBuilder
-
getProperties
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;- Specified by:
getPropertiesin interfaceDocumentSchema.EntityTypeOrBuilder
-
setProperties
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; -
setProperties
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; -
addProperties
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6; -
addProperties
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; -
addProperties
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; -
addProperties
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; -
addAllProperties
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; -
clearProperties
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6; -
removeProperties
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6; -
getPropertiesBuilder
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6; -
getPropertiesOrBuilder
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;- Specified by:
getPropertiesOrBuilderin interfaceDocumentSchema.EntityTypeOrBuilder
-
getPropertiesOrBuilderList
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;- Specified by:
getPropertiesOrBuilderListin interfaceDocumentSchema.EntityTypeOrBuilder
-
addPropertiesBuilder
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6; -
addPropertiesBuilder
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6; -
getPropertiesBuilderList
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;
-