Class Core.RelationTuple.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Core.RelationTuple.Builder>
com.authzed.api.v0.Core.RelationTuple.Builder
All Implemented Interfaces:
Core.RelationTupleOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Core.RelationTuple

public static final class Core.RelationTuple.Builder extends com.google.protobuf.GeneratedMessage.Builder<Core.RelationTuple.Builder> implements Core.RelationTupleOrBuilder
Protobuf type authzed.api.v0.RelationTuple
  • 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<Core.RelationTuple.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<Core.RelationTuple.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<Core.RelationTuple.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Core.RelationTuple.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<Core.RelationTuple.Builder>
      Throws:
      IOException
    • hasObjectAndRelation

      public boolean hasObjectAndRelation()
       Each tupleset specifies keys of a set of relation tuples. The set can
       include a single tuple key, or all tuples with a given object ID or
       userset in a namespace, optionally constrained by a relation name.
      
       examples:
       doc:readme#viewer@group:eng#member (fully specified)
       doc:*#*#group:eng#member (all tuples that this userset relates to)
       doc:12345#*#* (all tuples with a direct relationship to a document)
       doc:12345#writer#* (all tuples with direct write relationship with the
       document) doc:#writer#group:eng#member (all tuples that eng group has write
       relationship)
       
      .authzed.api.v0.ObjectAndRelation object_and_relation = 1 [(.validate.rules) = { ... }
      Specified by:
      hasObjectAndRelation in interface Core.RelationTupleOrBuilder
      Returns:
      Whether the objectAndRelation field is set.
    • getObjectAndRelation

      public Core.ObjectAndRelation getObjectAndRelation()
       Each tupleset specifies keys of a set of relation tuples. The set can
       include a single tuple key, or all tuples with a given object ID or
       userset in a namespace, optionally constrained by a relation name.
      
       examples:
       doc:readme#viewer@group:eng#member (fully specified)
       doc:*#*#group:eng#member (all tuples that this userset relates to)
       doc:12345#*#* (all tuples with a direct relationship to a document)
       doc:12345#writer#* (all tuples with direct write relationship with the
       document) doc:#writer#group:eng#member (all tuples that eng group has write
       relationship)
       
      .authzed.api.v0.ObjectAndRelation object_and_relation = 1 [(.validate.rules) = { ... }
      Specified by:
      getObjectAndRelation in interface Core.RelationTupleOrBuilder
      Returns:
      The objectAndRelation.
    • setObjectAndRelation

      public Core.RelationTuple.Builder setObjectAndRelation(Core.ObjectAndRelation value)
       Each tupleset specifies keys of a set of relation tuples. The set can
       include a single tuple key, or all tuples with a given object ID or
       userset in a namespace, optionally constrained by a relation name.
      
       examples:
       doc:readme#viewer@group:eng#member (fully specified)
       doc:*#*#group:eng#member (all tuples that this userset relates to)
       doc:12345#*#* (all tuples with a direct relationship to a document)
       doc:12345#writer#* (all tuples with direct write relationship with the
       document) doc:#writer#group:eng#member (all tuples that eng group has write
       relationship)
       
      .authzed.api.v0.ObjectAndRelation object_and_relation = 1 [(.validate.rules) = { ... }
    • setObjectAndRelation

      public Core.RelationTuple.Builder setObjectAndRelation(Core.ObjectAndRelation.Builder builderForValue)
       Each tupleset specifies keys of a set of relation tuples. The set can
       include a single tuple key, or all tuples with a given object ID or
       userset in a namespace, optionally constrained by a relation name.
      
       examples:
       doc:readme#viewer@group:eng#member (fully specified)
       doc:*#*#group:eng#member (all tuples that this userset relates to)
       doc:12345#*#* (all tuples with a direct relationship to a document)
       doc:12345#writer#* (all tuples with direct write relationship with the
       document) doc:#writer#group:eng#member (all tuples that eng group has write
       relationship)
       
      .authzed.api.v0.ObjectAndRelation object_and_relation = 1 [(.validate.rules) = { ... }
    • mergeObjectAndRelation

      public Core.RelationTuple.Builder mergeObjectAndRelation(Core.ObjectAndRelation value)
       Each tupleset specifies keys of a set of relation tuples. The set can
       include a single tuple key, or all tuples with a given object ID or
       userset in a namespace, optionally constrained by a relation name.
      
       examples:
       doc:readme#viewer@group:eng#member (fully specified)
       doc:*#*#group:eng#member (all tuples that this userset relates to)
       doc:12345#*#* (all tuples with a direct relationship to a document)
       doc:12345#writer#* (all tuples with direct write relationship with the
       document) doc:#writer#group:eng#member (all tuples that eng group has write
       relationship)
       
      .authzed.api.v0.ObjectAndRelation object_and_relation = 1 [(.validate.rules) = { ... }
    • clearObjectAndRelation

      public Core.RelationTuple.Builder clearObjectAndRelation()
       Each tupleset specifies keys of a set of relation tuples. The set can
       include a single tuple key, or all tuples with a given object ID or
       userset in a namespace, optionally constrained by a relation name.
      
       examples:
       doc:readme#viewer@group:eng#member (fully specified)
       doc:*#*#group:eng#member (all tuples that this userset relates to)
       doc:12345#*#* (all tuples with a direct relationship to a document)
       doc:12345#writer#* (all tuples with direct write relationship with the
       document) doc:#writer#group:eng#member (all tuples that eng group has write
       relationship)
       
      .authzed.api.v0.ObjectAndRelation object_and_relation = 1 [(.validate.rules) = { ... }
    • getObjectAndRelationBuilder

      public Core.ObjectAndRelation.Builder getObjectAndRelationBuilder()
       Each tupleset specifies keys of a set of relation tuples. The set can
       include a single tuple key, or all tuples with a given object ID or
       userset in a namespace, optionally constrained by a relation name.
      
       examples:
       doc:readme#viewer@group:eng#member (fully specified)
       doc:*#*#group:eng#member (all tuples that this userset relates to)
       doc:12345#*#* (all tuples with a direct relationship to a document)
       doc:12345#writer#* (all tuples with direct write relationship with the
       document) doc:#writer#group:eng#member (all tuples that eng group has write
       relationship)
       
      .authzed.api.v0.ObjectAndRelation object_and_relation = 1 [(.validate.rules) = { ... }
    • getObjectAndRelationOrBuilder

      public Core.ObjectAndRelationOrBuilder getObjectAndRelationOrBuilder()
       Each tupleset specifies keys of a set of relation tuples. The set can
       include a single tuple key, or all tuples with a given object ID or
       userset in a namespace, optionally constrained by a relation name.
      
       examples:
       doc:readme#viewer@group:eng#member (fully specified)
       doc:*#*#group:eng#member (all tuples that this userset relates to)
       doc:12345#*#* (all tuples with a direct relationship to a document)
       doc:12345#writer#* (all tuples with direct write relationship with the
       document) doc:#writer#group:eng#member (all tuples that eng group has write
       relationship)
       
      .authzed.api.v0.ObjectAndRelation object_and_relation = 1 [(.validate.rules) = { ... }
      Specified by:
      getObjectAndRelationOrBuilder in interface Core.RelationTupleOrBuilder
    • hasUser

      public boolean hasUser()
      .authzed.api.v0.User user = 2 [(.validate.rules) = { ... }
      Specified by:
      hasUser in interface Core.RelationTupleOrBuilder
      Returns:
      Whether the user field is set.
    • getUser

      public Core.User getUser()
      .authzed.api.v0.User user = 2 [(.validate.rules) = { ... }
      Specified by:
      getUser in interface Core.RelationTupleOrBuilder
      Returns:
      The user.
    • setUser

      public Core.RelationTuple.Builder setUser(Core.User value)
      .authzed.api.v0.User user = 2 [(.validate.rules) = { ... }
    • setUser

      public Core.RelationTuple.Builder setUser(Core.User.Builder builderForValue)
      .authzed.api.v0.User user = 2 [(.validate.rules) = { ... }
    • mergeUser

      public Core.RelationTuple.Builder mergeUser(Core.User value)
      .authzed.api.v0.User user = 2 [(.validate.rules) = { ... }
    • clearUser

      public Core.RelationTuple.Builder clearUser()
      .authzed.api.v0.User user = 2 [(.validate.rules) = { ... }
    • getUserBuilder

      public Core.User.Builder getUserBuilder()
      .authzed.api.v0.User user = 2 [(.validate.rules) = { ... }
    • getUserOrBuilder

      public Core.UserOrBuilder getUserOrBuilder()
      .authzed.api.v0.User user = 2 [(.validate.rules) = { ... }
      Specified by:
      getUserOrBuilder in interface Core.RelationTupleOrBuilder