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 Type
    Method
    Description
     
     
     
    caveat_name is the name of the caveat expression to use, as defined in the schema
    context consists of any named values that are defined at write time for the caveat expression
    caveat_name is the name of the caveat expression to use, as defined in the schema
    com.google.protobuf.ByteString
    caveat_name is the name of the caveat expression to use, as defined in the schema
    com.google.protobuf.Struct
    context consists of any named values that are defined at write time for the caveat expression
    com.google.protobuf.Struct.Builder
    context consists of any named values that are defined at write time for the caveat expression
    com.google.protobuf.StructOrBuilder
    context consists of any named values that are defined at write time for the caveat expression
     
    static 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 expression
    protected 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 expression
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    caveat_name is the name of the caveat expression to use, as defined in the schema
    setCaveatNameBytes(com.google.protobuf.ByteString value)
    caveat_name is the name of the caveat expression to use, as defined in the schema
    setContext(com.google.protobuf.Struct value)
    context consists of any named values that are defined at write time for the caveat expression
    setContext(com.google.protobuf.Struct.Builder builderForValue)
    context consists of any named values that are defined at write time for the caveat expression

    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 class com.google.protobuf.GeneratedMessage.Builder<ContextualizedCaveat.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<ContextualizedCaveat.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<ContextualizedCaveat.Builder>
    • getDefaultInstanceForType

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

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

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

      public ContextualizedCaveat.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<ContextualizedCaveat.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 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<ContextualizedCaveat.Builder>
      Throws:
      IOException
    • getCaveatName

      public String 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 interface ContextualizedCaveatOrBuilder
      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 interface ContextualizedCaveatOrBuilder
      Returns:
      The bytes for caveatName.
    • setCaveatName

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

      public ContextualizedCaveat.Builder 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

      public ContextualizedCaveat.Builder setCaveatNameBytes(com.google.protobuf.ByteString value)
       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 interface ContextualizedCaveatOrBuilder
      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 interface ContextualizedCaveatOrBuilder
      Returns:
      The context.
    • setContext

      public ContextualizedCaveat.Builder setContext(com.google.protobuf.Struct value)
       context consists of any named values that are defined at write time for the caveat expression
       
      .google.protobuf.Struct context = 2 [(.validate.rules) = { ... }
    • setContext

      public ContextualizedCaveat.Builder setContext(com.google.protobuf.Struct.Builder builderForValue)
       context consists of any named values that are defined at write time for the caveat expression
       
      .google.protobuf.Struct context = 2 [(.validate.rules) = { ... }
    • mergeContext

      public ContextualizedCaveat.Builder mergeContext(com.google.protobuf.Struct value)
       context consists of any named values that are defined at write time for the caveat expression
       
      .google.protobuf.Struct context = 2 [(.validate.rules) = { ... }
    • clearContext

      public ContextualizedCaveat.Builder 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 interface ContextualizedCaveatOrBuilder