Class DocumentSchema.EntityType.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Builder>
-
- com.google.cloud.documentai.v1beta3.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.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 typegoogle.cloud.documentai.v1beta3.DocumentSchema.EntityType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentSchema.EntityType.BuilderaddAllBaseTypes(Iterable<String> values)The entity type that this type is derived from.DocumentSchema.EntityType.BuilderaddAllProperties(Iterable<? extends DocumentSchema.EntityType.Property> values)Description the nested structure, or composition of an entity.DocumentSchema.EntityType.BuilderaddBaseTypes(String value)The entity type that this type is derived from.DocumentSchema.EntityType.BuilderaddBaseTypesBytes(com.google.protobuf.ByteString value)The entity type that this type is derived from.DocumentSchema.EntityType.BuilderaddProperties(int index, DocumentSchema.EntityType.Property value)Description the nested structure, or composition of an entity.DocumentSchema.EntityType.BuilderaddProperties(int index, DocumentSchema.EntityType.Property.Builder builderForValue)Description the nested structure, or composition of an entity.DocumentSchema.EntityType.BuilderaddProperties(DocumentSchema.EntityType.Property value)Description the nested structure, or composition of an entity.DocumentSchema.EntityType.BuilderaddProperties(DocumentSchema.EntityType.Property.Builder builderForValue)Description the nested structure, or composition of an entity.DocumentSchema.EntityType.Property.BuilderaddPropertiesBuilder()Description the nested structure, or composition of an entity.DocumentSchema.EntityType.Property.BuilderaddPropertiesBuilder(int index)Description the nested structure, or composition of an entity.DocumentSchema.EntityType.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DocumentSchema.EntityTypebuild()DocumentSchema.EntityTypebuildPartial()DocumentSchema.EntityType.Builderclear()DocumentSchema.EntityType.BuilderclearBaseTypes()The entity type that this type is derived from.DocumentSchema.EntityType.BuilderclearDisplayName()User defined name for the type.DocumentSchema.EntityType.BuilderclearEntityTypeMetadata()Metadata for the entity type.DocumentSchema.EntityType.BuilderclearEnumValues()If specified, lists all the possible values for this entity.DocumentSchema.EntityType.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)DocumentSchema.EntityType.BuilderclearName()Name of the type.DocumentSchema.EntityType.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)DocumentSchema.EntityType.BuilderclearProperties()Description the nested structure, or composition of an entity.DocumentSchema.EntityType.BuilderclearValueSource()DocumentSchema.EntityType.Builderclone()StringgetBaseTypes(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.intgetBaseTypesCount()The entity type that this type is derived from.com.google.protobuf.ProtocolStringListgetBaseTypesList()The entity type that this type is derived from.DocumentSchema.EntityTypegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDisplayName()User defined name for the type.com.google.protobuf.ByteStringgetDisplayNameBytes()User defined name for the type.EntityTypeMetadatagetEntityTypeMetadata()Metadata for the entity type.EntityTypeMetadata.BuildergetEntityTypeMetadataBuilder()Metadata for the entity type.EntityTypeMetadataOrBuildergetEntityTypeMetadataOrBuilder()Metadata for the entity type.DocumentSchema.EntityType.EnumValuesgetEnumValues()If specified, lists all the possible values for this entity.DocumentSchema.EntityType.EnumValues.BuildergetEnumValuesBuilder()If specified, lists all the possible values for this entity.DocumentSchema.EntityType.EnumValuesOrBuildergetEnumValuesOrBuilder()If specified, lists all the possible values for this entity.StringgetName()Name of the type.com.google.protobuf.ByteStringgetNameBytes()Name of the type.DocumentSchema.EntityType.PropertygetProperties(int index)Description the nested structure, or composition of an entity.DocumentSchema.EntityType.Property.BuildergetPropertiesBuilder(int index)Description the nested structure, or composition of an entity.List<DocumentSchema.EntityType.Property.Builder>getPropertiesBuilderList()Description the nested structure, or composition of an entity.intgetPropertiesCount()Description the nested structure, or composition of an entity.List<DocumentSchema.EntityType.Property>getPropertiesList()Description the nested structure, or composition of an entity.DocumentSchema.EntityType.PropertyOrBuildergetPropertiesOrBuilder(int index)Description the nested structure, or composition of an entity.List<? extends DocumentSchema.EntityType.PropertyOrBuilder>getPropertiesOrBuilderList()Description the nested structure, or composition of an entity.DocumentSchema.EntityType.ValueSourceCasegetValueSourceCase()booleanhasEntityTypeMetadata()Metadata for the entity type.booleanhasEnumValues()If specified, lists all the possible values for this entity.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()DocumentSchema.EntityType.BuildermergeEntityTypeMetadata(EntityTypeMetadata value)Metadata for the entity type.DocumentSchema.EntityType.BuildermergeEnumValues(DocumentSchema.EntityType.EnumValues value)If specified, lists all the possible values for this entity.DocumentSchema.EntityType.BuildermergeFrom(DocumentSchema.EntityType other)DocumentSchema.EntityType.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)DocumentSchema.EntityType.BuildermergeFrom(com.google.protobuf.Message other)DocumentSchema.EntityType.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DocumentSchema.EntityType.BuilderremoveProperties(int index)Description the nested structure, or composition of an entity.DocumentSchema.EntityType.BuildersetBaseTypes(int index, String value)The entity type that this type is derived from.DocumentSchema.EntityType.BuildersetDisplayName(String value)User defined name for the type.DocumentSchema.EntityType.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)User defined name for the type.DocumentSchema.EntityType.BuildersetEntityTypeMetadata(EntityTypeMetadata value)Metadata for the entity type.DocumentSchema.EntityType.BuildersetEntityTypeMetadata(EntityTypeMetadata.Builder builderForValue)Metadata for the entity type.DocumentSchema.EntityType.BuildersetEnumValues(DocumentSchema.EntityType.EnumValues value)If specified, lists all the possible values for this entity.DocumentSchema.EntityType.BuildersetEnumValues(DocumentSchema.EntityType.EnumValues.Builder builderForValue)If specified, lists all the possible values for this entity.DocumentSchema.EntityType.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DocumentSchema.EntityType.BuildersetName(String value)Name of the type.DocumentSchema.EntityType.BuildersetNameBytes(com.google.protobuf.ByteString value)Name of the type.DocumentSchema.EntityType.BuildersetProperties(int index, DocumentSchema.EntityType.Property value)Description the nested structure, or composition of an entity.DocumentSchema.EntityType.BuildersetProperties(int index, DocumentSchema.EntityType.Property.Builder builderForValue)Description the nested structure, or composition of an entity.DocumentSchema.EntityType.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)DocumentSchema.EntityType.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Builder>
-
getDefaultInstanceForType
public DocumentSchema.EntityType getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public DocumentSchema.EntityType build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DocumentSchema.EntityType buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DocumentSchema.EntityType.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Builder>
-
setField
public DocumentSchema.EntityType.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Builder>
-
clearField
public DocumentSchema.EntityType.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Builder>
-
clearOneof
public DocumentSchema.EntityType.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Builder>
-
setRepeatedField
public DocumentSchema.EntityType.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Builder>
-
addRepeatedField
public DocumentSchema.EntityType.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Builder>
-
mergeFrom
public DocumentSchema.EntityType.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DocumentSchema.EntityType.Builder>
-
mergeFrom
public DocumentSchema.EntityType.Builder mergeFrom(DocumentSchema.EntityType other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public DocumentSchema.EntityType.ValueSourceCase getValueSourceCase()
- Specified by:
getValueSourceCasein interfaceDocumentSchema.EntityTypeOrBuilder
-
clearValueSource
public DocumentSchema.EntityType.Builder 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.v1beta3.DocumentSchema.EntityType.EnumValues enum_values = 14;- Specified by:
hasEnumValuesin interfaceDocumentSchema.EntityTypeOrBuilder- Returns:
- Whether the enumValues field is set.
-
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.v1beta3.DocumentSchema.EntityType.EnumValues enum_values = 14;- Specified by:
getEnumValuesin interfaceDocumentSchema.EntityTypeOrBuilder- Returns:
- The enumValues.
-
setEnumValues
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.v1beta3.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.v1beta3.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.v1beta3.DocumentSchema.EntityType.EnumValues enum_values = 14;
-
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.v1beta3.DocumentSchema.EntityType.EnumValues enum_values = 14;
-
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.v1beta3.DocumentSchema.EntityType.EnumValues enum_values = 14;
-
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.v1beta3.DocumentSchema.EntityType.EnumValues enum_values = 14;- Specified by:
getEnumValuesOrBuilderin interfaceDocumentSchema.EntityTypeOrBuilder
-
getDisplayName
public String 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
public DocumentSchema.EntityType.Builder setDisplayName(String value)
User defined name for the type.
string display_name = 13;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public DocumentSchema.EntityType.Builder clearDisplayName()
User defined name for the type.
string display_name = 13;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public DocumentSchema.EntityType.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
User defined name for the type.
string display_name = 13;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getName
public String 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
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". 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
public DocumentSchema.EntityType.Builder 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
public DocumentSchema.EntityType.Builder setNameBytes(com.google.protobuf.ByteString value)
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
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;- 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
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;- Parameters:
index- The index to set the value at.value- The baseTypes to set.- Returns:
- This builder for chaining.
-
addBaseTypes
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;- Parameters:
value- The baseTypes to add.- Returns:
- This builder for chaining.
-
addAllBaseTypes
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;- Parameters:
values- The baseTypes to add.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
addBaseTypesBytes
public DocumentSchema.EntityType.Builder addBaseTypesBytes(com.google.protobuf.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;- Parameters:
value- The bytes of the baseTypes to add.- Returns:
- This builder for chaining.
-
getPropertiesList
public List<DocumentSchema.EntityType.Property> getPropertiesList()
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1beta3.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.v1beta3.DocumentSchema.EntityType.Property properties = 6;- Specified by:
getPropertiesCountin interfaceDocumentSchema.EntityTypeOrBuilder
-
getProperties
public DocumentSchema.EntityType.Property getProperties(int index)
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1beta3.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.v1beta3.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.v1beta3.DocumentSchema.EntityType.Property properties = 6;
-
addProperties
public DocumentSchema.EntityType.Builder addProperties(DocumentSchema.EntityType.Property value)
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1beta3.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.v1beta3.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.v1beta3.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.v1beta3.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.v1beta3.DocumentSchema.EntityType.Property properties = 6;
-
clearProperties
public DocumentSchema.EntityType.Builder clearProperties()
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property properties = 6;
-
removeProperties
public DocumentSchema.EntityType.Builder removeProperties(int index)
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property properties = 6;
-
getPropertiesBuilder
public DocumentSchema.EntityType.Property.Builder getPropertiesBuilder(int index)
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property properties = 6;
-
getPropertiesOrBuilder
public DocumentSchema.EntityType.PropertyOrBuilder getPropertiesOrBuilder(int index)
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property properties = 6;- Specified by:
getPropertiesOrBuilderin interfaceDocumentSchema.EntityTypeOrBuilder
-
getPropertiesOrBuilderList
public List<? extends DocumentSchema.EntityType.PropertyOrBuilder> getPropertiesOrBuilderList()
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property properties = 6;- Specified by:
getPropertiesOrBuilderListin interfaceDocumentSchema.EntityTypeOrBuilder
-
addPropertiesBuilder
public DocumentSchema.EntityType.Property.Builder addPropertiesBuilder()
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property properties = 6;
-
addPropertiesBuilder
public DocumentSchema.EntityType.Property.Builder addPropertiesBuilder(int index)
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property properties = 6;
-
getPropertiesBuilderList
public List<DocumentSchema.EntityType.Property.Builder> getPropertiesBuilderList()
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property properties = 6;
-
hasEntityTypeMetadata
public boolean hasEntityTypeMetadata()
Metadata for the entity type.
.google.cloud.documentai.v1beta3.EntityTypeMetadata entity_type_metadata = 11;- Specified by:
hasEntityTypeMetadatain interfaceDocumentSchema.EntityTypeOrBuilder- Returns:
- Whether the entityTypeMetadata field is set.
-
getEntityTypeMetadata
public EntityTypeMetadata getEntityTypeMetadata()
Metadata for the entity type.
.google.cloud.documentai.v1beta3.EntityTypeMetadata entity_type_metadata = 11;- Specified by:
getEntityTypeMetadatain interfaceDocumentSchema.EntityTypeOrBuilder- Returns:
- The entityTypeMetadata.
-
setEntityTypeMetadata
public DocumentSchema.EntityType.Builder setEntityTypeMetadata(EntityTypeMetadata value)
Metadata for the entity type.
.google.cloud.documentai.v1beta3.EntityTypeMetadata entity_type_metadata = 11;
-
setEntityTypeMetadata
public DocumentSchema.EntityType.Builder setEntityTypeMetadata(EntityTypeMetadata.Builder builderForValue)
Metadata for the entity type.
.google.cloud.documentai.v1beta3.EntityTypeMetadata entity_type_metadata = 11;
-
mergeEntityTypeMetadata
public DocumentSchema.EntityType.Builder mergeEntityTypeMetadata(EntityTypeMetadata value)
Metadata for the entity type.
.google.cloud.documentai.v1beta3.EntityTypeMetadata entity_type_metadata = 11;
-
clearEntityTypeMetadata
public DocumentSchema.EntityType.Builder clearEntityTypeMetadata()
Metadata for the entity type.
.google.cloud.documentai.v1beta3.EntityTypeMetadata entity_type_metadata = 11;
-
getEntityTypeMetadataBuilder
public EntityTypeMetadata.Builder getEntityTypeMetadataBuilder()
Metadata for the entity type.
.google.cloud.documentai.v1beta3.EntityTypeMetadata entity_type_metadata = 11;
-
getEntityTypeMetadataOrBuilder
public EntityTypeMetadataOrBuilder getEntityTypeMetadataOrBuilder()
Metadata for the entity type.
.google.cloud.documentai.v1beta3.EntityTypeMetadata entity_type_metadata = 11;- Specified by:
getEntityTypeMetadataOrBuilderin interfaceDocumentSchema.EntityTypeOrBuilder
-
setUnknownFields
public final DocumentSchema.EntityType.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Builder>
-
mergeUnknownFields
public final DocumentSchema.EntityType.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Builder>
-
-