Package com.authzed.api.v1
Class ExpTypeReference.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExpTypeReference.Builder>
com.authzed.api.v1.ExpTypeReference.Builder
- All Implemented Interfaces:
ExpTypeReferenceOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ExpTypeReference
public static final class ExpTypeReference.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ExpTypeReference.Builder>
implements ExpTypeReferenceOrBuilder
ExpTypeReference is the representation of a type reference in the schema.Protobuf type
authzed.api.v1.ExpTypeReference
-
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.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
is_public_wildcard is true if the subject is a public wildcard.boolean
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.com.google.protobuf.ByteString
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.com.google.protobuf.ByteString
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.com.google.protobuf.ByteString
subject_definition_name is the name of the subject's definition.boolean
is_public_wildcard is true if the subject is a public wildcard.boolean
is_terminal_subject is true if the subject is terminal, meaning it is referenced directly vs a sub-relation.boolean
optional_relation_name is the name of the relation that is applied to the subject, if any.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(ExpTypeReference 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, 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<ExpTypeReference.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<ExpTypeReference.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<ExpTypeReference.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<ExpTypeReference.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<ExpTypeReference.Builder>
-
mergeFrom
public ExpTypeReference.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<ExpTypeReference.Builder>
- Throws:
IOException
-
getTyperefCase
- Specified by:
getTyperefCase
in interfaceExpTypeReferenceOrBuilder
-
clearTyperef
-
getSubjectDefinitionName
subject_definition_name is the name of the subject's definition.
string subject_definition_name = 1;
- Specified by:
getSubjectDefinitionName
in interfaceExpTypeReferenceOrBuilder
- 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:
getSubjectDefinitionNameBytes
in interfaceExpTypeReferenceOrBuilder
- 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
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:
getOptionalCaveatName
in interfaceExpTypeReferenceOrBuilder
- 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:
getOptionalCaveatNameBytes
in interfaceExpTypeReferenceOrBuilder
- 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
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:
hasIsTerminalSubject
in interfaceExpTypeReferenceOrBuilder
- 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:
getIsTerminalSubject
in interfaceExpTypeReferenceOrBuilder
- 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:
hasOptionalRelationName
in interfaceExpTypeReferenceOrBuilder
- 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:
getOptionalRelationName
in interfaceExpTypeReferenceOrBuilder
- 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:
getOptionalRelationNameBytes
in interfaceExpTypeReferenceOrBuilder
- 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
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:
hasIsPublicWildcard
in interfaceExpTypeReferenceOrBuilder
- 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:
getIsPublicWildcard
in interfaceExpTypeReferenceOrBuilder
- 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.
-