Package com.authzed.api.v1
Class Consistency.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Consistency.Builder>
com.authzed.api.v1.Consistency.Builder
- All Implemented Interfaces:
ConsistencyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Consistency
public static final class Consistency.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Consistency.Builder>
implements ConsistencyOrBuilder
Consistency will define how a request is handled by the backend. By defining a consistency requirement, and a token at which those requirements should be applied, where applicable.Protobuf type
authzed.api.v1.Consistency-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()at_exact_snapshot indicates that all data used in the API call must be *at the given* snapshot in time; if the snapshot is no longer available, an error will be returned to the caller.at_least_as_fresh indicates that all data used in the API call must be *at least as fresh* as that found in the ZedToken; more recent data might be used if available or faster.fully_consistent indicates that all data used in the API call *must* be at the most recent snapshot found.minimize_latency indicates that the latency for the call should be minimized by having the system select the fastest snapshot available.at_exact_snapshot indicates that all data used in the API call must be *at the given* snapshot in time; if the snapshot is no longer available, an error will be returned to the caller.at_exact_snapshot indicates that all data used in the API call must be *at the given* snapshot in time; if the snapshot is no longer available, an error will be returned to the caller.at_exact_snapshot indicates that all data used in the API call must be *at the given* snapshot in time; if the snapshot is no longer available, an error will be returned to the caller.at_least_as_fresh indicates that all data used in the API call must be *at least as fresh* as that found in the ZedToken; more recent data might be used if available or faster.at_least_as_fresh indicates that all data used in the API call must be *at least as fresh* as that found in the ZedToken; more recent data might be used if available or faster.at_least_as_fresh indicates that all data used in the API call must be *at least as fresh* as that found in the ZedToken; more recent data might be used if available or faster.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorbooleanfully_consistent indicates that all data used in the API call *must* be at the most recent snapshot found.booleanminimize_latency indicates that the latency for the call should be minimized by having the system select the fastest snapshot available.booleanat_exact_snapshot indicates that all data used in the API call must be *at the given* snapshot in time; if the snapshot is no longer available, an error will be returned to the caller.booleanat_least_as_fresh indicates that all data used in the API call must be *at least as fresh* as that found in the ZedToken; more recent data might be used if available or faster.booleanfully_consistent indicates that all data used in the API call *must* be at the most recent snapshot found.booleanminimize_latency indicates that the latency for the call should be minimized by having the system select the fastest snapshot available.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeAtExactSnapshot(ZedToken value) at_exact_snapshot indicates that all data used in the API call must be *at the given* snapshot in time; if the snapshot is no longer available, an error will be returned to the caller.mergeAtLeastAsFresh(ZedToken value) at_least_as_fresh indicates that all data used in the API call must be *at least as fresh* as that found in the ZedToken; more recent data might be used if available or faster.mergeFrom(Consistency other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAtExactSnapshot(ZedToken value) at_exact_snapshot indicates that all data used in the API call must be *at the given* snapshot in time; if the snapshot is no longer available, an error will be returned to the caller.setAtExactSnapshot(ZedToken.Builder builderForValue) at_exact_snapshot indicates that all data used in the API call must be *at the given* snapshot in time; if the snapshot is no longer available, an error will be returned to the caller.setAtLeastAsFresh(ZedToken value) at_least_as_fresh indicates that all data used in the API call must be *at least as fresh* as that found in the ZedToken; more recent data might be used if available or faster.setAtLeastAsFresh(ZedToken.Builder builderForValue) at_least_as_fresh indicates that all data used in the API call must be *at least as fresh* as that found in the ZedToken; more recent data might be used if available or faster.setFullyConsistent(boolean value) fully_consistent indicates that all data used in the API call *must* be at the most recent snapshot found.setMinimizeLatency(boolean value) minimize_latency indicates that the latency for the call should be minimized by having the system select the fastest snapshot available.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Consistency.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Consistency.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.GeneratedMessage.Builder<Consistency.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Consistency.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Consistency.Builder>
-
mergeFrom
public Consistency.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<Consistency.Builder>- Throws:
IOException
-
getRequirementCase
- Specified by:
getRequirementCasein interfaceConsistencyOrBuilder
-
clearRequirement
-
hasMinimizeLatency
public boolean hasMinimizeLatency()minimize_latency indicates that the latency for the call should be minimized by having the system select the fastest snapshot available.
bool minimize_latency = 1 [(.validate.rules) = { ... }- Specified by:
hasMinimizeLatencyin interfaceConsistencyOrBuilder- Returns:
- Whether the minimizeLatency field is set.
-
getMinimizeLatency
public boolean getMinimizeLatency()minimize_latency indicates that the latency for the call should be minimized by having the system select the fastest snapshot available.
bool minimize_latency = 1 [(.validate.rules) = { ... }- Specified by:
getMinimizeLatencyin interfaceConsistencyOrBuilder- Returns:
- The minimizeLatency.
-
setMinimizeLatency
minimize_latency indicates that the latency for the call should be minimized by having the system select the fastest snapshot available.
bool minimize_latency = 1 [(.validate.rules) = { ... }- Parameters:
value- The minimizeLatency to set.- Returns:
- This builder for chaining.
-
clearMinimizeLatency
minimize_latency indicates that the latency for the call should be minimized by having the system select the fastest snapshot available.
bool minimize_latency = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
hasAtLeastAsFresh
public boolean hasAtLeastAsFresh()at_least_as_fresh indicates that all data used in the API call must be *at least as fresh* as that found in the ZedToken; more recent data might be used if available or faster.
.authzed.api.v1.ZedToken at_least_as_fresh = 2;- Specified by:
hasAtLeastAsFreshin interfaceConsistencyOrBuilder- Returns:
- Whether the atLeastAsFresh field is set.
-
getAtLeastAsFresh
at_least_as_fresh indicates that all data used in the API call must be *at least as fresh* as that found in the ZedToken; more recent data might be used if available or faster.
.authzed.api.v1.ZedToken at_least_as_fresh = 2;- Specified by:
getAtLeastAsFreshin interfaceConsistencyOrBuilder- Returns:
- The atLeastAsFresh.
-
setAtLeastAsFresh
at_least_as_fresh indicates that all data used in the API call must be *at least as fresh* as that found in the ZedToken; more recent data might be used if available or faster.
.authzed.api.v1.ZedToken at_least_as_fresh = 2; -
setAtLeastAsFresh
at_least_as_fresh indicates that all data used in the API call must be *at least as fresh* as that found in the ZedToken; more recent data might be used if available or faster.
.authzed.api.v1.ZedToken at_least_as_fresh = 2; -
mergeAtLeastAsFresh
at_least_as_fresh indicates that all data used in the API call must be *at least as fresh* as that found in the ZedToken; more recent data might be used if available or faster.
.authzed.api.v1.ZedToken at_least_as_fresh = 2; -
clearAtLeastAsFresh
at_least_as_fresh indicates that all data used in the API call must be *at least as fresh* as that found in the ZedToken; more recent data might be used if available or faster.
.authzed.api.v1.ZedToken at_least_as_fresh = 2; -
getAtLeastAsFreshBuilder
at_least_as_fresh indicates that all data used in the API call must be *at least as fresh* as that found in the ZedToken; more recent data might be used if available or faster.
.authzed.api.v1.ZedToken at_least_as_fresh = 2; -
getAtLeastAsFreshOrBuilder
at_least_as_fresh indicates that all data used in the API call must be *at least as fresh* as that found in the ZedToken; more recent data might be used if available or faster.
.authzed.api.v1.ZedToken at_least_as_fresh = 2;- Specified by:
getAtLeastAsFreshOrBuilderin interfaceConsistencyOrBuilder
-
hasAtExactSnapshot
public boolean hasAtExactSnapshot()at_exact_snapshot indicates that all data used in the API call must be *at the given* snapshot in time; if the snapshot is no longer available, an error will be returned to the caller.
.authzed.api.v1.ZedToken at_exact_snapshot = 3;- Specified by:
hasAtExactSnapshotin interfaceConsistencyOrBuilder- Returns:
- Whether the atExactSnapshot field is set.
-
getAtExactSnapshot
at_exact_snapshot indicates that all data used in the API call must be *at the given* snapshot in time; if the snapshot is no longer available, an error will be returned to the caller.
.authzed.api.v1.ZedToken at_exact_snapshot = 3;- Specified by:
getAtExactSnapshotin interfaceConsistencyOrBuilder- Returns:
- The atExactSnapshot.
-
setAtExactSnapshot
at_exact_snapshot indicates that all data used in the API call must be *at the given* snapshot in time; if the snapshot is no longer available, an error will be returned to the caller.
.authzed.api.v1.ZedToken at_exact_snapshot = 3; -
setAtExactSnapshot
at_exact_snapshot indicates that all data used in the API call must be *at the given* snapshot in time; if the snapshot is no longer available, an error will be returned to the caller.
.authzed.api.v1.ZedToken at_exact_snapshot = 3; -
mergeAtExactSnapshot
at_exact_snapshot indicates that all data used in the API call must be *at the given* snapshot in time; if the snapshot is no longer available, an error will be returned to the caller.
.authzed.api.v1.ZedToken at_exact_snapshot = 3; -
clearAtExactSnapshot
at_exact_snapshot indicates that all data used in the API call must be *at the given* snapshot in time; if the snapshot is no longer available, an error will be returned to the caller.
.authzed.api.v1.ZedToken at_exact_snapshot = 3; -
getAtExactSnapshotBuilder
at_exact_snapshot indicates that all data used in the API call must be *at the given* snapshot in time; if the snapshot is no longer available, an error will be returned to the caller.
.authzed.api.v1.ZedToken at_exact_snapshot = 3; -
getAtExactSnapshotOrBuilder
at_exact_snapshot indicates that all data used in the API call must be *at the given* snapshot in time; if the snapshot is no longer available, an error will be returned to the caller.
.authzed.api.v1.ZedToken at_exact_snapshot = 3;- Specified by:
getAtExactSnapshotOrBuilderin interfaceConsistencyOrBuilder
-
hasFullyConsistent
public boolean hasFullyConsistent()fully_consistent indicates that all data used in the API call *must* be at the most recent snapshot found. NOTE: using this method can be *quite slow*, so unless there is a need to do so, it is recommended to use `at_least_as_fresh` with a stored ZedToken.
bool fully_consistent = 4 [(.validate.rules) = { ... }- Specified by:
hasFullyConsistentin interfaceConsistencyOrBuilder- Returns:
- Whether the fullyConsistent field is set.
-
getFullyConsistent
public boolean getFullyConsistent()fully_consistent indicates that all data used in the API call *must* be at the most recent snapshot found. NOTE: using this method can be *quite slow*, so unless there is a need to do so, it is recommended to use `at_least_as_fresh` with a stored ZedToken.
bool fully_consistent = 4 [(.validate.rules) = { ... }- Specified by:
getFullyConsistentin interfaceConsistencyOrBuilder- Returns:
- The fullyConsistent.
-
setFullyConsistent
fully_consistent indicates that all data used in the API call *must* be at the most recent snapshot found. NOTE: using this method can be *quite slow*, so unless there is a need to do so, it is recommended to use `at_least_as_fresh` with a stored ZedToken.
bool fully_consistent = 4 [(.validate.rules) = { ... }- Parameters:
value- The fullyConsistent to set.- Returns:
- This builder for chaining.
-
clearFullyConsistent
fully_consistent indicates that all data used in the API call *must* be at the most recent snapshot found. NOTE: using this method can be *quite slow*, so unless there is a need to do so, it is recommended to use `at_least_as_fresh` with a stored ZedToken.
bool fully_consistent = 4 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-