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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Property.Builder> implements DocumentSchema.EntityType.PropertyOrBuilder
Defines properties that can be part of the entity type.
Protobuf typegoogle.cloud.documentai.v1.DocumentSchema.EntityType.Property
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentSchema.EntityType.Property.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DocumentSchema.EntityType.Property
build()
DocumentSchema.EntityType.Property
buildPartial()
DocumentSchema.EntityType.Property.Builder
clear()
DocumentSchema.EntityType.Property.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
DocumentSchema.EntityType.Property.Builder
clearName()
The name of the property.DocumentSchema.EntityType.Property.Builder
clearOccurrenceType()
Occurrence type limits the number of instances an entity type appears in the document.DocumentSchema.EntityType.Property.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
DocumentSchema.EntityType.Property.Builder
clearValueType()
A reference to the value type of the property.DocumentSchema.EntityType.Property.Builder
clone()
DocumentSchema.EntityType.Property
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getName()
The name of the property.com.google.protobuf.ByteString
getNameBytes()
The name of the property.DocumentSchema.EntityType.Property.OccurrenceType
getOccurrenceType()
Occurrence type limits the number of instances an entity type appears in the document.int
getOccurrenceTypeValue()
Occurrence type limits the number of instances an entity type appears in the document.String
getValueType()
A reference to the value type of the property.com.google.protobuf.ByteString
getValueTypeBytes()
A reference to the value type of the property.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
DocumentSchema.EntityType.Property.Builder
mergeFrom(DocumentSchema.EntityType.Property other)
DocumentSchema.EntityType.Property.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
DocumentSchema.EntityType.Property.Builder
mergeFrom(com.google.protobuf.Message other)
DocumentSchema.EntityType.Property.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DocumentSchema.EntityType.Property.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DocumentSchema.EntityType.Property.Builder
setName(String value)
The name of the property.DocumentSchema.EntityType.Property.Builder
setNameBytes(com.google.protobuf.ByteString value)
The name of the property.DocumentSchema.EntityType.Property.Builder
setOccurrenceType(DocumentSchema.EntityType.Property.OccurrenceType value)
Occurrence type limits the number of instances an entity type appears in the document.DocumentSchema.EntityType.Property.Builder
setOccurrenceTypeValue(int value)
Occurrence type limits the number of instances an entity type appears in the document.DocumentSchema.EntityType.Property.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
DocumentSchema.EntityType.Property.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DocumentSchema.EntityType.Property.Builder
setValueType(String value)
A reference to the value type of the property.DocumentSchema.EntityType.Property.Builder
setValueTypeBytes(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentSchema.EntityType.Property.Builder>
-
clear
public DocumentSchema.EntityType.Property.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.Property.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.Property.Builder>
-
getDefaultInstanceForType
public DocumentSchema.EntityType.Property getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public DocumentSchema.EntityType.Property build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DocumentSchema.EntityType.Property buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DocumentSchema.EntityType.Property.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.Property.Builder>
-
setField
public DocumentSchema.EntityType.Property.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.Property.Builder>
-
clearField
public DocumentSchema.EntityType.Property.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.Property.Builder>
-
clearOneof
public DocumentSchema.EntityType.Property.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.Property.Builder>
-
setRepeatedField
public DocumentSchema.EntityType.Property.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.Property.Builder>
-
addRepeatedField
public DocumentSchema.EntityType.Property.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.Property.Builder>
-
mergeFrom
public DocumentSchema.EntityType.Property.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.Property.Builder>
-
mergeFrom
public DocumentSchema.EntityType.Property.Builder mergeFrom(DocumentSchema.EntityType.Property other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
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.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:
getName
in 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:
getNameBytes
in 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:
getValueType
in 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:
getValueTypeBytes
in 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.v1.DocumentSchema.EntityType.Property.OccurrenceType occurrence_type = 3;
- Specified by:
getOccurrenceTypeValue
in 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.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
public DocumentSchema.EntityType.Property.OccurrenceType 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:
getOccurrenceType
in 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
public DocumentSchema.EntityType.Property.Builder 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.
-
setUnknownFields
public final DocumentSchema.EntityType.Property.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.Property.Builder>
-
mergeUnknownFields
public final DocumentSchema.EntityType.Property.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.Property.Builder>
-
-