Package com.authzed.api.v1
Class ReflectionDefinition.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReflectionDefinition.Builder>
com.authzed.api.v1.ReflectionDefinition.Builder
- All Implemented Interfaces:
ReflectionDefinitionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ReflectionDefinition
public static final class ReflectionDefinition.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ReflectionDefinition.Builder>
implements ReflectionDefinitionOrBuilder
ReflectionDefinition is the representation of a definition in the schema.Protobuf type
authzed.api.v1.ReflectionDefinition-
Method Summary
Modifier and TypeMethodDescriptionaddAllPermissions(Iterable<? extends ReflectionPermission> values) repeated .authzed.api.v1.ReflectionPermission permissions = 4;addAllRelations(Iterable<? extends ReflectionRelation> values) repeated .authzed.api.v1.ReflectionRelation relations = 3;addPermissions(int index, ReflectionPermission value) repeated .authzed.api.v1.ReflectionPermission permissions = 4;addPermissions(int index, ReflectionPermission.Builder builderForValue) repeated .authzed.api.v1.ReflectionPermission permissions = 4;repeated .authzed.api.v1.ReflectionPermission permissions = 4;addPermissions(ReflectionPermission.Builder builderForValue) repeated .authzed.api.v1.ReflectionPermission permissions = 4;repeated .authzed.api.v1.ReflectionPermission permissions = 4;addPermissionsBuilder(int index) repeated .authzed.api.v1.ReflectionPermission permissions = 4;addRelations(int index, ReflectionRelation value) repeated .authzed.api.v1.ReflectionRelation relations = 3;addRelations(int index, ReflectionRelation.Builder builderForValue) repeated .authzed.api.v1.ReflectionRelation relations = 3;addRelations(ReflectionRelation value) repeated .authzed.api.v1.ReflectionRelation relations = 3;addRelations(ReflectionRelation.Builder builderForValue) repeated .authzed.api.v1.ReflectionRelation relations = 3;repeated .authzed.api.v1.ReflectionRelation relations = 3;addRelationsBuilder(int index) repeated .authzed.api.v1.ReflectionRelation relations = 3;build()clear()comment is a human-readable comments on the definition.string name = 1;repeated .authzed.api.v1.ReflectionPermission permissions = 4;repeated .authzed.api.v1.ReflectionRelation relations = 3;comment is a human-readable comments on the definition.com.google.protobuf.ByteStringcomment is a human-readable comments on the definition.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()string name = 1;com.google.protobuf.ByteStringstring name = 1;getPermissions(int index) repeated .authzed.api.v1.ReflectionPermission permissions = 4;getPermissionsBuilder(int index) repeated .authzed.api.v1.ReflectionPermission permissions = 4;repeated .authzed.api.v1.ReflectionPermission permissions = 4;intrepeated .authzed.api.v1.ReflectionPermission permissions = 4;repeated .authzed.api.v1.ReflectionPermission permissions = 4;getPermissionsOrBuilder(int index) repeated .authzed.api.v1.ReflectionPermission permissions = 4;List<? extends ReflectionPermissionOrBuilder>repeated .authzed.api.v1.ReflectionPermission permissions = 4;getRelations(int index) repeated .authzed.api.v1.ReflectionRelation relations = 3;getRelationsBuilder(int index) repeated .authzed.api.v1.ReflectionRelation relations = 3;repeated .authzed.api.v1.ReflectionRelation relations = 3;intrepeated .authzed.api.v1.ReflectionRelation relations = 3;repeated .authzed.api.v1.ReflectionRelation relations = 3;getRelationsOrBuilder(int index) repeated .authzed.api.v1.ReflectionRelation relations = 3;List<? extends ReflectionRelationOrBuilder>repeated .authzed.api.v1.ReflectionRelation relations = 3;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ReflectionDefinition other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removePermissions(int index) repeated .authzed.api.v1.ReflectionPermission permissions = 4;removeRelations(int index) repeated .authzed.api.v1.ReflectionRelation relations = 3;setComment(String value) comment is a human-readable comments on the definition.setCommentBytes(com.google.protobuf.ByteString value) comment is a human-readable comments on the definition.string name = 1;setNameBytes(com.google.protobuf.ByteString value) string name = 1;setPermissions(int index, ReflectionPermission value) repeated .authzed.api.v1.ReflectionPermission permissions = 4;setPermissions(int index, ReflectionPermission.Builder builderForValue) repeated .authzed.api.v1.ReflectionPermission permissions = 4;setRelations(int index, ReflectionRelation value) repeated .authzed.api.v1.ReflectionRelation relations = 3;setRelations(int index, ReflectionRelation.Builder builderForValue) repeated .authzed.api.v1.ReflectionRelation relations = 3;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<ReflectionDefinition.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<ReflectionDefinition.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<ReflectionDefinition.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<ReflectionDefinition.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ReflectionDefinition.Builder>
-
mergeFrom
public ReflectionDefinition.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<ReflectionDefinition.Builder>- Throws:
IOException
-
getName
string name = 1;- Specified by:
getNamein interfaceReflectionDefinitionOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()string name = 1;- Specified by:
getNameBytesin interfaceReflectionDefinitionOrBuilder- Returns:
- The bytes for name.
-
setName
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getComment
comment is a human-readable comments on the definition. Will include delimiter characters.
string comment = 2;- Specified by:
getCommentin interfaceReflectionDefinitionOrBuilder- Returns:
- The comment.
-
getCommentBytes
public com.google.protobuf.ByteString getCommentBytes()comment is a human-readable comments on the definition. Will include delimiter characters.
string comment = 2;- Specified by:
getCommentBytesin interfaceReflectionDefinitionOrBuilder- Returns:
- The bytes for comment.
-
setComment
comment is a human-readable comments on the definition. Will include delimiter characters.
string comment = 2;- Parameters:
value- The comment to set.- Returns:
- This builder for chaining.
-
clearComment
comment is a human-readable comments on the definition. Will include delimiter characters.
string comment = 2;- Returns:
- This builder for chaining.
-
setCommentBytes
comment is a human-readable comments on the definition. Will include delimiter characters.
string comment = 2;- Parameters:
value- The bytes for comment to set.- Returns:
- This builder for chaining.
-
getRelationsList
repeated .authzed.api.v1.ReflectionRelation relations = 3;- Specified by:
getRelationsListin interfaceReflectionDefinitionOrBuilder
-
getRelationsCount
public int getRelationsCount()repeated .authzed.api.v1.ReflectionRelation relations = 3;- Specified by:
getRelationsCountin interfaceReflectionDefinitionOrBuilder
-
getRelations
repeated .authzed.api.v1.ReflectionRelation relations = 3;- Specified by:
getRelationsin interfaceReflectionDefinitionOrBuilder
-
setRelations
repeated .authzed.api.v1.ReflectionRelation relations = 3; -
setRelations
public ReflectionDefinition.Builder setRelations(int index, ReflectionRelation.Builder builderForValue) repeated .authzed.api.v1.ReflectionRelation relations = 3; -
addRelations
repeated .authzed.api.v1.ReflectionRelation relations = 3; -
addRelations
repeated .authzed.api.v1.ReflectionRelation relations = 3; -
addRelations
repeated .authzed.api.v1.ReflectionRelation relations = 3; -
addRelations
public ReflectionDefinition.Builder addRelations(int index, ReflectionRelation.Builder builderForValue) repeated .authzed.api.v1.ReflectionRelation relations = 3; -
addAllRelations
repeated .authzed.api.v1.ReflectionRelation relations = 3; -
clearRelations
repeated .authzed.api.v1.ReflectionRelation relations = 3; -
removeRelations
repeated .authzed.api.v1.ReflectionRelation relations = 3; -
getRelationsBuilder
repeated .authzed.api.v1.ReflectionRelation relations = 3; -
getRelationsOrBuilder
repeated .authzed.api.v1.ReflectionRelation relations = 3;- Specified by:
getRelationsOrBuilderin interfaceReflectionDefinitionOrBuilder
-
getRelationsOrBuilderList
repeated .authzed.api.v1.ReflectionRelation relations = 3;- Specified by:
getRelationsOrBuilderListin interfaceReflectionDefinitionOrBuilder
-
addRelationsBuilder
repeated .authzed.api.v1.ReflectionRelation relations = 3; -
addRelationsBuilder
repeated .authzed.api.v1.ReflectionRelation relations = 3; -
getRelationsBuilderList
repeated .authzed.api.v1.ReflectionRelation relations = 3; -
getPermissionsList
repeated .authzed.api.v1.ReflectionPermission permissions = 4;- Specified by:
getPermissionsListin interfaceReflectionDefinitionOrBuilder
-
getPermissionsCount
public int getPermissionsCount()repeated .authzed.api.v1.ReflectionPermission permissions = 4;- Specified by:
getPermissionsCountin interfaceReflectionDefinitionOrBuilder
-
getPermissions
repeated .authzed.api.v1.ReflectionPermission permissions = 4;- Specified by:
getPermissionsin interfaceReflectionDefinitionOrBuilder
-
setPermissions
repeated .authzed.api.v1.ReflectionPermission permissions = 4; -
setPermissions
public ReflectionDefinition.Builder setPermissions(int index, ReflectionPermission.Builder builderForValue) repeated .authzed.api.v1.ReflectionPermission permissions = 4; -
addPermissions
repeated .authzed.api.v1.ReflectionPermission permissions = 4; -
addPermissions
repeated .authzed.api.v1.ReflectionPermission permissions = 4; -
addPermissions
repeated .authzed.api.v1.ReflectionPermission permissions = 4; -
addPermissions
public ReflectionDefinition.Builder addPermissions(int index, ReflectionPermission.Builder builderForValue) repeated .authzed.api.v1.ReflectionPermission permissions = 4; -
addAllPermissions
public ReflectionDefinition.Builder addAllPermissions(Iterable<? extends ReflectionPermission> values) repeated .authzed.api.v1.ReflectionPermission permissions = 4; -
clearPermissions
repeated .authzed.api.v1.ReflectionPermission permissions = 4; -
removePermissions
repeated .authzed.api.v1.ReflectionPermission permissions = 4; -
getPermissionsBuilder
repeated .authzed.api.v1.ReflectionPermission permissions = 4; -
getPermissionsOrBuilder
repeated .authzed.api.v1.ReflectionPermission permissions = 4;- Specified by:
getPermissionsOrBuilderin interfaceReflectionDefinitionOrBuilder
-
getPermissionsOrBuilderList
repeated .authzed.api.v1.ReflectionPermission permissions = 4;- Specified by:
getPermissionsOrBuilderListin interfaceReflectionDefinitionOrBuilder
-
addPermissionsBuilder
repeated .authzed.api.v1.ReflectionPermission permissions = 4; -
addPermissionsBuilder
repeated .authzed.api.v1.ReflectionPermission permissions = 4; -
getPermissionsBuilderList
repeated .authzed.api.v1.ReflectionPermission permissions = 4;
-