Package com.elide.model
Class FieldPersistenceOptions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<FieldPersistenceOptions.Builder>
com.elide.model.FieldPersistenceOptions.Builder
- All Implemented Interfaces:
FieldPersistenceOptionsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
FieldPersistenceOptions
public static final class FieldPersistenceOptions.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<FieldPersistenceOptions.Builder>
implements FieldPersistenceOptionsOrBuilder
Persistence/data engine options specific to an individual message field.Protobuf type
elide.model.FieldPersistenceOptions-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Deprecated.elide.model.FieldPersistenceOptions.description is deprecated.This field should always be explicitly listed with a value, even if it is set to the default value.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) This field should allow writes when the model that contains it is written, but then, henceforth, the model should not allow this field to be mutated.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) This field should not allow writes, but rather produce its value dynamically.This item is a timestamp, and we would like it to be automatically set when the model is created.This item is a timestamp, and we would like it to be automatically updated each time the model that contains it is modified in underlying storage.Summary for this field, which provides a narrative description.Field type, for special-case fields.Describes the visibility level of a given field in a tree of fields.clone()Deprecated.elide.model.FieldPersistenceOptions.description is deprecated.com.google.protobuf.ByteStringDeprecated.elide.model.FieldPersistenceOptions.description is deprecated.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanThis field should always be explicitly listed with a value, even if it is set to the default value.booleanThis field should allow writes when the model that contains it is written, but then, henceforth, the model should not allow this field to be mutated.booleanThis field should not allow writes, but rather produce its value dynamically.booleanThis item is a timestamp, and we would like it to be automatically set when the model is created.booleanThis item is a timestamp, and we would like it to be automatically updated each time the model that contains it is modified in underlying storage.Summary for this field, which provides a narrative description.com.google.protobuf.ByteStringSummary for this field, which provides a narrative description.getType()Field type, for special-case fields.intField type, for special-case fields.Describes the visibility level of a given field in a tree of fields.intDescribes the visibility level of a given field in a tree of fields.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(FieldPersistenceOptions other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setDescription(String value) Deprecated.elide.model.FieldPersistenceOptions.description is deprecated.setDescriptionBytes(com.google.protobuf.ByteString value) Deprecated.elide.model.FieldPersistenceOptions.description is deprecated.setExplicit(boolean value) This field should always be explicitly listed with a value, even if it is set to the default value.setImmutable(boolean value) This field should allow writes when the model that contains it is written, but then, henceforth, the model should not allow this field to be mutated.setReadOnly(boolean value) This field should not allow writes, but rather produce its value dynamically.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStampCreate(boolean value) This item is a timestamp, and we would like it to be automatically set when the model is created.setStampUpdate(boolean value) This item is a timestamp, and we would like it to be automatically updated each time the model that contains it is modified in underlying storage.setSummary(String value) Summary for this field, which provides a narrative description.setSummaryBytes(com.google.protobuf.ByteString value) Summary for this field, which provides a narrative description.Field type, for special-case fields.setTypeValue(int value) Field type, for special-case fields.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setVisibility(FieldVisibility value) Describes the visibility level of a given field in a tree of fields.setVisibilityValue(int value) Describes the visibility level of a given field in a tree of fields.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, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<FieldPersistenceOptions.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<FieldPersistenceOptions.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<FieldPersistenceOptions.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<FieldPersistenceOptions.Builder>
-
setField
public FieldPersistenceOptions.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<FieldPersistenceOptions.Builder>
-
clearField
public FieldPersistenceOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FieldPersistenceOptions.Builder>
-
clearOneof
public FieldPersistenceOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<FieldPersistenceOptions.Builder>
-
setRepeatedField
public FieldPersistenceOptions.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<FieldPersistenceOptions.Builder>
-
addRepeatedField
public FieldPersistenceOptions.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<FieldPersistenceOptions.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FieldPersistenceOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<FieldPersistenceOptions.Builder>
-
mergeFrom
public FieldPersistenceOptions.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<FieldPersistenceOptions.Builder>- Throws:
IOException
-
getTypeValue
public int getTypeValue()Field type, for special-case fields.
.elide.model.FieldType type = 1 [json_name = "type"];- Specified by:
getTypeValuein interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
Field type, for special-case fields.
.elide.model.FieldType type = 1 [json_name = "type"];- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
Field type, for special-case fields.
.elide.model.FieldType type = 1 [json_name = "type"];- Specified by:
getTypein interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The type.
-
setType
Field type, for special-case fields.
.elide.model.FieldType type = 1 [json_name = "type"];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Field type, for special-case fields.
.elide.model.FieldType type = 1 [json_name = "type"];- Returns:
- This builder for chaining.
-
getSummary
Summary for this field, which provides a narrative description. It should be suitable for use in external circumstances, like documentation.
string summary = 2 [json_name = "summary"];- Specified by:
getSummaryin interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The summary.
-
getSummaryBytes
public com.google.protobuf.ByteString getSummaryBytes()Summary for this field, which provides a narrative description. It should be suitable for use in external circumstances, like documentation.
string summary = 2 [json_name = "summary"];- Specified by:
getSummaryBytesin interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The bytes for summary.
-
setSummary
Summary for this field, which provides a narrative description. It should be suitable for use in external circumstances, like documentation.
string summary = 2 [json_name = "summary"];- Parameters:
value- The summary to set.- Returns:
- This builder for chaining.
-
clearSummary
Summary for this field, which provides a narrative description. It should be suitable for use in external circumstances, like documentation.
string summary = 2 [json_name = "summary"];- Returns:
- This builder for chaining.
-
setSummaryBytes
Summary for this field, which provides a narrative description. It should be suitable for use in external circumstances, like documentation.
string summary = 2 [json_name = "summary"];- Parameters:
value- The bytes for summary to set.- Returns:
- This builder for chaining.
-
getStampUpdate
public boolean getStampUpdate()This item is a timestamp, and we would like it to be automatically updated each time the model that contains it is modified in underlying storage. The field should be read-only.
bool stamp_update = 3 [json_name = "stampUpdate"];- Specified by:
getStampUpdatein interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The stampUpdate.
-
setStampUpdate
This item is a timestamp, and we would like it to be automatically updated each time the model that contains it is modified in underlying storage. The field should be read-only.
bool stamp_update = 3 [json_name = "stampUpdate"];- Parameters:
value- The stampUpdate to set.- Returns:
- This builder for chaining.
-
clearStampUpdate
This item is a timestamp, and we would like it to be automatically updated each time the model that contains it is modified in underlying storage. The field should be read-only.
bool stamp_update = 3 [json_name = "stampUpdate"];- Returns:
- This builder for chaining.
-
getStampCreate
public boolean getStampCreate()This item is a timestamp, and we would like it to be automatically set when the model is created. After that point, we would like this field to be read-only.
bool stamp_create = 4 [json_name = "stampCreate"];- Specified by:
getStampCreatein interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The stampCreate.
-
setStampCreate
This item is a timestamp, and we would like it to be automatically set when the model is created. After that point, we would like this field to be read-only.
bool stamp_create = 4 [json_name = "stampCreate"];- Parameters:
value- The stampCreate to set.- Returns:
- This builder for chaining.
-
clearStampCreate
This item is a timestamp, and we would like it to be automatically set when the model is created. After that point, we would like this field to be read-only.
bool stamp_create = 4 [json_name = "stampCreate"];- Returns:
- This builder for chaining.
-
getReadOnly
public boolean getReadOnly()This field should not allow writes, but rather produce its value dynamically. Fields marked in this manner cannot be set by external code at any point in time.
bool read_only = 5 [json_name = "readOnly"];- Specified by:
getReadOnlyin interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The readOnly.
-
setReadOnly
This field should not allow writes, but rather produce its value dynamically. Fields marked in this manner cannot be set by external code at any point in time.
bool read_only = 5 [json_name = "readOnly"];- Parameters:
value- The readOnly to set.- Returns:
- This builder for chaining.
-
clearReadOnly
This field should not allow writes, but rather produce its value dynamically. Fields marked in this manner cannot be set by external code at any point in time.
bool read_only = 5 [json_name = "readOnly"];- Returns:
- This builder for chaining.
-
getImmutable
public boolean getImmutable()This field should allow writes when the model that contains it is written, but then, henceforth, the model should not allow this field to be mutated.
bool immutable = 6 [json_name = "immutable"];- Specified by:
getImmutablein interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The immutable.
-
setImmutable
This field should allow writes when the model that contains it is written, but then, henceforth, the model should not allow this field to be mutated.
bool immutable = 6 [json_name = "immutable"];- Parameters:
value- The immutable to set.- Returns:
- This builder for chaining.
-
clearImmutable
This field should allow writes when the model that contains it is written, but then, henceforth, the model should not allow this field to be mutated.
bool immutable = 6 [json_name = "immutable"];- Returns:
- This builder for chaining.
-
getExplicit
public boolean getExplicit()This field should always be explicitly listed with a value, even if it is set to the default value. This function is especially useful for enums with default values, when there is a desire to have consistent indexes.
bool explicit = 7 [json_name = "explicit"];- Specified by:
getExplicitin interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The explicit.
-
setExplicit
This field should always be explicitly listed with a value, even if it is set to the default value. This function is especially useful for enums with default values, when there is a desire to have consistent indexes.
bool explicit = 7 [json_name = "explicit"];- Parameters:
value- The explicit to set.- Returns:
- This builder for chaining.
-
clearExplicit
This field should always be explicitly listed with a value, even if it is set to the default value. This function is especially useful for enums with default values, when there is a desire to have consistent indexes.
bool explicit = 7 [json_name = "explicit"];- Returns:
- This builder for chaining.
-
getVisibilityValue
public int getVisibilityValue()Describes the visibility level of a given field in a tree of fields. This value applies recursively under message fields on which it is applied. Depending on the visibility level active when data is deserialized or serialized, certain data may be withheld corresponding to the invoking user or system's access level.
.elide.model.FieldVisibility visibility = 8 [json_name = "visibility"];- Specified by:
getVisibilityValuein interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The enum numeric value on the wire for visibility.
-
setVisibilityValue
Describes the visibility level of a given field in a tree of fields. This value applies recursively under message fields on which it is applied. Depending on the visibility level active when data is deserialized or serialized, certain data may be withheld corresponding to the invoking user or system's access level.
.elide.model.FieldVisibility visibility = 8 [json_name = "visibility"];- Parameters:
value- The enum numeric value on the wire for visibility to set.- Returns:
- This builder for chaining.
-
getVisibility
Describes the visibility level of a given field in a tree of fields. This value applies recursively under message fields on which it is applied. Depending on the visibility level active when data is deserialized or serialized, certain data may be withheld corresponding to the invoking user or system's access level.
.elide.model.FieldVisibility visibility = 8 [json_name = "visibility"];- Specified by:
getVisibilityin interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The visibility.
-
setVisibility
Describes the visibility level of a given field in a tree of fields. This value applies recursively under message fields on which it is applied. Depending on the visibility level active when data is deserialized or serialized, certain data may be withheld corresponding to the invoking user or system's access level.
.elide.model.FieldVisibility visibility = 8 [json_name = "visibility"];- Parameters:
value- The visibility to set.- Returns:
- This builder for chaining.
-
clearVisibility
Describes the visibility level of a given field in a tree of fields. This value applies recursively under message fields on which it is applied. Depending on the visibility level active when data is deserialized or serialized, certain data may be withheld corresponding to the invoking user or system's access level.
.elide.model.FieldVisibility visibility = 8 [json_name = "visibility"];- Returns:
- This builder for chaining.
-
getDescription
Deprecated.elide.model.FieldPersistenceOptions.description is deprecated. See elide/model/model.proto;l=254Provided for backwards compatibility. Do not use.
string description = 9 [json_name = "description", deprecated = true];- Specified by:
getDescriptionin interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The description.
-
getDescriptionBytes
Deprecated.elide.model.FieldPersistenceOptions.description is deprecated. See elide/model/model.proto;l=254Provided for backwards compatibility. Do not use.
string description = 9 [json_name = "description", deprecated = true];- Specified by:
getDescriptionBytesin interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The bytes for description.
-
setDescription
Deprecated.elide.model.FieldPersistenceOptions.description is deprecated. See elide/model/model.proto;l=254Provided for backwards compatibility. Do not use.
string description = 9 [json_name = "description", deprecated = true];- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Deprecated.elide.model.FieldPersistenceOptions.description is deprecated. See elide/model/model.proto;l=254Provided for backwards compatibility. Do not use.
string description = 9 [json_name = "description", deprecated = true];- Returns:
- This builder for chaining.
-
setDescriptionBytes
@Deprecated public FieldPersistenceOptions.Builder setDescriptionBytes(com.google.protobuf.ByteString value) Deprecated.elide.model.FieldPersistenceOptions.description is deprecated. See elide/model/model.proto;l=254Provided for backwards compatibility. Do not use.
string description = 9 [json_name = "description", deprecated = true];- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final FieldPersistenceOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FieldPersistenceOptions.Builder>
-
mergeUnknownFields
public final FieldPersistenceOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FieldPersistenceOptions.Builder>
-