Package com.authzed.api.v1
Class Relationship.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Relationship.Builder>
com.authzed.api.v1.Relationship.Builder
- All Implemented Interfaces:
RelationshipOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Relationship
public static final class Relationship.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Relationship.Builder>
implements RelationshipOrBuilder
Relationship specifies how a resource relates to a subject. Relationships form the data for the graph over which all permissions questions are answered.Protobuf type
authzed.api.v1.Relationship
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clear()
optional_caveat is a reference to a the caveat that must be enforced over the relationshiprelation is how the resource and subject are related.resource is the resource to which the subject is related, in some mannersubject is the subject to which the resource is related, in some manner.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
optional_caveat is a reference to a the caveat that must be enforced over the relationshipoptional_caveat is a reference to a the caveat that must be enforced over the relationshipoptional_caveat is a reference to a the caveat that must be enforced over the relationshiprelation is how the resource and subject are related.com.google.protobuf.ByteString
relation is how the resource and subject are related.resource is the resource to which the subject is related, in some mannerresource is the resource to which the subject is related, in some mannerresource is the resource to which the subject is related, in some mannersubject is the subject to which the resource is related, in some manner.subject is the subject to which the resource is related, in some manner.subject is the subject to which the resource is related, in some manner.boolean
optional_caveat is a reference to a the caveat that must be enforced over the relationshipboolean
resource is the resource to which the subject is related, in some mannerboolean
subject is the subject to which the resource is related, in some manner.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(Relationship other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) optional_caveat is a reference to a the caveat that must be enforced over the relationshipmergeResource
(ObjectReference value) resource is the resource to which the subject is related, in some mannermergeSubject
(SubjectReference value) subject is the subject to which the resource is related, in some manner.optional_caveat is a reference to a the caveat that must be enforced over the relationshipsetOptionalCaveat
(ContextualizedCaveat.Builder builderForValue) optional_caveat is a reference to a the caveat that must be enforced over the relationshipsetRelation
(String value) relation is how the resource and subject are related.setRelationBytes
(com.google.protobuf.ByteString value) relation is how the resource and subject are related.setResource
(ObjectReference value) resource is the resource to which the subject is related, in some mannersetResource
(ObjectReference.Builder builderForValue) resource is the resource to which the subject is related, in some mannersetSubject
(SubjectReference value) subject is the subject to which the resource is related, in some manner.setSubject
(SubjectReference.Builder builderForValue) subject is the subject to which the resource is related, in some manner.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<Relationship.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<Relationship.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<Relationship.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<Relationship.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<Relationship.Builder>
-
mergeFrom
public Relationship.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<Relationship.Builder>
- Throws:
IOException
-
hasResource
public boolean hasResource()resource is the resource to which the subject is related, in some manner
.authzed.api.v1.ObjectReference resource = 1 [(.validate.rules) = { ... }
- Specified by:
hasResource
in interfaceRelationshipOrBuilder
- Returns:
- Whether the resource field is set.
-
getResource
resource is the resource to which the subject is related, in some manner
.authzed.api.v1.ObjectReference resource = 1 [(.validate.rules) = { ... }
- Specified by:
getResource
in interfaceRelationshipOrBuilder
- Returns:
- The resource.
-
setResource
resource is the resource to which the subject is related, in some manner
.authzed.api.v1.ObjectReference resource = 1 [(.validate.rules) = { ... }
-
setResource
resource is the resource to which the subject is related, in some manner
.authzed.api.v1.ObjectReference resource = 1 [(.validate.rules) = { ... }
-
mergeResource
resource is the resource to which the subject is related, in some manner
.authzed.api.v1.ObjectReference resource = 1 [(.validate.rules) = { ... }
-
clearResource
resource is the resource to which the subject is related, in some manner
.authzed.api.v1.ObjectReference resource = 1 [(.validate.rules) = { ... }
-
getResourceBuilder
resource is the resource to which the subject is related, in some manner
.authzed.api.v1.ObjectReference resource = 1 [(.validate.rules) = { ... }
-
getResourceOrBuilder
resource is the resource to which the subject is related, in some manner
.authzed.api.v1.ObjectReference resource = 1 [(.validate.rules) = { ... }
- Specified by:
getResourceOrBuilder
in interfaceRelationshipOrBuilder
-
getRelation
relation is how the resource and subject are related.
string relation = 2 [(.validate.rules) = { ... }
- Specified by:
getRelation
in interfaceRelationshipOrBuilder
- Returns:
- The relation.
-
getRelationBytes
public com.google.protobuf.ByteString getRelationBytes()relation is how the resource and subject are related.
string relation = 2 [(.validate.rules) = { ... }
- Specified by:
getRelationBytes
in interfaceRelationshipOrBuilder
- Returns:
- The bytes for relation.
-
setRelation
relation is how the resource and subject are related.
string relation = 2 [(.validate.rules) = { ... }
- Parameters:
value
- The relation to set.- Returns:
- This builder for chaining.
-
clearRelation
relation is how the resource and subject are related.
string relation = 2 [(.validate.rules) = { ... }
- Returns:
- This builder for chaining.
-
setRelationBytes
relation is how the resource and subject are related.
string relation = 2 [(.validate.rules) = { ... }
- Parameters:
value
- The bytes for relation to set.- Returns:
- This builder for chaining.
-
hasSubject
public boolean hasSubject()subject is the subject to which the resource is related, in some manner.
.authzed.api.v1.SubjectReference subject = 3 [(.validate.rules) = { ... }
- Specified by:
hasSubject
in interfaceRelationshipOrBuilder
- Returns:
- Whether the subject field is set.
-
getSubject
subject is the subject to which the resource is related, in some manner.
.authzed.api.v1.SubjectReference subject = 3 [(.validate.rules) = { ... }
- Specified by:
getSubject
in interfaceRelationshipOrBuilder
- Returns:
- The subject.
-
setSubject
subject is the subject to which the resource is related, in some manner.
.authzed.api.v1.SubjectReference subject = 3 [(.validate.rules) = { ... }
-
setSubject
subject is the subject to which the resource is related, in some manner.
.authzed.api.v1.SubjectReference subject = 3 [(.validate.rules) = { ... }
-
mergeSubject
subject is the subject to which the resource is related, in some manner.
.authzed.api.v1.SubjectReference subject = 3 [(.validate.rules) = { ... }
-
clearSubject
subject is the subject to which the resource is related, in some manner.
.authzed.api.v1.SubjectReference subject = 3 [(.validate.rules) = { ... }
-
getSubjectBuilder
subject is the subject to which the resource is related, in some manner.
.authzed.api.v1.SubjectReference subject = 3 [(.validate.rules) = { ... }
-
getSubjectOrBuilder
subject is the subject to which the resource is related, in some manner.
.authzed.api.v1.SubjectReference subject = 3 [(.validate.rules) = { ... }
- Specified by:
getSubjectOrBuilder
in interfaceRelationshipOrBuilder
-
hasOptionalCaveat
public boolean hasOptionalCaveat()optional_caveat is a reference to a the caveat that must be enforced over the relationship
.authzed.api.v1.ContextualizedCaveat optional_caveat = 4 [(.validate.rules) = { ... }
- Specified by:
hasOptionalCaveat
in interfaceRelationshipOrBuilder
- Returns:
- Whether the optionalCaveat field is set.
-
getOptionalCaveat
optional_caveat is a reference to a the caveat that must be enforced over the relationship
.authzed.api.v1.ContextualizedCaveat optional_caveat = 4 [(.validate.rules) = { ... }
- Specified by:
getOptionalCaveat
in interfaceRelationshipOrBuilder
- Returns:
- The optionalCaveat.
-
setOptionalCaveat
optional_caveat is a reference to a the caveat that must be enforced over the relationship
.authzed.api.v1.ContextualizedCaveat optional_caveat = 4 [(.validate.rules) = { ... }
-
setOptionalCaveat
optional_caveat is a reference to a the caveat that must be enforced over the relationship
.authzed.api.v1.ContextualizedCaveat optional_caveat = 4 [(.validate.rules) = { ... }
-
mergeOptionalCaveat
optional_caveat is a reference to a the caveat that must be enforced over the relationship
.authzed.api.v1.ContextualizedCaveat optional_caveat = 4 [(.validate.rules) = { ... }
-
clearOptionalCaveat
optional_caveat is a reference to a the caveat that must be enforced over the relationship
.authzed.api.v1.ContextualizedCaveat optional_caveat = 4 [(.validate.rules) = { ... }
-
getOptionalCaveatBuilder
optional_caveat is a reference to a the caveat that must be enforced over the relationship
.authzed.api.v1.ContextualizedCaveat optional_caveat = 4 [(.validate.rules) = { ... }
-
getOptionalCaveatOrBuilder
optional_caveat is a reference to a the caveat that must be enforced over the relationship
.authzed.api.v1.ContextualizedCaveat optional_caveat = 4 [(.validate.rules) = { ... }
- Specified by:
getOptionalCaveatOrBuilder
in interfaceRelationshipOrBuilder
-