Class DocumentSchema.EntityType.Property.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Property.Builder>
-
- com.google.cloud.documentai.v1beta3.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.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Property.Builder> implements DocumentSchema.EntityType.PropertyOrBuilder
Defines properties that can be part of the entity type.
Protobuf typegoogle.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentSchema.EntityType.Property.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DocumentSchema.EntityType.Propertybuild()DocumentSchema.EntityType.PropertybuildPartial()DocumentSchema.EntityType.Property.Builderclear()DocumentSchema.EntityType.Property.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)DocumentSchema.EntityType.Property.BuilderclearName()The name of the property.DocumentSchema.EntityType.Property.BuilderclearOccurrenceType()Occurrence type limits the number of instances an entity type appears in the document.DocumentSchema.EntityType.Property.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)DocumentSchema.EntityType.Property.BuilderclearPropertyMetadata()Any additional metadata about the property can be added here.DocumentSchema.EntityType.Property.BuilderclearValueType()A reference to the value type of the property.DocumentSchema.EntityType.Property.Builderclone()DocumentSchema.EntityType.PropertygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetName()The name of the property.com.google.protobuf.ByteStringgetNameBytes()The name of the property.DocumentSchema.EntityType.Property.OccurrenceTypegetOccurrenceType()Occurrence type limits the number of instances an entity type appears in the document.intgetOccurrenceTypeValue()Occurrence type limits the number of instances an entity type appears in the document.PropertyMetadatagetPropertyMetadata()Any additional metadata about the property can be added here.PropertyMetadata.BuildergetPropertyMetadataBuilder()Any additional metadata about the property can be added here.PropertyMetadataOrBuildergetPropertyMetadataOrBuilder()Any additional metadata about the property can be added here.StringgetValueType()A reference to the value type of the property.com.google.protobuf.ByteStringgetValueTypeBytes()A reference to the value type of the property.booleanhasPropertyMetadata()Any additional metadata about the property can be added here.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()DocumentSchema.EntityType.Property.BuildermergeFrom(DocumentSchema.EntityType.Property other)DocumentSchema.EntityType.Property.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)DocumentSchema.EntityType.Property.BuildermergeFrom(com.google.protobuf.Message other)DocumentSchema.EntityType.Property.BuildermergePropertyMetadata(PropertyMetadata value)Any additional metadata about the property can be added here.DocumentSchema.EntityType.Property.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DocumentSchema.EntityType.Property.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DocumentSchema.EntityType.Property.BuildersetName(String value)The name of the property.DocumentSchema.EntityType.Property.BuildersetNameBytes(com.google.protobuf.ByteString value)The name of the property.DocumentSchema.EntityType.Property.BuildersetOccurrenceType(DocumentSchema.EntityType.Property.OccurrenceType value)Occurrence type limits the number of instances an entity type appears in the document.DocumentSchema.EntityType.Property.BuildersetOccurrenceTypeValue(int value)Occurrence type limits the number of instances an entity type appears in the document.DocumentSchema.EntityType.Property.BuildersetPropertyMetadata(PropertyMetadata value)Any additional metadata about the property can be added here.DocumentSchema.EntityType.Property.BuildersetPropertyMetadata(PropertyMetadata.Builder builderForValue)Any additional metadata about the property can be added here.DocumentSchema.EntityType.Property.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)DocumentSchema.EntityType.Property.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DocumentSchema.EntityType.Property.BuildersetValueType(String value)A reference to the value type of the property.DocumentSchema.EntityType.Property.BuildersetValueTypeBytes(com.google.protobuf.ByteString value)A reference to the value type of the property.-
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.Property.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Property.Builder>
-
getDefaultInstanceForType
public DocumentSchema.EntityType.Property getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public DocumentSchema.EntityType.Property build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DocumentSchema.EntityType.Property buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DocumentSchema.EntityType.Property.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.Property.Builder>
-
setField
public DocumentSchema.EntityType.Property.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.Property.Builder>
-
clearField
public DocumentSchema.EntityType.Property.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.Property.Builder>
-
clearOneof
public DocumentSchema.EntityType.Property.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.Property.Builder>
-
setRepeatedField
public DocumentSchema.EntityType.Property.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.Property.Builder>
-
addRepeatedField
public DocumentSchema.EntityType.Property.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.Property.Builder>
-
mergeFrom
public DocumentSchema.EntityType.Property.Builder mergeFrom(com.google.protobuf.Message other)
- 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.GeneratedMessageV3.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
public String 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
public DocumentSchema.EntityType.Property.Builder setName(String value)
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
public DocumentSchema.EntityType.Property.Builder 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.
-
getValueType
public String 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
public DocumentSchema.EntityType.Property.Builder setValueType(String 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 valueType to set.- Returns:
- This builder for chaining.
-
clearValueType
public DocumentSchema.EntityType.Property.Builder 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.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType occurrence_type = 3;- Specified by:
getOccurrenceTypeValuein interfaceDocumentSchema.EntityType.PropertyOrBuilder- Returns:
- The enum numeric value on the wire for occurrenceType.
-
setOccurrenceTypeValue
public DocumentSchema.EntityType.Property.Builder setOccurrenceTypeValue(int value)
Occurrence type limits the number of instances an entity type appears in the document.
.google.cloud.documentai.v1beta3.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
public DocumentSchema.EntityType.Property.OccurrenceType getOccurrenceType()
Occurrence type limits the number of instances an entity type appears in the document.
.google.cloud.documentai.v1beta3.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.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType occurrence_type = 3;- Parameters:
value- The occurrenceType to set.- Returns:
- This builder for chaining.
-
clearOccurrenceType
public DocumentSchema.EntityType.Property.Builder clearOccurrenceType()
Occurrence type limits the number of instances an entity type appears in the document.
.google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType occurrence_type = 3;- Returns:
- This builder for chaining.
-
hasPropertyMetadata
public boolean hasPropertyMetadata()
Any additional metadata about the property can be added here.
.google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5;- Specified by:
hasPropertyMetadatain interfaceDocumentSchema.EntityType.PropertyOrBuilder- Returns:
- Whether the propertyMetadata field is set.
-
getPropertyMetadata
public PropertyMetadata getPropertyMetadata()
Any additional metadata about the property can be added here.
.google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5;- Specified by:
getPropertyMetadatain interfaceDocumentSchema.EntityType.PropertyOrBuilder- Returns:
- The propertyMetadata.
-
setPropertyMetadata
public DocumentSchema.EntityType.Property.Builder setPropertyMetadata(PropertyMetadata value)
Any additional metadata about the property can be added here.
.google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5;
-
setPropertyMetadata
public DocumentSchema.EntityType.Property.Builder setPropertyMetadata(PropertyMetadata.Builder builderForValue)
Any additional metadata about the property can be added here.
.google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5;
-
mergePropertyMetadata
public DocumentSchema.EntityType.Property.Builder mergePropertyMetadata(PropertyMetadata value)
Any additional metadata about the property can be added here.
.google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5;
-
clearPropertyMetadata
public DocumentSchema.EntityType.Property.Builder clearPropertyMetadata()
Any additional metadata about the property can be added here.
.google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5;
-
getPropertyMetadataBuilder
public PropertyMetadata.Builder getPropertyMetadataBuilder()
Any additional metadata about the property can be added here.
.google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5;
-
getPropertyMetadataOrBuilder
public PropertyMetadataOrBuilder getPropertyMetadataOrBuilder()
Any additional metadata about the property can be added here.
.google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5;- Specified by:
getPropertyMetadataOrBuilderin interfaceDocumentSchema.EntityType.PropertyOrBuilder
-
setUnknownFields
public final DocumentSchema.EntityType.Property.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Property.Builder>
-
mergeUnknownFields
public final DocumentSchema.EntityType.Property.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Property.Builder>
-
-