Package com.authzed.api.v1
Class ReflectionTypeReference.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReflectionTypeReference.Builder>
com.authzed.api.v1.ReflectionTypeReference.Builder
- All Implemented Interfaces:
ReflectionTypeReferenceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ReflectionTypeReference
public static final class ReflectionTypeReference.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ReflectionTypeReference.Builder>
implements ReflectionTypeReferenceOrBuilder
ReflectionTypeReference is the representation of a type reference in the schema.Protobuf type
authzed.api.v1.ReflectionTypeReference-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()is_public_wildcard is true if the subject is a public wildcard.is_terminal_subject is true if the subject is terminal, meaning it is referenced directly vs a sub-relation.optional_caveat_name is the name of the caveat that is applied to the subject, if any.optional_relation_name is the name of the relation that is applied to the subject, if any.subject_definition_name is the name of the subject's definition.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorbooleanis_public_wildcard is true if the subject is a public wildcard.booleanis_terminal_subject is true if the subject is terminal, meaning it is referenced directly vs a sub-relation.optional_caveat_name is the name of the caveat that is applied to the subject, if any.com.google.protobuf.ByteStringoptional_caveat_name is the name of the caveat that is applied to the subject, if any.optional_relation_name is the name of the relation that is applied to the subject, if any.com.google.protobuf.ByteStringoptional_relation_name is the name of the relation that is applied to the subject, if any.subject_definition_name is the name of the subject's definition.com.google.protobuf.ByteStringsubject_definition_name is the name of the subject's definition.booleanis_public_wildcard is true if the subject is a public wildcard.booleanis_terminal_subject is true if the subject is terminal, meaning it is referenced directly vs a sub-relation.booleanoptional_relation_name is the name of the relation that is applied to the subject, if any.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ReflectionTypeReference other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setIsPublicWildcard(boolean value) is_public_wildcard is true if the subject is a public wildcard.setIsTerminalSubject(boolean value) is_terminal_subject is true if the subject is terminal, meaning it is referenced directly vs a sub-relation.setOptionalCaveatName(String value) optional_caveat_name is the name of the caveat that is applied to the subject, if any.setOptionalCaveatNameBytes(com.google.protobuf.ByteString value) optional_caveat_name is the name of the caveat that is applied to the subject, if any.setOptionalRelationName(String value) optional_relation_name is the name of the relation that is applied to the subject, if any.setOptionalRelationNameBytes(com.google.protobuf.ByteString value) optional_relation_name is the name of the relation that is applied to the subject, if any.setSubjectDefinitionName(String value) subject_definition_name is the name of the subject's definition.setSubjectDefinitionNameBytes(com.google.protobuf.ByteString value) subject_definition_name is the name of the subject's definition.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<ReflectionTypeReference.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<ReflectionTypeReference.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<ReflectionTypeReference.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<ReflectionTypeReference.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ReflectionTypeReference.Builder>
-
mergeFrom
public ReflectionTypeReference.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<ReflectionTypeReference.Builder>- Throws:
IOException
-
getTyperefCase
- Specified by:
getTyperefCasein interfaceReflectionTypeReferenceOrBuilder
-
clearTyperef
-
getSubjectDefinitionName
subject_definition_name is the name of the subject's definition.
string subject_definition_name = 1;- Specified by:
getSubjectDefinitionNamein interfaceReflectionTypeReferenceOrBuilder- Returns:
- The subjectDefinitionName.
-
getSubjectDefinitionNameBytes
public com.google.protobuf.ByteString getSubjectDefinitionNameBytes()subject_definition_name is the name of the subject's definition.
string subject_definition_name = 1;- Specified by:
getSubjectDefinitionNameBytesin interfaceReflectionTypeReferenceOrBuilder- Returns:
- The bytes for subjectDefinitionName.
-
setSubjectDefinitionName
subject_definition_name is the name of the subject's definition.
string subject_definition_name = 1;- Parameters:
value- The subjectDefinitionName to set.- Returns:
- This builder for chaining.
-
clearSubjectDefinitionName
subject_definition_name is the name of the subject's definition.
string subject_definition_name = 1;- Returns:
- This builder for chaining.
-
setSubjectDefinitionNameBytes
public ReflectionTypeReference.Builder setSubjectDefinitionNameBytes(com.google.protobuf.ByteString value) subject_definition_name is the name of the subject's definition.
string subject_definition_name = 1;- Parameters:
value- The bytes for subjectDefinitionName to set.- Returns:
- This builder for chaining.
-
getOptionalCaveatName
optional_caveat_name is the name of the caveat that is applied to the subject, if any.
string optional_caveat_name = 2;- Specified by:
getOptionalCaveatNamein interfaceReflectionTypeReferenceOrBuilder- Returns:
- The optionalCaveatName.
-
getOptionalCaveatNameBytes
public com.google.protobuf.ByteString getOptionalCaveatNameBytes()optional_caveat_name is the name of the caveat that is applied to the subject, if any.
string optional_caveat_name = 2;- Specified by:
getOptionalCaveatNameBytesin interfaceReflectionTypeReferenceOrBuilder- Returns:
- The bytes for optionalCaveatName.
-
setOptionalCaveatName
optional_caveat_name is the name of the caveat that is applied to the subject, if any.
string optional_caveat_name = 2;- Parameters:
value- The optionalCaveatName to set.- Returns:
- This builder for chaining.
-
clearOptionalCaveatName
optional_caveat_name is the name of the caveat that is applied to the subject, if any.
string optional_caveat_name = 2;- Returns:
- This builder for chaining.
-
setOptionalCaveatNameBytes
public ReflectionTypeReference.Builder setOptionalCaveatNameBytes(com.google.protobuf.ByteString value) optional_caveat_name is the name of the caveat that is applied to the subject, if any.
string optional_caveat_name = 2;- Parameters:
value- The bytes for optionalCaveatName to set.- Returns:
- This builder for chaining.
-
hasIsTerminalSubject
public boolean hasIsTerminalSubject()is_terminal_subject is true if the subject is terminal, meaning it is referenced directly vs a sub-relation.
bool is_terminal_subject = 3;- Specified by:
hasIsTerminalSubjectin interfaceReflectionTypeReferenceOrBuilder- Returns:
- Whether the isTerminalSubject field is set.
-
getIsTerminalSubject
public boolean getIsTerminalSubject()is_terminal_subject is true if the subject is terminal, meaning it is referenced directly vs a sub-relation.
bool is_terminal_subject = 3;- Specified by:
getIsTerminalSubjectin interfaceReflectionTypeReferenceOrBuilder- Returns:
- The isTerminalSubject.
-
setIsTerminalSubject
is_terminal_subject is true if the subject is terminal, meaning it is referenced directly vs a sub-relation.
bool is_terminal_subject = 3;- Parameters:
value- The isTerminalSubject to set.- Returns:
- This builder for chaining.
-
clearIsTerminalSubject
is_terminal_subject is true if the subject is terminal, meaning it is referenced directly vs a sub-relation.
bool is_terminal_subject = 3;- Returns:
- This builder for chaining.
-
hasOptionalRelationName
public boolean hasOptionalRelationName()optional_relation_name is the name of the relation that is applied to the subject, if any.
string optional_relation_name = 4;- Specified by:
hasOptionalRelationNamein interfaceReflectionTypeReferenceOrBuilder- Returns:
- Whether the optionalRelationName field is set.
-
getOptionalRelationName
optional_relation_name is the name of the relation that is applied to the subject, if any.
string optional_relation_name = 4;- Specified by:
getOptionalRelationNamein interfaceReflectionTypeReferenceOrBuilder- Returns:
- The optionalRelationName.
-
getOptionalRelationNameBytes
public com.google.protobuf.ByteString getOptionalRelationNameBytes()optional_relation_name is the name of the relation that is applied to the subject, if any.
string optional_relation_name = 4;- Specified by:
getOptionalRelationNameBytesin interfaceReflectionTypeReferenceOrBuilder- Returns:
- The bytes for optionalRelationName.
-
setOptionalRelationName
optional_relation_name is the name of the relation that is applied to the subject, if any.
string optional_relation_name = 4;- Parameters:
value- The optionalRelationName to set.- Returns:
- This builder for chaining.
-
clearOptionalRelationName
optional_relation_name is the name of the relation that is applied to the subject, if any.
string optional_relation_name = 4;- Returns:
- This builder for chaining.
-
setOptionalRelationNameBytes
public ReflectionTypeReference.Builder setOptionalRelationNameBytes(com.google.protobuf.ByteString value) optional_relation_name is the name of the relation that is applied to the subject, if any.
string optional_relation_name = 4;- Parameters:
value- The bytes for optionalRelationName to set.- Returns:
- This builder for chaining.
-
hasIsPublicWildcard
public boolean hasIsPublicWildcard()is_public_wildcard is true if the subject is a public wildcard.
bool is_public_wildcard = 5;- Specified by:
hasIsPublicWildcardin interfaceReflectionTypeReferenceOrBuilder- Returns:
- Whether the isPublicWildcard field is set.
-
getIsPublicWildcard
public boolean getIsPublicWildcard()is_public_wildcard is true if the subject is a public wildcard.
bool is_public_wildcard = 5;- Specified by:
getIsPublicWildcardin interfaceReflectionTypeReferenceOrBuilder- Returns:
- The isPublicWildcard.
-
setIsPublicWildcard
is_public_wildcard is true if the subject is a public wildcard.
bool is_public_wildcard = 5;- Parameters:
value- The isPublicWildcard to set.- Returns:
- This builder for chaining.
-
clearIsPublicWildcard
is_public_wildcard is true if the subject is a public wildcard.
bool is_public_wildcard = 5;- Returns:
- This builder for chaining.
-