Package com.authzed.api.v1
Class CaveatEvalInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CaveatEvalInfo.Builder>
com.authzed.api.v1.CaveatEvalInfo.Builder
- All Implemented Interfaces:
CaveatEvalInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CaveatEvalInfo
public static final class CaveatEvalInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CaveatEvalInfo.Builder>
implements CaveatEvalInfoOrBuilder
CaveatEvalInfo holds information about a caveat expression that was evaluated.Protobuf type
authzed.api.v1.CaveatEvalInfo-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()caveat_name is the name of the caveat that was executed, if applicable.context consists of any named values that were used for evaluating the caveat expression.expression is the expression that was evaluated.partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.result is the result of the evaluation.caveat_name is the name of the caveat that was executed, if applicable.com.google.protobuf.ByteStringcaveat_name is the name of the caveat that was executed, if applicable.com.google.protobuf.Structcontext consists of any named values that were used for evaluating the caveat expression.com.google.protobuf.Struct.Buildercontext consists of any named values that were used for evaluating the caveat expression.com.google.protobuf.StructOrBuildercontext consists of any named values that were used for evaluating the caveat expression.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorexpression is the expression that was evaluated.com.google.protobuf.ByteStringexpression is the expression that was evaluated.partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.result is the result of the evaluation.intresult is the result of the evaluation.booleancontext consists of any named values that were used for evaluating the caveat expression.booleanpartial_caveat_info holds information of a partially-evaluated caveated response, if applicable.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeContext(com.google.protobuf.Struct value) context consists of any named values that were used for evaluating the caveat expression.mergeFrom(CaveatEvalInfo other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.setCaveatName(String value) caveat_name is the name of the caveat that was executed, if applicable.setCaveatNameBytes(com.google.protobuf.ByteString value) caveat_name is the name of the caveat that was executed, if applicable.setContext(com.google.protobuf.Struct value) context consists of any named values that were used for evaluating the caveat expression.setContext(com.google.protobuf.Struct.Builder builderForValue) context consists of any named values that were used for evaluating the caveat expression.setExpression(String value) expression is the expression that was evaluated.setExpressionBytes(com.google.protobuf.ByteString value) expression is the expression that was evaluated.partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.setPartialCaveatInfo(PartialCaveatInfo.Builder builderForValue) partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.setResult(CaveatEvalInfo.Result value) result is the result of the evaluation.setResultValue(int value) result is the result of the evaluation.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<CaveatEvalInfo.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<CaveatEvalInfo.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<CaveatEvalInfo.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<CaveatEvalInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CaveatEvalInfo.Builder>
-
mergeFrom
public CaveatEvalInfo.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<CaveatEvalInfo.Builder>- Throws:
IOException
-
getExpression
expression is the expression that was evaluated.
string expression = 1;- Specified by:
getExpressionin interfaceCaveatEvalInfoOrBuilder- Returns:
- The expression.
-
getExpressionBytes
public com.google.protobuf.ByteString getExpressionBytes()expression is the expression that was evaluated.
string expression = 1;- Specified by:
getExpressionBytesin interfaceCaveatEvalInfoOrBuilder- Returns:
- The bytes for expression.
-
setExpression
expression is the expression that was evaluated.
string expression = 1;- Parameters:
value- The expression to set.- Returns:
- This builder for chaining.
-
clearExpression
expression is the expression that was evaluated.
string expression = 1;- Returns:
- This builder for chaining.
-
setExpressionBytes
expression is the expression that was evaluated.
string expression = 1;- Parameters:
value- The bytes for expression to set.- Returns:
- This builder for chaining.
-
getResultValue
public int getResultValue()result is the result of the evaluation.
.authzed.api.v1.CaveatEvalInfo.Result result = 2;- Specified by:
getResultValuein interfaceCaveatEvalInfoOrBuilder- Returns:
- The enum numeric value on the wire for result.
-
setResultValue
result is the result of the evaluation.
.authzed.api.v1.CaveatEvalInfo.Result result = 2;- Parameters:
value- The enum numeric value on the wire for result to set.- Returns:
- This builder for chaining.
-
getResult
result is the result of the evaluation.
.authzed.api.v1.CaveatEvalInfo.Result result = 2;- Specified by:
getResultin interfaceCaveatEvalInfoOrBuilder- Returns:
- The result.
-
setResult
result is the result of the evaluation.
.authzed.api.v1.CaveatEvalInfo.Result result = 2;- Parameters:
value- The result to set.- Returns:
- This builder for chaining.
-
clearResult
result is the result of the evaluation.
.authzed.api.v1.CaveatEvalInfo.Result result = 2;- Returns:
- This builder for chaining.
-
hasContext
public boolean hasContext()context consists of any named values that were used for evaluating the caveat expression.
.google.protobuf.Struct context = 3;- Specified by:
hasContextin interfaceCaveatEvalInfoOrBuilder- Returns:
- Whether the context field is set.
-
getContext
public com.google.protobuf.Struct getContext()context consists of any named values that were used for evaluating the caveat expression.
.google.protobuf.Struct context = 3;- Specified by:
getContextin interfaceCaveatEvalInfoOrBuilder- Returns:
- The context.
-
setContext
context consists of any named values that were used for evaluating the caveat expression.
.google.protobuf.Struct context = 3; -
setContext
context consists of any named values that were used for evaluating the caveat expression.
.google.protobuf.Struct context = 3; -
mergeContext
context consists of any named values that were used for evaluating the caveat expression.
.google.protobuf.Struct context = 3; -
clearContext
context consists of any named values that were used for evaluating the caveat expression.
.google.protobuf.Struct context = 3; -
getContextBuilder
public com.google.protobuf.Struct.Builder getContextBuilder()context consists of any named values that were used for evaluating the caveat expression.
.google.protobuf.Struct context = 3; -
getContextOrBuilder
public com.google.protobuf.StructOrBuilder getContextOrBuilder()context consists of any named values that were used for evaluating the caveat expression.
.google.protobuf.Struct context = 3;- Specified by:
getContextOrBuilderin interfaceCaveatEvalInfoOrBuilder
-
hasPartialCaveatInfo
public boolean hasPartialCaveatInfo()partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 4;- Specified by:
hasPartialCaveatInfoin interfaceCaveatEvalInfoOrBuilder- Returns:
- Whether the partialCaveatInfo field is set.
-
getPartialCaveatInfo
partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 4;- Specified by:
getPartialCaveatInfoin interfaceCaveatEvalInfoOrBuilder- Returns:
- The partialCaveatInfo.
-
setPartialCaveatInfo
partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 4; -
setPartialCaveatInfo
partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 4; -
mergePartialCaveatInfo
partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 4; -
clearPartialCaveatInfo
partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 4; -
getPartialCaveatInfoBuilder
partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 4; -
getPartialCaveatInfoOrBuilder
partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.
.authzed.api.v1.PartialCaveatInfo partial_caveat_info = 4;- Specified by:
getPartialCaveatInfoOrBuilderin interfaceCaveatEvalInfoOrBuilder
-
getCaveatName
caveat_name is the name of the caveat that was executed, if applicable.
string caveat_name = 5;- Specified by:
getCaveatNamein interfaceCaveatEvalInfoOrBuilder- Returns:
- The caveatName.
-
getCaveatNameBytes
public com.google.protobuf.ByteString getCaveatNameBytes()caveat_name is the name of the caveat that was executed, if applicable.
string caveat_name = 5;- Specified by:
getCaveatNameBytesin interfaceCaveatEvalInfoOrBuilder- Returns:
- The bytes for caveatName.
-
setCaveatName
caveat_name is the name of the caveat that was executed, if applicable.
string caveat_name = 5;- Parameters:
value- The caveatName to set.- Returns:
- This builder for chaining.
-
clearCaveatName
caveat_name is the name of the caveat that was executed, if applicable.
string caveat_name = 5;- Returns:
- This builder for chaining.
-
setCaveatNameBytes
caveat_name is the name of the caveat that was executed, if applicable.
string caveat_name = 5;- Parameters:
value- The bytes for caveatName to set.- Returns:
- This builder for chaining.
-