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.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
fully_consistent indicates that all data used in the API call *must* be at the most recent snapshot found.boolean
minimize_latency indicates that the latency for the call should be minimized by having the system select the fastest snapshot available.boolean
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.boolean
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.boolean
fully_consistent indicates that all data used in the API call *must* be at the most recent snapshot found.boolean
minimize_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.FieldAccessorTable
final boolean
mergeAtExactSnapshot
(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, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Consistency.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.GeneratedMessage.Builder<Consistency.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.GeneratedMessage.Builder<Consistency.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Consistency.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Consistency.Builder>
- Throws:
IOException
-
getRequirementCase
- Specified by:
getRequirementCase
in 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:
hasMinimizeLatency
in 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:
getMinimizeLatency
in 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:
hasAtLeastAsFresh
in 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:
getAtLeastAsFresh
in 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:
getAtLeastAsFreshOrBuilder
in 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:
hasAtExactSnapshot
in 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:
getAtExactSnapshot
in 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:
getAtExactSnapshotOrBuilder
in 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:
hasFullyConsistent
in 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:
getFullyConsistent
in 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.
-