Package com.elide.model
Class DatapointOptions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DatapointOptions.Builder>
com.elide.model.DatapointOptions.Builder
- All Implemented Interfaces:
DatapointOptionsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
DatapointOptions
public static final class DatapointOptions.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<DatapointOptions.Builder>
implements DatapointOptionsOrBuilder
Options specified for a given datamodel point (which can be a message, a field, an enum, and so on), which describe how the object or field may be validated in various circumstances, and how it should be handled with regard to exposure visibility to invoking code.Protobuf type
elide.model.DatapointOptions-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Whether this property contains a "concrete" sub-message, in which case, its properties are lifted to the parent entity.Indicate to the data storage engine that a given field is ephemeral, and should not be stored, but rather held with a calculated value for use in systems upstream from the data storage layer.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Whether this data point (model or field or enum, etc) should be considered "required" for this model to be valid.Sets the visibility options for this data point.clone()booleanWhether this property contains a "concrete" sub-message, in which case, its properties are lifted to the parent entity.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIndicate to the data storage engine that a given field is ephemeral, and should not be stored, but rather held with a calculated value for use in systems upstream from the data storage layer.booleanWhether this data point (model or field or enum, etc) should be considered "required" for this model to be valid.Sets the visibility options for this data point.intSets the visibility options for this data point.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(DatapointOptions other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final DatapointOptions.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setConcrete(boolean value) Whether this property contains a "concrete" sub-message, in which case, its properties are lifted to the parent entity.setEphemeral(boolean value) Indicate to the data storage engine that a given field is ephemeral, and should not be stored, but rather held with a calculated value for use in systems upstream from the data storage layer.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRequired(boolean value) Whether this data point (model or field or enum, etc) should be considered "required" for this model to be valid.final DatapointOptions.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setVisibility(Visibility value) Sets the visibility options for this data point.setVisibilityValue(int value) Sets the visibility options for this data point.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<DatapointOptions.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<DatapointOptions.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<DatapointOptions.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<DatapointOptions.Builder>
-
setField
public DatapointOptions.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<DatapointOptions.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DatapointOptions.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DatapointOptions.Builder>
-
setRepeatedField
public DatapointOptions.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<DatapointOptions.Builder>
-
addRepeatedField
public DatapointOptions.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<DatapointOptions.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DatapointOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<DatapointOptions.Builder>
-
mergeFrom
public DatapointOptions.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<DatapointOptions.Builder>- Throws:
IOException
-
getVisibilityValue
public int getVisibilityValue()Sets the visibility options for this data point. Depending on these options, a property or model may be exposed to invoking code, protected from rewriting, and so on.
.elide.model.Visibility visibility = 1 [json_name = "visibility"];- Specified by:
getVisibilityValuein interfaceDatapointOptionsOrBuilder- Returns:
- The enum numeric value on the wire for visibility.
-
setVisibilityValue
Sets the visibility options for this data point. Depending on these options, a property or model may be exposed to invoking code, protected from rewriting, and so on.
.elide.model.Visibility visibility = 1 [json_name = "visibility"];- Parameters:
value- The enum numeric value on the wire for visibility to set.- Returns:
- This builder for chaining.
-
getVisibility
Sets the visibility options for this data point. Depending on these options, a property or model may be exposed to invoking code, protected from rewriting, and so on.
.elide.model.Visibility visibility = 1 [json_name = "visibility"];- Specified by:
getVisibilityin interfaceDatapointOptionsOrBuilder- Returns:
- The visibility.
-
setVisibility
Sets the visibility options for this data point. Depending on these options, a property or model may be exposed to invoking code, protected from rewriting, and so on.
.elide.model.Visibility visibility = 1 [json_name = "visibility"];- Parameters:
value- The visibility to set.- Returns:
- This builder for chaining.
-
clearVisibility
Sets the visibility options for this data point. Depending on these options, a property or model may be exposed to invoking code, protected from rewriting, and so on.
.elide.model.Visibility visibility = 1 [json_name = "visibility"];- Returns:
- This builder for chaining.
-
getRequired
public boolean getRequired()Whether this data point (model or field or enum, etc) should be considered "required" for this model to be valid. This setting is applied in various circumstances, usually when data crosses API boundaries.
bool required = 2 [json_name = "required"];- Specified by:
getRequiredin interfaceDatapointOptionsOrBuilder- Returns:
- The required.
-
setRequired
Whether this data point (model or field or enum, etc) should be considered "required" for this model to be valid. This setting is applied in various circumstances, usually when data crosses API boundaries.
bool required = 2 [json_name = "required"];- Parameters:
value- The required to set.- Returns:
- This builder for chaining.
-
clearRequired
Whether this data point (model or field or enum, etc) should be considered "required" for this model to be valid. This setting is applied in various circumstances, usually when data crosses API boundaries.
bool required = 2 [json_name = "required"];- Returns:
- This builder for chaining.
-
getConcrete
public boolean getConcrete()Whether this property contains a "concrete" sub-message, in which case, its properties are lifted to the parent entity. During decoding, a property is added to indicate the concrete selection made. This is usually combined with generic types in a one-of field, for instance, in `MenuProduct`.
bool concrete = 3 [json_name = "concrete"];- Specified by:
getConcretein interfaceDatapointOptionsOrBuilder- Returns:
- The concrete.
-
setConcrete
Whether this property contains a "concrete" sub-message, in which case, its properties are lifted to the parent entity. During decoding, a property is added to indicate the concrete selection made. This is usually combined with generic types in a one-of field, for instance, in `MenuProduct`.
bool concrete = 3 [json_name = "concrete"];- Parameters:
value- The concrete to set.- Returns:
- This builder for chaining.
-
clearConcrete
Whether this property contains a "concrete" sub-message, in which case, its properties are lifted to the parent entity. During decoding, a property is added to indicate the concrete selection made. This is usually combined with generic types in a one-of field, for instance, in `MenuProduct`.
bool concrete = 3 [json_name = "concrete"];- Returns:
- This builder for chaining.
-
getEphemeral
public boolean getEphemeral()Indicate to the data storage engine that a given field is ephemeral, and should not be stored, but rather held with a calculated value for use in systems upstream from the data storage layer.
bool ephemeral = 4 [json_name = "ephemeral"];- Specified by:
getEphemeralin interfaceDatapointOptionsOrBuilder- Returns:
- The ephemeral.
-
setEphemeral
Indicate to the data storage engine that a given field is ephemeral, and should not be stored, but rather held with a calculated value for use in systems upstream from the data storage layer.
bool ephemeral = 4 [json_name = "ephemeral"];- Parameters:
value- The ephemeral to set.- Returns:
- This builder for chaining.
-
clearEphemeral
Indicate to the data storage engine that a given field is ephemeral, and should not be stored, but rather held with a calculated value for use in systems upstream from the data storage layer.
bool ephemeral = 4 [json_name = "ephemeral"];- Returns:
- This builder for chaining.
-
setUnknownFields
public final DatapointOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DatapointOptions.Builder>
-
mergeUnknownFields
public final DatapointOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DatapointOptions.Builder>
-