Package com.google.cloud.documentai.v1
Class DocumentSchema.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DocumentSchema.Builder>
com.google.cloud.documentai.v1.DocumentSchema.Builder
- All Implemented Interfaces:
DocumentSchemaOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DocumentSchema
public static final class DocumentSchema.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DocumentSchema.Builder>
implements DocumentSchemaOrBuilder
The schema defines the output of the processed document by a processor.Protobuf type
google.cloud.documentai.v1.DocumentSchema-
Method Summary
Modifier and TypeMethodDescriptionaddAllEntityTypes(Iterable<? extends DocumentSchema.EntityType> values) Entity types of the schema.addEntityTypes(int index, DocumentSchema.EntityType value) Entity types of the schema.addEntityTypes(int index, DocumentSchema.EntityType.Builder builderForValue) Entity types of the schema.Entity types of the schema.addEntityTypes(DocumentSchema.EntityType.Builder builderForValue) Entity types of the schema.Entity types of the schema.addEntityTypesBuilder(int index) Entity types of the schema.build()clear()Description of the schema.Display name to show to users.Entity types of the schema.Metadata of the schema.Description of the schema.com.google.protobuf.ByteStringDescription of the schema.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDisplay name to show to users.com.google.protobuf.ByteStringDisplay name to show to users.getEntityTypes(int index) Entity types of the schema.getEntityTypesBuilder(int index) Entity types of the schema.Entity types of the schema.intEntity types of the schema.Entity types of the schema.getEntityTypesOrBuilder(int index) Entity types of the schema.List<? extends DocumentSchema.EntityTypeOrBuilder>Entity types of the schema.Metadata of the schema.Metadata of the schema.Metadata of the schema.booleanMetadata of the schema.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(DocumentSchema other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Metadata of the schema.removeEntityTypes(int index) Entity types of the schema.setDescription(String value) Description of the schema.setDescriptionBytes(com.google.protobuf.ByteString value) Description of the schema.setDisplayName(String value) Display name to show to users.setDisplayNameBytes(com.google.protobuf.ByteString value) Display name to show to users.setEntityTypes(int index, DocumentSchema.EntityType value) Entity types of the schema.setEntityTypes(int index, DocumentSchema.EntityType.Builder builderForValue) Entity types of the schema.Metadata of the schema.setMetadata(DocumentSchema.Metadata.Builder builderForValue) Metadata of the schema.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.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.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.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.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DocumentSchema.Builder>
-
mergeFrom
public DocumentSchema.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.Builder>- Throws:
IOException
-
getDisplayName
Display name to show to users.
string display_name = 1;- Specified by:
getDisplayNamein interfaceDocumentSchemaOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Display name to show to users.
string display_name = 1;- Specified by:
getDisplayNameBytesin interfaceDocumentSchemaOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Display name to show to users.
string display_name = 1;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Display name to show to users.
string display_name = 1;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Display name to show to users.
string display_name = 1;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getDescription
Description of the schema.
string description = 2;- Specified by:
getDescriptionin interfaceDocumentSchemaOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Description of the schema.
string description = 2;- Specified by:
getDescriptionBytesin interfaceDocumentSchemaOrBuilder- Returns:
- The bytes for description.
-
setDescription
Description of the schema.
string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Description of the schema.
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
Description of the schema.
string description = 2;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getEntityTypesList
Entity types of the schema.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3;- Specified by:
getEntityTypesListin interfaceDocumentSchemaOrBuilder
-
getEntityTypesCount
public int getEntityTypesCount()Entity types of the schema.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3;- Specified by:
getEntityTypesCountin interfaceDocumentSchemaOrBuilder
-
getEntityTypes
Entity types of the schema.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3;- Specified by:
getEntityTypesin interfaceDocumentSchemaOrBuilder
-
setEntityTypes
Entity types of the schema.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3; -
setEntityTypes
public DocumentSchema.Builder setEntityTypes(int index, DocumentSchema.EntityType.Builder builderForValue) Entity types of the schema.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3; -
addEntityTypes
Entity types of the schema.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3; -
addEntityTypes
Entity types of the schema.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3; -
addEntityTypes
Entity types of the schema.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3; -
addEntityTypes
public DocumentSchema.Builder addEntityTypes(int index, DocumentSchema.EntityType.Builder builderForValue) Entity types of the schema.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3; -
addAllEntityTypes
public DocumentSchema.Builder addAllEntityTypes(Iterable<? extends DocumentSchema.EntityType> values) Entity types of the schema.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3; -
clearEntityTypes
Entity types of the schema.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3; -
removeEntityTypes
Entity types of the schema.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3; -
getEntityTypesBuilder
Entity types of the schema.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3; -
getEntityTypesOrBuilder
Entity types of the schema.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3;- Specified by:
getEntityTypesOrBuilderin interfaceDocumentSchemaOrBuilder
-
getEntityTypesOrBuilderList
Entity types of the schema.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3;- Specified by:
getEntityTypesOrBuilderListin interfaceDocumentSchemaOrBuilder
-
addEntityTypesBuilder
Entity types of the schema.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3; -
addEntityTypesBuilder
Entity types of the schema.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3; -
getEntityTypesBuilderList
Entity types of the schema.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3; -
hasMetadata
public boolean hasMetadata()Metadata of the schema.
.google.cloud.documentai.v1.DocumentSchema.Metadata metadata = 4;- Specified by:
hasMetadatain interfaceDocumentSchemaOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
Metadata of the schema.
.google.cloud.documentai.v1.DocumentSchema.Metadata metadata = 4;- Specified by:
getMetadatain interfaceDocumentSchemaOrBuilder- Returns:
- The metadata.
-
setMetadata
Metadata of the schema.
.google.cloud.documentai.v1.DocumentSchema.Metadata metadata = 4; -
setMetadata
Metadata of the schema.
.google.cloud.documentai.v1.DocumentSchema.Metadata metadata = 4; -
mergeMetadata
Metadata of the schema.
.google.cloud.documentai.v1.DocumentSchema.Metadata metadata = 4; -
clearMetadata
Metadata of the schema.
.google.cloud.documentai.v1.DocumentSchema.Metadata metadata = 4; -
getMetadataBuilder
Metadata of the schema.
.google.cloud.documentai.v1.DocumentSchema.Metadata metadata = 4; -
getMetadataOrBuilder
Metadata of the schema.
.google.cloud.documentai.v1.DocumentSchema.Metadata metadata = 4;- Specified by:
getMetadataOrBuilderin interfaceDocumentSchemaOrBuilder
-