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.GeneratedMessageV3.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.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.v1.DocumentSchema.EntityType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentSchema.EntityType.Builder
addAllBaseTypes(Iterable<String> values)
The entity type that this type is derived from.DocumentSchema.EntityType.Builder
addAllProperties(Iterable<? extends DocumentSchema.EntityType.Property> values)
Description the nested structure, or composition of an entity.DocumentSchema.EntityType.Builder
addBaseTypes(String value)
The entity type that this type is derived from.DocumentSchema.EntityType.Builder
addBaseTypesBytes(com.google.protobuf.ByteString value)
The entity type that this type is derived from.DocumentSchema.EntityType.Builder
addProperties(int index, DocumentSchema.EntityType.Property value)
Description the nested structure, or composition of an entity.DocumentSchema.EntityType.Builder
addProperties(int index, DocumentSchema.EntityType.Property.Builder builderForValue)
Description the nested structure, or composition of an entity.DocumentSchema.EntityType.Builder
addProperties(DocumentSchema.EntityType.Property value)
Description the nested structure, or composition of an entity.DocumentSchema.EntityType.Builder
addProperties(DocumentSchema.EntityType.Property.Builder builderForValue)
Description the nested structure, or composition of an entity.DocumentSchema.EntityType.Property.Builder
addPropertiesBuilder()
Description the nested structure, or composition of an entity.DocumentSchema.EntityType.Property.Builder
addPropertiesBuilder(int index)
Description the nested structure, or composition of an entity.DocumentSchema.EntityType.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DocumentSchema.EntityType
build()
DocumentSchema.EntityType
buildPartial()
DocumentSchema.EntityType.Builder
clear()
DocumentSchema.EntityType.Builder
clearBaseTypes()
The entity type that this type is derived from.DocumentSchema.EntityType.Builder
clearDisplayName()
User defined name for the type.DocumentSchema.EntityType.Builder
clearEnumValues()
If specified, lists all the possible values for this entity.DocumentSchema.EntityType.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
DocumentSchema.EntityType.Builder
clearName()
Name of the type.DocumentSchema.EntityType.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
DocumentSchema.EntityType.Builder
clearProperties()
Description the nested structure, or composition of an entity.DocumentSchema.EntityType.Builder
clearValueSource()
DocumentSchema.EntityType.Builder
clone()
String
getBaseTypes(int index)
The entity type that this type is derived from.com.google.protobuf.ByteString
getBaseTypesBytes(int index)
The entity type that this type is derived from.int
getBaseTypesCount()
The entity type that this type is derived from.com.google.protobuf.ProtocolStringList
getBaseTypesList()
The entity type that this type is derived from.DocumentSchema.EntityType
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDisplayName()
User defined name for the type.com.google.protobuf.ByteString
getDisplayNameBytes()
User defined name for the type.DocumentSchema.EntityType.EnumValues
getEnumValues()
If specified, lists all the possible values for this entity.DocumentSchema.EntityType.EnumValues.Builder
getEnumValuesBuilder()
If specified, lists all the possible values for this entity.DocumentSchema.EntityType.EnumValuesOrBuilder
getEnumValuesOrBuilder()
If specified, lists all the possible values for this entity.String
getName()
Name of the type.com.google.protobuf.ByteString
getNameBytes()
Name of the type.DocumentSchema.EntityType.Property
getProperties(int index)
Description the nested structure, or composition of an entity.DocumentSchema.EntityType.Property.Builder
getPropertiesBuilder(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.int
getPropertiesCount()
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.PropertyOrBuilder
getPropertiesOrBuilder(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.ValueSourceCase
getValueSourceCase()
boolean
hasEnumValues()
If specified, lists all the possible values for this entity.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
DocumentSchema.EntityType.Builder
mergeEnumValues(DocumentSchema.EntityType.EnumValues value)
If specified, lists all the possible values for this entity.DocumentSchema.EntityType.Builder
mergeFrom(DocumentSchema.EntityType other)
DocumentSchema.EntityType.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
DocumentSchema.EntityType.Builder
mergeFrom(com.google.protobuf.Message other)
DocumentSchema.EntityType.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DocumentSchema.EntityType.Builder
removeProperties(int index)
Description the nested structure, or composition of an entity.DocumentSchema.EntityType.Builder
setBaseTypes(int index, String value)
The entity type that this type is derived from.DocumentSchema.EntityType.Builder
setDisplayName(String value)
User defined name for the type.DocumentSchema.EntityType.Builder
setDisplayNameBytes(com.google.protobuf.ByteString value)
User defined name for the type.DocumentSchema.EntityType.Builder
setEnumValues(DocumentSchema.EntityType.EnumValues value)
If specified, lists all the possible values for this entity.DocumentSchema.EntityType.Builder
setEnumValues(DocumentSchema.EntityType.EnumValues.Builder builderForValue)
If specified, lists all the possible values for this entity.DocumentSchema.EntityType.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DocumentSchema.EntityType.Builder
setName(String value)
Name of the type.DocumentSchema.EntityType.Builder
setNameBytes(com.google.protobuf.ByteString value)
Name of the type.DocumentSchema.EntityType.Builder
setProperties(int index, DocumentSchema.EntityType.Property value)
Description the nested structure, or composition of an entity.DocumentSchema.EntityType.Builder
setProperties(int index, DocumentSchema.EntityType.Property.Builder builderForValue)
Description the nested structure, or composition of an entity.DocumentSchema.EntityType.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
DocumentSchema.EntityType.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Builder>
-
clear
public DocumentSchema.EntityType.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Builder>
-
getDefaultInstanceForType
public DocumentSchema.EntityType getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public DocumentSchema.EntityType build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DocumentSchema.EntityType buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DocumentSchema.EntityType.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Builder>
-
setField
public DocumentSchema.EntityType.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Builder>
-
clearField
public DocumentSchema.EntityType.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Builder>
-
clearOneof
public DocumentSchema.EntityType.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Builder>
-
addRepeatedField
public DocumentSchema.EntityType.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Builder>
-
mergeFrom
public DocumentSchema.EntityType.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DocumentSchema.EntityType.Builder>
-
mergeFrom
public DocumentSchema.EntityType.Builder mergeFrom(DocumentSchema.EntityType other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DocumentSchema.EntityType.Builder>
- Throws:
IOException
-
getValueSourceCase
public DocumentSchema.EntityType.ValueSourceCase getValueSourceCase()
- Specified by:
getValueSourceCase
in 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.v1.DocumentSchema.EntityType.EnumValues enum_values = 14;
- Specified by:
hasEnumValues
in 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.v1.DocumentSchema.EntityType.EnumValues enum_values = 14;
- Specified by:
getEnumValues
in 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.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
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;
-
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;
-
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;
- Specified by:
getEnumValuesOrBuilder
in interfaceDocumentSchema.EntityTypeOrBuilder
-
getDisplayName
public String getDisplayName()
User defined name for the type.
string display_name = 13;
- Specified by:
getDisplayName
in interfaceDocumentSchema.EntityTypeOrBuilder
- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
User defined name for the type.
string display_name = 13;
- Specified by:
getDisplayNameBytes
in 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:
getName
in 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:
getNameBytes
in 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:
getBaseTypesList
in 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:
getBaseTypesCount
in 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:
getBaseTypes
in 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:
getBaseTypesBytes
in 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.v1.DocumentSchema.EntityType.Property properties = 6;
- Specified by:
getPropertiesList
in 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:
getPropertiesCount
in interfaceDocumentSchema.EntityTypeOrBuilder
-
getProperties
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;
- Specified by:
getProperties
in 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
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;
-
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
public DocumentSchema.EntityType.Builder clearProperties()
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.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.v1.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.v1.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.v1.DocumentSchema.EntityType.Property properties = 6;
- Specified by:
getPropertiesOrBuilder
in interfaceDocumentSchema.EntityTypeOrBuilder
-
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;
- Specified by:
getPropertiesOrBuilderList
in interfaceDocumentSchema.EntityTypeOrBuilder
-
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;
-
addPropertiesBuilder
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;
-
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;
-
setUnknownFields
public final DocumentSchema.EntityType.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Builder>
-
mergeUnknownFields
public final DocumentSchema.EntityType.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Builder>
-
-