Package com.authzed.api.v0
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 Summary
Modifier and TypeMethodDescriptionbuild()
clear()
Each tupleset specifies keys of a set of relation tuples..authzed.api.v0.User user = 2 [(.validate.rules) = { ...
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Each tupleset specifies keys of a set of relation tuples.Each tupleset specifies keys of a set of relation tuples.Each tupleset specifies keys of a set of relation tuples.getUser()
.authzed.api.v0.User user = 2 [(.validate.rules) = { ...
.authzed.api.v0.User user = 2 [(.validate.rules) = { ...
.authzed.api.v0.User user = 2 [(.validate.rules) = { ...
boolean
Each tupleset specifies keys of a set of relation tuples.boolean
hasUser()
.authzed.api.v0.User user = 2 [(.validate.rules) = { ...
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(Core.RelationTuple other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) Each tupleset specifies keys of a set of relation tuples..authzed.api.v0.User user = 2 [(.validate.rules) = { ...
Each tupleset specifies keys of a set of relation tuples.setObjectAndRelation
(Core.ObjectAndRelation.Builder builderForValue) Each tupleset specifies keys of a set of relation tuples..authzed.api.v0.User user = 2 [(.validate.rules) = { ...
setUser
(Core.User.Builder builderForValue) .authzed.api.v0.User user = 2 [(.validate.rules) = { ...
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<Core.RelationTuple.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<Core.RelationTuple.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<Core.RelationTuple.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<Core.RelationTuple.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceCore.RelationTupleOrBuilder
- Returns:
- Whether the objectAndRelation field is set.
-
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 interfaceCore.RelationTupleOrBuilder
- Returns:
- The objectAndRelation.
-
setObjectAndRelation
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
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
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
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
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 interfaceCore.RelationTupleOrBuilder
-
hasUser
public boolean hasUser().authzed.api.v0.User user = 2 [(.validate.rules) = { ... }
- Specified by:
hasUser
in interfaceCore.RelationTupleOrBuilder
- Returns:
- Whether the user field is set.
-
getUser
.authzed.api.v0.User user = 2 [(.validate.rules) = { ... }
- Specified by:
getUser
in interfaceCore.RelationTupleOrBuilder
- Returns:
- The user.
-
setUser
.authzed.api.v0.User user = 2 [(.validate.rules) = { ... }
-
setUser
.authzed.api.v0.User user = 2 [(.validate.rules) = { ... }
-
mergeUser
.authzed.api.v0.User user = 2 [(.validate.rules) = { ... }
-
clearUser
.authzed.api.v0.User user = 2 [(.validate.rules) = { ... }
-
getUserBuilder
.authzed.api.v0.User user = 2 [(.validate.rules) = { ... }
-
getUserOrBuilder
.authzed.api.v0.User user = 2 [(.validate.rules) = { ... }
- Specified by:
getUserOrBuilder
in interfaceCore.RelationTupleOrBuilder
-