Package com.authzed.api.v1
Class ExpDefinition.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExpDefinition.Builder>
com.authzed.api.v1.ExpDefinition.Builder
- All Implemented Interfaces:
ExpDefinitionOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ExpDefinition
public static final class ExpDefinition.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ExpDefinition.Builder>
implements ExpDefinitionOrBuilder
ExpDefinition is the representation of a definition in the schema.Protobuf type
authzed.api.v1.ExpDefinition
-
Method Summary
Modifier and TypeMethodDescriptionaddAllPermissions
(Iterable<? extends ExpPermission> values) repeated .authzed.api.v1.ExpPermission permissions = 4;
addAllRelations
(Iterable<? extends ExpRelation> values) repeated .authzed.api.v1.ExpRelation relations = 3;
addPermissions
(int index, ExpPermission value) repeated .authzed.api.v1.ExpPermission permissions = 4;
addPermissions
(int index, ExpPermission.Builder builderForValue) repeated .authzed.api.v1.ExpPermission permissions = 4;
addPermissions
(ExpPermission value) repeated .authzed.api.v1.ExpPermission permissions = 4;
addPermissions
(ExpPermission.Builder builderForValue) repeated .authzed.api.v1.ExpPermission permissions = 4;
repeated .authzed.api.v1.ExpPermission permissions = 4;
addPermissionsBuilder
(int index) repeated .authzed.api.v1.ExpPermission permissions = 4;
addRelations
(int index, ExpRelation value) repeated .authzed.api.v1.ExpRelation relations = 3;
addRelations
(int index, ExpRelation.Builder builderForValue) repeated .authzed.api.v1.ExpRelation relations = 3;
addRelations
(ExpRelation value) repeated .authzed.api.v1.ExpRelation relations = 3;
addRelations
(ExpRelation.Builder builderForValue) repeated .authzed.api.v1.ExpRelation relations = 3;
repeated .authzed.api.v1.ExpRelation relations = 3;
addRelationsBuilder
(int index) repeated .authzed.api.v1.ExpRelation relations = 3;
build()
clear()
comment is a human-readable comments on the definition.string name = 1;
repeated .authzed.api.v1.ExpPermission permissions = 4;
repeated .authzed.api.v1.ExpRelation relations = 3;
comment is a human-readable comments on the definition.com.google.protobuf.ByteString
comment is a human-readable comments on the definition.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getName()
string name = 1;
com.google.protobuf.ByteString
string name = 1;
getPermissions
(int index) repeated .authzed.api.v1.ExpPermission permissions = 4;
getPermissionsBuilder
(int index) repeated .authzed.api.v1.ExpPermission permissions = 4;
repeated .authzed.api.v1.ExpPermission permissions = 4;
int
repeated .authzed.api.v1.ExpPermission permissions = 4;
repeated .authzed.api.v1.ExpPermission permissions = 4;
getPermissionsOrBuilder
(int index) repeated .authzed.api.v1.ExpPermission permissions = 4;
List<? extends ExpPermissionOrBuilder>
repeated .authzed.api.v1.ExpPermission permissions = 4;
getRelations
(int index) repeated .authzed.api.v1.ExpRelation relations = 3;
getRelationsBuilder
(int index) repeated .authzed.api.v1.ExpRelation relations = 3;
repeated .authzed.api.v1.ExpRelation relations = 3;
int
repeated .authzed.api.v1.ExpRelation relations = 3;
repeated .authzed.api.v1.ExpRelation relations = 3;
getRelationsOrBuilder
(int index) repeated .authzed.api.v1.ExpRelation relations = 3;
List<? extends ExpRelationOrBuilder>
repeated .authzed.api.v1.ExpRelation relations = 3;
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(ExpDefinition 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.ExpPermission permissions = 4;
removeRelations
(int index) repeated .authzed.api.v1.ExpRelation 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, ExpPermission value) repeated .authzed.api.v1.ExpPermission permissions = 4;
setPermissions
(int index, ExpPermission.Builder builderForValue) repeated .authzed.api.v1.ExpPermission permissions = 4;
setRelations
(int index, ExpRelation value) repeated .authzed.api.v1.ExpRelation relations = 3;
setRelations
(int index, ExpRelation.Builder builderForValue) repeated .authzed.api.v1.ExpRelation 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, 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<ExpDefinition.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<ExpDefinition.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<ExpDefinition.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<ExpDefinition.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<ExpDefinition.Builder>
-
mergeFrom
public ExpDefinition.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<ExpDefinition.Builder>
- Throws:
IOException
-
getName
string name = 1;
- Specified by:
getName
in interfaceExpDefinitionOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()string name = 1;
- Specified by:
getNameBytes
in interfaceExpDefinitionOrBuilder
- 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:
getComment
in interfaceExpDefinitionOrBuilder
- 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:
getCommentBytes
in interfaceExpDefinitionOrBuilder
- 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.ExpRelation relations = 3;
- Specified by:
getRelationsList
in interfaceExpDefinitionOrBuilder
-
getRelationsCount
public int getRelationsCount()repeated .authzed.api.v1.ExpRelation relations = 3;
- Specified by:
getRelationsCount
in interfaceExpDefinitionOrBuilder
-
getRelations
repeated .authzed.api.v1.ExpRelation relations = 3;
- Specified by:
getRelations
in interfaceExpDefinitionOrBuilder
-
setRelations
repeated .authzed.api.v1.ExpRelation relations = 3;
-
setRelations
repeated .authzed.api.v1.ExpRelation relations = 3;
-
addRelations
repeated .authzed.api.v1.ExpRelation relations = 3;
-
addRelations
repeated .authzed.api.v1.ExpRelation relations = 3;
-
addRelations
repeated .authzed.api.v1.ExpRelation relations = 3;
-
addRelations
repeated .authzed.api.v1.ExpRelation relations = 3;
-
addAllRelations
repeated .authzed.api.v1.ExpRelation relations = 3;
-
clearRelations
repeated .authzed.api.v1.ExpRelation relations = 3;
-
removeRelations
repeated .authzed.api.v1.ExpRelation relations = 3;
-
getRelationsBuilder
repeated .authzed.api.v1.ExpRelation relations = 3;
-
getRelationsOrBuilder
repeated .authzed.api.v1.ExpRelation relations = 3;
- Specified by:
getRelationsOrBuilder
in interfaceExpDefinitionOrBuilder
-
getRelationsOrBuilderList
repeated .authzed.api.v1.ExpRelation relations = 3;
- Specified by:
getRelationsOrBuilderList
in interfaceExpDefinitionOrBuilder
-
addRelationsBuilder
repeated .authzed.api.v1.ExpRelation relations = 3;
-
addRelationsBuilder
repeated .authzed.api.v1.ExpRelation relations = 3;
-
getRelationsBuilderList
repeated .authzed.api.v1.ExpRelation relations = 3;
-
getPermissionsList
repeated .authzed.api.v1.ExpPermission permissions = 4;
- Specified by:
getPermissionsList
in interfaceExpDefinitionOrBuilder
-
getPermissionsCount
public int getPermissionsCount()repeated .authzed.api.v1.ExpPermission permissions = 4;
- Specified by:
getPermissionsCount
in interfaceExpDefinitionOrBuilder
-
getPermissions
repeated .authzed.api.v1.ExpPermission permissions = 4;
- Specified by:
getPermissions
in interfaceExpDefinitionOrBuilder
-
setPermissions
repeated .authzed.api.v1.ExpPermission permissions = 4;
-
setPermissions
repeated .authzed.api.v1.ExpPermission permissions = 4;
-
addPermissions
repeated .authzed.api.v1.ExpPermission permissions = 4;
-
addPermissions
repeated .authzed.api.v1.ExpPermission permissions = 4;
-
addPermissions
repeated .authzed.api.v1.ExpPermission permissions = 4;
-
addPermissions
repeated .authzed.api.v1.ExpPermission permissions = 4;
-
addAllPermissions
repeated .authzed.api.v1.ExpPermission permissions = 4;
-
clearPermissions
repeated .authzed.api.v1.ExpPermission permissions = 4;
-
removePermissions
repeated .authzed.api.v1.ExpPermission permissions = 4;
-
getPermissionsBuilder
repeated .authzed.api.v1.ExpPermission permissions = 4;
-
getPermissionsOrBuilder
repeated .authzed.api.v1.ExpPermission permissions = 4;
- Specified by:
getPermissionsOrBuilder
in interfaceExpDefinitionOrBuilder
-
getPermissionsOrBuilderList
repeated .authzed.api.v1.ExpPermission permissions = 4;
- Specified by:
getPermissionsOrBuilderList
in interfaceExpDefinitionOrBuilder
-
addPermissionsBuilder
repeated .authzed.api.v1.ExpPermission permissions = 4;
-
addPermissionsBuilder
repeated .authzed.api.v1.ExpPermission permissions = 4;
-
getPermissionsBuilderList
repeated .authzed.api.v1.ExpPermission permissions = 4;
-