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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CaveatEvalInfo.Builder>
    • clear

      public CaveatEvalInfo.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CaveatEvalInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CaveatEvalInfo.Builder>
    • getDefaultInstanceForType

      public CaveatEvalInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CaveatEvalInfo build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CaveatEvalInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CaveatEvalInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CaveatEvalInfo.Builder>
    • mergeFrom

      public CaveatEvalInfo.Builder mergeFrom(CaveatEvalInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CaveatEvalInfo.Builder>
      Throws:
      IOException
    • getExpression

      public String getExpression()
       expression is the expression that was evaluated.
       
      string expression = 1;
      Specified by:
      getExpression in interface CaveatEvalInfoOrBuilder
      Returns:
      The expression.
    • getExpressionBytes

      public com.google.protobuf.ByteString getExpressionBytes()
       expression is the expression that was evaluated.
       
      string expression = 1;
      Specified by:
      getExpressionBytes in interface CaveatEvalInfoOrBuilder
      Returns:
      The bytes for expression.
    • setExpression

      public CaveatEvalInfo.Builder setExpression(String value)
       expression is the expression that was evaluated.
       
      string expression = 1;
      Parameters:
      value - The expression to set.
      Returns:
      This builder for chaining.
    • clearExpression

      public CaveatEvalInfo.Builder clearExpression()
       expression is the expression that was evaluated.
       
      string expression = 1;
      Returns:
      This builder for chaining.
    • setExpressionBytes

      public CaveatEvalInfo.Builder setExpressionBytes(com.google.protobuf.ByteString value)
       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 interface CaveatEvalInfoOrBuilder
      Returns:
      The enum numeric value on the wire for result.
    • setResultValue

      public CaveatEvalInfo.Builder setResultValue(int value)
       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

      public CaveatEvalInfo.Result getResult()
       result is the result of the evaluation.
       
      .authzed.api.v1.CaveatEvalInfo.Result result = 2;
      Specified by:
      getResult in interface CaveatEvalInfoOrBuilder
      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

      public CaveatEvalInfo.Builder 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 interface CaveatEvalInfoOrBuilder
      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 interface CaveatEvalInfoOrBuilder
      Returns:
      The context.
    • setContext

      public CaveatEvalInfo.Builder setContext(com.google.protobuf.Struct value)
       context consists of any named values that were used for evaluating the caveat expression.
       
      .google.protobuf.Struct context = 3;
    • setContext

      public CaveatEvalInfo.Builder setContext(com.google.protobuf.Struct.Builder builderForValue)
       context consists of any named values that were used for evaluating the caveat expression.
       
      .google.protobuf.Struct context = 3;
    • mergeContext

      public CaveatEvalInfo.Builder mergeContext(com.google.protobuf.Struct value)
       context consists of any named values that were used for evaluating the caveat expression.
       
      .google.protobuf.Struct context = 3;
    • clearContext

      public CaveatEvalInfo.Builder 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 interface CaveatEvalInfoOrBuilder
    • 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 interface CaveatEvalInfoOrBuilder
      Returns:
      Whether the partialCaveatInfo field is set.
    • getPartialCaveatInfo

      public PartialCaveatInfo 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 interface CaveatEvalInfoOrBuilder
      Returns:
      The partialCaveatInfo.
    • setPartialCaveatInfo

      public CaveatEvalInfo.Builder setPartialCaveatInfo(PartialCaveatInfo value)
       partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.
       
      .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 4;
    • setPartialCaveatInfo

      public CaveatEvalInfo.Builder setPartialCaveatInfo(PartialCaveatInfo.Builder builderForValue)
       partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.
       
      .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 4;
    • mergePartialCaveatInfo

      public CaveatEvalInfo.Builder mergePartialCaveatInfo(PartialCaveatInfo value)
       partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.
       
      .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 4;
    • clearPartialCaveatInfo

      public CaveatEvalInfo.Builder clearPartialCaveatInfo()
       partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.
       
      .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 4;
    • getPartialCaveatInfoBuilder

      public PartialCaveatInfo.Builder getPartialCaveatInfoBuilder()
       partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.
       
      .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 4;
    • getPartialCaveatInfoOrBuilder

      public PartialCaveatInfoOrBuilder 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 interface CaveatEvalInfoOrBuilder
    • getCaveatName

      public String getCaveatName()
       caveat_name is the name of the caveat that was executed, if applicable.
       
      string caveat_name = 5;
      Specified by:
      getCaveatName in interface CaveatEvalInfoOrBuilder
      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 interface CaveatEvalInfoOrBuilder
      Returns:
      The bytes for caveatName.
    • setCaveatName

      public CaveatEvalInfo.Builder setCaveatName(String value)
       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

      public CaveatEvalInfo.Builder clearCaveatName()
       caveat_name is the name of the caveat that was executed, if applicable.
       
      string caveat_name = 5;
      Returns:
      This builder for chaining.
    • setCaveatNameBytes

      public CaveatEvalInfo.Builder setCaveatNameBytes(com.google.protobuf.ByteString value)
       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.