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.ByteString
caveat_name is the name of the caveat expression to use, as defined in the schemacom.google.protobuf.Struct
context consists of any named values that are defined at write time for the caveat expressioncom.google.protobuf.Struct.Builder
context consists of any named values that are defined at write time for the caveat expressioncom.google.protobuf.StructOrBuilder
context consists of any named values that are defined at write time for the caveat expressionstatic final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
context consists of any named values that are defined at write time for the caveat expressionprotected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeContext
(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, 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<ContextualizedCaveat.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<ContextualizedCaveat.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<ContextualizedCaveat.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<ContextualizedCaveat.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getCaveatName
in 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:
getCaveatNameBytes
in 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:
hasContext
in 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:
getContext
in 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:
getContextOrBuilder
in interfaceContextualizedCaveatOrBuilder
-