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 relationshipoptional_expires_at is the time at which the relationship expires, if any.relation 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.Descriptorcom.google.protobuf.Descriptors.Descriptoroptional_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 relationshipcom.google.protobuf.Timestampoptional_expires_at is the time at which the relationship expires, if any.com.google.protobuf.Timestamp.Builderoptional_expires_at is the time at which the relationship expires, if any.com.google.protobuf.TimestampOrBuilderoptional_expires_at is the time at which the relationship expires, if any.relation is how the resource and subject are related.com.google.protobuf.ByteStringrelation 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.booleanoptional_caveat is a reference to a the caveat that must be enforced over the relationshipbooleanoptional_expires_at is the time at which the relationship expires, if any.booleanresource is the resource to which the subject is related, in some mannerbooleansubject is the subject to which the resource is related, in some manner.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(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 relationshipmergeOptionalExpiresAt(com.google.protobuf.Timestamp value) optional_expires_at is the time at which the relationship expires, if any.mergeResource(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 relationshipsetOptionalExpiresAt(com.google.protobuf.Timestamp value) optional_expires_at is the time at which the relationship expires, if any.setOptionalExpiresAt(com.google.protobuf.Timestamp.Builder builderForValue) optional_expires_at is the time at which the relationship expires, if any.setRelation(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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Relationship.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Relationship.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Relationship.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Relationship.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasResourcein 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:
getResourcein 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:
getResourceOrBuilderin interfaceRelationshipOrBuilder
-
getRelation
relation is how the resource and subject are related.
string relation = 2 [(.validate.rules) = { ... }- Specified by:
getRelationin 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:
getRelationBytesin 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:
hasSubjectin 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:
getSubjectin 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:
getSubjectOrBuilderin 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:
hasOptionalCaveatin 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:
getOptionalCaveatin 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:
getOptionalCaveatOrBuilderin interfaceRelationshipOrBuilder
-
hasOptionalExpiresAt
public boolean hasOptionalExpiresAt()optional_expires_at is the time at which the relationship expires, if any.
.google.protobuf.Timestamp optional_expires_at = 5;- Specified by:
hasOptionalExpiresAtin interfaceRelationshipOrBuilder- Returns:
- Whether the optionalExpiresAt field is set.
-
getOptionalExpiresAt
public com.google.protobuf.Timestamp getOptionalExpiresAt()optional_expires_at is the time at which the relationship expires, if any.
.google.protobuf.Timestamp optional_expires_at = 5;- Specified by:
getOptionalExpiresAtin interfaceRelationshipOrBuilder- Returns:
- The optionalExpiresAt.
-
setOptionalExpiresAt
optional_expires_at is the time at which the relationship expires, if any.
.google.protobuf.Timestamp optional_expires_at = 5; -
setOptionalExpiresAt
public Relationship.Builder setOptionalExpiresAt(com.google.protobuf.Timestamp.Builder builderForValue) optional_expires_at is the time at which the relationship expires, if any.
.google.protobuf.Timestamp optional_expires_at = 5; -
mergeOptionalExpiresAt
optional_expires_at is the time at which the relationship expires, if any.
.google.protobuf.Timestamp optional_expires_at = 5; -
clearOptionalExpiresAt
optional_expires_at is the time at which the relationship expires, if any.
.google.protobuf.Timestamp optional_expires_at = 5; -
getOptionalExpiresAtBuilder
public com.google.protobuf.Timestamp.Builder getOptionalExpiresAtBuilder()optional_expires_at is the time at which the relationship expires, if any.
.google.protobuf.Timestamp optional_expires_at = 5; -
getOptionalExpiresAtOrBuilder
public com.google.protobuf.TimestampOrBuilder getOptionalExpiresAtOrBuilder()optional_expires_at is the time at which the relationship expires, if any.
.google.protobuf.Timestamp optional_expires_at = 5;- Specified by:
getOptionalExpiresAtOrBuilderin interfaceRelationshipOrBuilder
-