Package com.google.cloud.documentai.v1
Class DocumentSchema.EntityType.Property.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DocumentSchema.EntityType.Property.Builder>
com.google.cloud.documentai.v1.DocumentSchema.EntityType.Property.Builder
- All Implemented Interfaces:
DocumentSchema.EntityType.PropertyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DocumentSchema.EntityType.Property
public static final class DocumentSchema.EntityType.Property.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DocumentSchema.EntityType.Property.Builder>
implements DocumentSchema.EntityType.PropertyOrBuilder
Defines properties that can be part of the entity type.Protobuf type
google.cloud.documentai.v1.DocumentSchema.EntityType.Property-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()User defined name for the property.Specifies how the entity's value is obtained.The name of the property.Occurrence type limits the number of instances an entity type appears in the document.A reference to the value type of the property.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorUser defined name for the property.com.google.protobuf.ByteStringUser defined name for the property.Specifies how the entity's value is obtained.intSpecifies how the entity's value is obtained.getName()The name of the property.com.google.protobuf.ByteStringThe name of the property.Occurrence type limits the number of instances an entity type appears in the document.intOccurrence type limits the number of instances an entity type appears in the document.A reference to the value type of the property.com.google.protobuf.ByteStringA reference to the value type of the property.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDisplayName(String value) User defined name for the property.setDisplayNameBytes(com.google.protobuf.ByteString value) User defined name for the property.Specifies how the entity's value is obtained.setMethodValue(int value) Specifies how the entity's value is obtained.The name of the property.setNameBytes(com.google.protobuf.ByteString value) The name of the property.Occurrence type limits the number of instances an entity type appears in the document.setOccurrenceTypeValue(int value) Occurrence type limits the number of instances an entity type appears in the document.setValueType(String value) A reference to the value type of the property.setValueTypeBytes(com.google.protobuf.ByteString value) A reference to the value type of the property.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.Property.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.Property.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.Property.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.Property.Builder>
-
mergeFrom
public DocumentSchema.EntityType.Property.Builder mergeFrom(DocumentSchema.EntityType.Property other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DocumentSchema.EntityType.Property.Builder>
-
mergeFrom
public DocumentSchema.EntityType.Property.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.Property.Builder>- Throws:
IOException
-
getName
The name of the property. Follows the same guidelines as the EntityType name.
string name = 1;- Specified by:
getNamein interfaceDocumentSchema.EntityType.PropertyOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the property. Follows the same guidelines as the EntityType name.
string name = 1;- Specified by:
getNameBytesin interfaceDocumentSchema.EntityType.PropertyOrBuilder- Returns:
- The bytes for name.
-
setName
The name of the property. Follows the same guidelines as the EntityType name.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the property. Follows the same guidelines as the EntityType name.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public DocumentSchema.EntityType.Property.Builder setNameBytes(com.google.protobuf.ByteString value) The name of the property. Follows the same guidelines as the EntityType name.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
User defined name for the property.
string display_name = 6;- Specified by:
getDisplayNamein interfaceDocumentSchema.EntityType.PropertyOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()User defined name for the property.
string display_name = 6;- Specified by:
getDisplayNameBytesin interfaceDocumentSchema.EntityType.PropertyOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
User defined name for the property.
string display_name = 6;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
User defined name for the property.
string display_name = 6;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public DocumentSchema.EntityType.Property.Builder setDisplayNameBytes(com.google.protobuf.ByteString value) User defined name for the property.
string display_name = 6;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getValueType
A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field.
string value_type = 2;- Specified by:
getValueTypein interfaceDocumentSchema.EntityType.PropertyOrBuilder- Returns:
- The valueType.
-
getValueTypeBytes
public com.google.protobuf.ByteString getValueTypeBytes()A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field.
string value_type = 2;- Specified by:
getValueTypeBytesin interfaceDocumentSchema.EntityType.PropertyOrBuilder- Returns:
- The bytes for valueType.
-
setValueType
A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field.
string value_type = 2;- Parameters:
value- The valueType to set.- Returns:
- This builder for chaining.
-
clearValueType
A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field.
string value_type = 2;- Returns:
- This builder for chaining.
-
setValueTypeBytes
public DocumentSchema.EntityType.Property.Builder setValueTypeBytes(com.google.protobuf.ByteString value) A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field.
string value_type = 2;- Parameters:
value- The bytes for valueType to set.- Returns:
- This builder for chaining.
-
getOccurrenceTypeValue
public int getOccurrenceTypeValue()Occurrence type limits the number of instances an entity type appears in the document.
.google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType occurrence_type = 3;- Specified by:
getOccurrenceTypeValuein interfaceDocumentSchema.EntityType.PropertyOrBuilder- Returns:
- The enum numeric value on the wire for occurrenceType.
-
setOccurrenceTypeValue
Occurrence type limits the number of instances an entity type appears in the document.
.google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType occurrence_type = 3;- Parameters:
value- The enum numeric value on the wire for occurrenceType to set.- Returns:
- This builder for chaining.
-
getOccurrenceType
Occurrence type limits the number of instances an entity type appears in the document.
.google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType occurrence_type = 3;- Specified by:
getOccurrenceTypein interfaceDocumentSchema.EntityType.PropertyOrBuilder- Returns:
- The occurrenceType.
-
setOccurrenceType
public DocumentSchema.EntityType.Property.Builder setOccurrenceType(DocumentSchema.EntityType.Property.OccurrenceType value) Occurrence type limits the number of instances an entity type appears in the document.
.google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType occurrence_type = 3;- Parameters:
value- The occurrenceType to set.- Returns:
- This builder for chaining.
-
clearOccurrenceType
Occurrence type limits the number of instances an entity type appears in the document.
.google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType occurrence_type = 3;- Returns:
- This builder for chaining.
-
getMethodValue
public int getMethodValue()Specifies how the entity's value is obtained.
.google.cloud.documentai.v1.DocumentSchema.EntityType.Property.Method method = 8;- Specified by:
getMethodValuein interfaceDocumentSchema.EntityType.PropertyOrBuilder- Returns:
- The enum numeric value on the wire for method.
-
setMethodValue
Specifies how the entity's value is obtained.
.google.cloud.documentai.v1.DocumentSchema.EntityType.Property.Method method = 8;- Parameters:
value- The enum numeric value on the wire for method to set.- Returns:
- This builder for chaining.
-
getMethod
Specifies how the entity's value is obtained.
.google.cloud.documentai.v1.DocumentSchema.EntityType.Property.Method method = 8;- Specified by:
getMethodin interfaceDocumentSchema.EntityType.PropertyOrBuilder- Returns:
- The method.
-
setMethod
public DocumentSchema.EntityType.Property.Builder setMethod(DocumentSchema.EntityType.Property.Method value) Specifies how the entity's value is obtained.
.google.cloud.documentai.v1.DocumentSchema.EntityType.Property.Method method = 8;- Parameters:
value- The method to set.- Returns:
- This builder for chaining.
-
clearMethod
Specifies how the entity's value is obtained.
.google.cloud.documentai.v1.DocumentSchema.EntityType.Property.Method method = 8;- Returns:
- This builder for chaining.
-