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.ByteString
caveat_name is the name of the caveat that was executed, if applicable.com.google.protobuf.Struct
context consists of any named values that were used for evaluating the caveat expression.com.google.protobuf.Struct.Builder
context consists of any named values that were used for evaluating the caveat expression.com.google.protobuf.StructOrBuilder
context consists of any named values that were used for evaluating the caveat expression.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
expression is the expression that was evaluated.com.google.protobuf.ByteString
expression 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.int
result is the result of the evaluation.boolean
context consists of any named values that were used for evaluating the caveat expression.boolean
partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeContext
(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, 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<CaveatEvalInfo.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<CaveatEvalInfo.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<CaveatEvalInfo.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<CaveatEvalInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CaveatEvalInfo.Builder>
- Throws:
IOException
-
getExpression
expression is the expression that was evaluated.
string expression = 1;
- Specified by:
getExpression
in interfaceCaveatEvalInfoOrBuilder
- Returns:
- The expression.
-
getExpressionBytes
public com.google.protobuf.ByteString getExpressionBytes()expression is the expression that was evaluated.
string expression = 1;
- Specified by:
getExpressionBytes
in 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:
getResultValue
in 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:
getResult
in 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:
hasContext
in 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:
getContext
in 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:
getContextOrBuilder
in 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:
hasPartialCaveatInfo
in 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:
getPartialCaveatInfo
in 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:
getPartialCaveatInfoOrBuilder
in interfaceCaveatEvalInfoOrBuilder
-
getCaveatName
caveat_name is the name of the caveat that was executed, if applicable.
string caveat_name = 5;
- Specified by:
getCaveatName
in 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:
getCaveatNameBytes
in 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.
-