Package com.authzed.api.v1
Class ContextualizedCaveat.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ContextualizedCaveat.Builder>
com.authzed.api.v1.ContextualizedCaveat.Builder
- All Implemented Interfaces:
ContextualizedCaveatOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ContextualizedCaveat
public static final class ContextualizedCaveat.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ContextualizedCaveat.Builder>
implements ContextualizedCaveatOrBuilder
ContextualizedCaveat represents a reference to a caveat to be used by caveated relationships. The context consists of key-value pairs that will be injected at evaluation time. The keys must match the arguments defined on the caveat in the schema.Protobuf type
authzed.api.v1.ContextualizedCaveat-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()caveat_name is the name of the caveat expression to use, as defined in the schemacontext consists of any named values that are defined at write time for the caveat expressioncaveat_name is the name of the caveat expression to use, as defined in the schemacom.google.protobuf.ByteStringcaveat_name is the name of the caveat expression to use, as defined in the schemacom.google.protobuf.Structcontext consists of any named values that are defined at write time for the caveat expressioncom.google.protobuf.Struct.Buildercontext consists of any named values that are defined at write time for the caveat expressioncom.google.protobuf.StructOrBuildercontext consists of any named values that are defined at write time for the caveat expressionstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorbooleancontext consists of any named values that are defined at write time for the caveat expressionprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeContext(com.google.protobuf.Struct value) context consists of any named values that are defined at write time for the caveat expressionmergeFrom(ContextualizedCaveat other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCaveatName(String value) caveat_name is the name of the caveat expression to use, as defined in the schemasetCaveatNameBytes(com.google.protobuf.ByteString value) caveat_name is the name of the caveat expression to use, as defined in the schemasetContext(com.google.protobuf.Struct value) context consists of any named values that are defined at write time for the caveat expressionsetContext(com.google.protobuf.Struct.Builder builderForValue) context consists of any named values that are defined at write time for the caveat expressionMethods 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<ContextualizedCaveat.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<ContextualizedCaveat.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<ContextualizedCaveat.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<ContextualizedCaveat.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ContextualizedCaveat.Builder>
-
mergeFrom
public ContextualizedCaveat.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<ContextualizedCaveat.Builder>- Throws:
IOException
-
getCaveatName
caveat_name is the name of the caveat expression to use, as defined in the schema
string caveat_name = 1 [(.validate.rules) = { ... }- Specified by:
getCaveatNamein interfaceContextualizedCaveatOrBuilder- Returns:
- The caveatName.
-
getCaveatNameBytes
public com.google.protobuf.ByteString getCaveatNameBytes()caveat_name is the name of the caveat expression to use, as defined in the schema
string caveat_name = 1 [(.validate.rules) = { ... }- Specified by:
getCaveatNameBytesin interfaceContextualizedCaveatOrBuilder- Returns:
- The bytes for caveatName.
-
setCaveatName
caveat_name is the name of the caveat expression to use, as defined in the schema
string caveat_name = 1 [(.validate.rules) = { ... }- Parameters:
value- The caveatName to set.- Returns:
- This builder for chaining.
-
clearCaveatName
caveat_name is the name of the caveat expression to use, as defined in the schema
string caveat_name = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setCaveatNameBytes
caveat_name is the name of the caveat expression to use, as defined in the schema
string caveat_name = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for caveatName to set.- Returns:
- This builder for chaining.
-
hasContext
public boolean hasContext()context consists of any named values that are defined at write time for the caveat expression
.google.protobuf.Struct context = 2 [(.validate.rules) = { ... }- Specified by:
hasContextin interfaceContextualizedCaveatOrBuilder- Returns:
- Whether the context field is set.
-
getContext
public com.google.protobuf.Struct getContext()context consists of any named values that are defined at write time for the caveat expression
.google.protobuf.Struct context = 2 [(.validate.rules) = { ... }- Specified by:
getContextin interfaceContextualizedCaveatOrBuilder- Returns:
- The context.
-
setContext
context consists of any named values that are defined at write time for the caveat expression
.google.protobuf.Struct context = 2 [(.validate.rules) = { ... } -
setContext
context consists of any named values that are defined at write time for the caveat expression
.google.protobuf.Struct context = 2 [(.validate.rules) = { ... } -
mergeContext
context consists of any named values that are defined at write time for the caveat expression
.google.protobuf.Struct context = 2 [(.validate.rules) = { ... } -
clearContext
context consists of any named values that are defined at write time for the caveat expression
.google.protobuf.Struct context = 2 [(.validate.rules) = { ... } -
getContextBuilder
public com.google.protobuf.Struct.Builder getContextBuilder()context consists of any named values that are defined at write time for the caveat expression
.google.protobuf.Struct context = 2 [(.validate.rules) = { ... } -
getContextOrBuilder
public com.google.protobuf.StructOrBuilder getContextOrBuilder()context consists of any named values that are defined at write time for the caveat expression
.google.protobuf.Struct context = 2 [(.validate.rules) = { ... }- Specified by:
getContextOrBuilderin interfaceContextualizedCaveatOrBuilder
-