Class DocumentDataV1.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<DocumentDataV1>
org.apache.avro.specific.SpecificRecordBuilderBase<DocumentDataV1>
org.apache.fineract.avro.document.v1.DocumentDataV1.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<DocumentDataV1>
- Enclosing class:
DocumentDataV1
public static class DocumentDataV1.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<DocumentDataV1>
implements org.apache.avro.data.RecordBuilder<DocumentDataV1>
RecordBuilder for DocumentDataV1 instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'description' field.Clears the value of the 'fileName' field.clearId()Clears the value of the 'id' field.Clears the value of the 'name' field.Clears the value of the 'parentEntityId' field.Clears the value of the 'parentEntityType' field.Clears the value of the 'size' field.Clears the value of the 'storageType' field.Clears the value of the 'type' field.Gets the value of the 'description' field.Gets the value of the 'fileName' field.getId()Gets the value of the 'id' field.getName()Gets the value of the 'name' field.Gets the value of the 'parentEntityId' field.Gets the value of the 'parentEntityType' field.getSize()Gets the value of the 'size' field.Gets the value of the 'storageType' field.getType()Gets the value of the 'type' field.booleanChecks whether the 'description' field has been set.booleanChecks whether the 'fileName' field has been set.booleanhasId()Checks whether the 'id' field has been set.booleanhasName()Checks whether the 'name' field has been set.booleanChecks whether the 'parentEntityId' field has been set.booleanChecks whether the 'parentEntityType' field has been set.booleanhasSize()Checks whether the 'size' field has been set.booleanChecks whether the 'storageType' field has been set.booleanhasType()Checks whether the 'type' field has been set.setDescription(String value) Sets the value of the 'description' field.setFileName(String value) Sets the value of the 'fileName' field.Sets the value of the 'id' field.Sets the value of the 'name' field.setParentEntityId(Long value) Sets the value of the 'parentEntityId' field.setParentEntityType(String value) Sets the value of the 'parentEntityType' field.Sets the value of the 'size' field.setStorageType(Integer value) Sets the value of the 'storageType' field.Sets the value of the 'type' field.Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getId
Gets the value of the 'id' field.- Returns:
- The value.
-
setId
Sets the value of the 'id' field.- Parameters:
value- The value of 'id'.- Returns:
- This builder.
-
hasId
public boolean hasId()Checks whether the 'id' field has been set.- Returns:
- True if the 'id' field has been set, false otherwise.
-
clearId
Clears the value of the 'id' field.- Returns:
- This builder.
-
getParentEntityType
Gets the value of the 'parentEntityType' field.- Returns:
- The value.
-
setParentEntityType
Sets the value of the 'parentEntityType' field.- Parameters:
value- The value of 'parentEntityType'.- Returns:
- This builder.
-
hasParentEntityType
public boolean hasParentEntityType()Checks whether the 'parentEntityType' field has been set.- Returns:
- True if the 'parentEntityType' field has been set, false otherwise.
-
clearParentEntityType
Clears the value of the 'parentEntityType' field.- Returns:
- This builder.
-
getParentEntityId
Gets the value of the 'parentEntityId' field.- Returns:
- The value.
-
setParentEntityId
Sets the value of the 'parentEntityId' field.- Parameters:
value- The value of 'parentEntityId'.- Returns:
- This builder.
-
hasParentEntityId
public boolean hasParentEntityId()Checks whether the 'parentEntityId' field has been set.- Returns:
- True if the 'parentEntityId' field has been set, false otherwise.
-
clearParentEntityId
Clears the value of the 'parentEntityId' field.- Returns:
- This builder.
-
getName
Gets the value of the 'name' field.- Returns:
- The value.
-
setName
Sets the value of the 'name' field.- Parameters:
value- The value of 'name'.- Returns:
- This builder.
-
hasName
public boolean hasName()Checks whether the 'name' field has been set.- Returns:
- True if the 'name' field has been set, false otherwise.
-
clearName
Clears the value of the 'name' field.- Returns:
- This builder.
-
getFileName
Gets the value of the 'fileName' field.- Returns:
- The value.
-
setFileName
Sets the value of the 'fileName' field.- Parameters:
value- The value of 'fileName'.- Returns:
- This builder.
-
hasFileName
public boolean hasFileName()Checks whether the 'fileName' field has been set.- Returns:
- True if the 'fileName' field has been set, false otherwise.
-
clearFileName
Clears the value of the 'fileName' field.- Returns:
- This builder.
-
getSize
Gets the value of the 'size' field.- Returns:
- The value.
-
setSize
Sets the value of the 'size' field.- Parameters:
value- The value of 'size'.- Returns:
- This builder.
-
hasSize
public boolean hasSize()Checks whether the 'size' field has been set.- Returns:
- True if the 'size' field has been set, false otherwise.
-
clearSize
Clears the value of the 'size' field.- Returns:
- This builder.
-
getType
Gets the value of the 'type' field.- Returns:
- The value.
-
setType
Sets the value of the 'type' field.- Parameters:
value- The value of 'type'.- Returns:
- This builder.
-
hasType
public boolean hasType()Checks whether the 'type' field has been set.- Returns:
- True if the 'type' field has been set, false otherwise.
-
clearType
Clears the value of the 'type' field.- Returns:
- This builder.
-
getDescription
Gets the value of the 'description' field.- Returns:
- The value.
-
setDescription
Sets the value of the 'description' field.- Parameters:
value- The value of 'description'.- Returns:
- This builder.
-
hasDescription
public boolean hasDescription()Checks whether the 'description' field has been set.- Returns:
- True if the 'description' field has been set, false otherwise.
-
clearDescription
Clears the value of the 'description' field.- Returns:
- This builder.
-
getStorageType
Gets the value of the 'storageType' field.- Returns:
- The value.
-
setStorageType
Sets the value of the 'storageType' field.- Parameters:
value- The value of 'storageType'.- Returns:
- This builder.
-
hasStorageType
public boolean hasStorageType()Checks whether the 'storageType' field has been set.- Returns:
- True if the 'storageType' field has been set, false otherwise.
-
clearStorageType
Clears the value of the 'storageType' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<DocumentDataV1>
-