Package com.authzed.api.materialize.v0
Class PermissionChange.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PermissionChange.Builder>
com.authzed.api.materialize.v0.PermissionChange.Builder
- All Implemented Interfaces:
PermissionChangeOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- PermissionChange
public static final class PermissionChange.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PermissionChange.Builder>
implements PermissionChangeOrBuilder
Protobuf type
authzed.api.materialize.v0.PermissionChange
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clear()
permission is the permission that has changed.permissionship is the new permissionship of the subject over the resource after the change.resource is the resource that the permission change is related to.revision represents the revision at which the change occurred.subject is the subject that the permission change is related to.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
permission is the permission that has changed.com.google.protobuf.ByteString
permission is the permission that has changed.permissionship is the new permissionship of the subject over the resource after the change.int
permissionship is the new permissionship of the subject over the resource after the change.resource is the resource that the permission change is related to.resource is the resource that the permission change is related to.resource is the resource that the permission change is related to.revision represents the revision at which the change occurred.revision represents the revision at which the change occurred.revision represents the revision at which the change occurred.subject is the subject that the permission change is related to.subject is the subject that the permission change is related to.subject is the subject that the permission change is related to.boolean
resource is the resource that the permission change is related to.boolean
revision represents the revision at which the change occurred.boolean
subject is the subject that the permission change is related to.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(PermissionChange other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeResource
(ObjectReference value) resource is the resource that the permission change is related to.mergeRevision
(ZedToken value) revision represents the revision at which the change occurred.mergeSubject
(SubjectReference value) subject is the subject that the permission change is related to.setPermission
(String value) permission is the permission that has changed.setPermissionBytes
(com.google.protobuf.ByteString value) permission is the permission that has changed.permissionship is the new permissionship of the subject over the resource after the change.setPermissionshipValue
(int value) permissionship is the new permissionship of the subject over the resource after the change.setResource
(ObjectReference value) resource is the resource that the permission change is related to.setResource
(ObjectReference.Builder builderForValue) resource is the resource that the permission change is related to.setRevision
(ZedToken value) revision represents the revision at which the change occurred.setRevision
(ZedToken.Builder builderForValue) revision represents the revision at which the change occurred.setSubject
(SubjectReference value) subject is the subject that the permission change is related to.setSubject
(SubjectReference.Builder builderForValue) subject is the subject that the permission change is related to.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<PermissionChange.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<PermissionChange.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<PermissionChange.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<PermissionChange.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<PermissionChange.Builder>
-
mergeFrom
public PermissionChange.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<PermissionChange.Builder>
- Throws:
IOException
-
hasRevision
public boolean hasRevision()revision represents the revision at which the change occurred.
.authzed.api.v1.ZedToken revision = 1;
- Specified by:
hasRevision
in interfacePermissionChangeOrBuilder
- Returns:
- Whether the revision field is set.
-
getRevision
revision represents the revision at which the change occurred.
.authzed.api.v1.ZedToken revision = 1;
- Specified by:
getRevision
in interfacePermissionChangeOrBuilder
- Returns:
- The revision.
-
setRevision
revision represents the revision at which the change occurred.
.authzed.api.v1.ZedToken revision = 1;
-
setRevision
revision represents the revision at which the change occurred.
.authzed.api.v1.ZedToken revision = 1;
-
mergeRevision
revision represents the revision at which the change occurred.
.authzed.api.v1.ZedToken revision = 1;
-
clearRevision
revision represents the revision at which the change occurred.
.authzed.api.v1.ZedToken revision = 1;
-
getRevisionBuilder
revision represents the revision at which the change occurred.
.authzed.api.v1.ZedToken revision = 1;
-
getRevisionOrBuilder
revision represents the revision at which the change occurred.
.authzed.api.v1.ZedToken revision = 1;
- Specified by:
getRevisionOrBuilder
in interfacePermissionChangeOrBuilder
-
hasResource
public boolean hasResource()resource is the resource that the permission change is related to.
.authzed.api.v1.ObjectReference resource = 2;
- Specified by:
hasResource
in interfacePermissionChangeOrBuilder
- Returns:
- Whether the resource field is set.
-
getResource
resource is the resource that the permission change is related to.
.authzed.api.v1.ObjectReference resource = 2;
- Specified by:
getResource
in interfacePermissionChangeOrBuilder
- Returns:
- The resource.
-
setResource
resource is the resource that the permission change is related to.
.authzed.api.v1.ObjectReference resource = 2;
-
setResource
resource is the resource that the permission change is related to.
.authzed.api.v1.ObjectReference resource = 2;
-
mergeResource
resource is the resource that the permission change is related to.
.authzed.api.v1.ObjectReference resource = 2;
-
clearResource
resource is the resource that the permission change is related to.
.authzed.api.v1.ObjectReference resource = 2;
-
getResourceBuilder
resource is the resource that the permission change is related to.
.authzed.api.v1.ObjectReference resource = 2;
-
getResourceOrBuilder
resource is the resource that the permission change is related to.
.authzed.api.v1.ObjectReference resource = 2;
- Specified by:
getResourceOrBuilder
in interfacePermissionChangeOrBuilder
-
getPermission
permission is the permission that has changed.
string permission = 3;
- Specified by:
getPermission
in interfacePermissionChangeOrBuilder
- Returns:
- The permission.
-
getPermissionBytes
public com.google.protobuf.ByteString getPermissionBytes()permission is the permission that has changed.
string permission = 3;
- Specified by:
getPermissionBytes
in interfacePermissionChangeOrBuilder
- Returns:
- The bytes for permission.
-
setPermission
permission is the permission that has changed.
string permission = 3;
- Parameters:
value
- The permission to set.- Returns:
- This builder for chaining.
-
clearPermission
permission is the permission that has changed.
string permission = 3;
- Returns:
- This builder for chaining.
-
setPermissionBytes
permission is the permission that has changed.
string permission = 3;
- Parameters:
value
- The bytes for permission to set.- Returns:
- This builder for chaining.
-
hasSubject
public boolean hasSubject()subject is the subject that the permission change is related to.
.authzed.api.v1.SubjectReference subject = 4;
- Specified by:
hasSubject
in interfacePermissionChangeOrBuilder
- Returns:
- Whether the subject field is set.
-
getSubject
subject is the subject that the permission change is related to.
.authzed.api.v1.SubjectReference subject = 4;
- Specified by:
getSubject
in interfacePermissionChangeOrBuilder
- Returns:
- The subject.
-
setSubject
subject is the subject that the permission change is related to.
.authzed.api.v1.SubjectReference subject = 4;
-
setSubject
subject is the subject that the permission change is related to.
.authzed.api.v1.SubjectReference subject = 4;
-
mergeSubject
subject is the subject that the permission change is related to.
.authzed.api.v1.SubjectReference subject = 4;
-
clearSubject
subject is the subject that the permission change is related to.
.authzed.api.v1.SubjectReference subject = 4;
-
getSubjectBuilder
subject is the subject that the permission change is related to.
.authzed.api.v1.SubjectReference subject = 4;
-
getSubjectOrBuilder
subject is the subject that the permission change is related to.
.authzed.api.v1.SubjectReference subject = 4;
- Specified by:
getSubjectOrBuilder
in interfacePermissionChangeOrBuilder
-
getPermissionshipValue
public int getPermissionshipValue()permissionship is the new permissionship of the subject over the resource after the change.
.authzed.api.materialize.v0.PermissionChange.Permissionship permissionship = 5;
- Specified by:
getPermissionshipValue
in interfacePermissionChangeOrBuilder
- Returns:
- The enum numeric value on the wire for permissionship.
-
setPermissionshipValue
permissionship is the new permissionship of the subject over the resource after the change.
.authzed.api.materialize.v0.PermissionChange.Permissionship permissionship = 5;
- Parameters:
value
- The enum numeric value on the wire for permissionship to set.- Returns:
- This builder for chaining.
-
getPermissionship
permissionship is the new permissionship of the subject over the resource after the change.
.authzed.api.materialize.v0.PermissionChange.Permissionship permissionship = 5;
- Specified by:
getPermissionship
in interfacePermissionChangeOrBuilder
- Returns:
- The permissionship.
-
setPermissionship
permissionship is the new permissionship of the subject over the resource after the change.
.authzed.api.materialize.v0.PermissionChange.Permissionship permissionship = 5;
- Parameters:
value
- The permissionship to set.- Returns:
- This builder for chaining.
-
clearPermissionship
permissionship is the new permissionship of the subject over the resource after the change.
.authzed.api.materialize.v0.PermissionChange.Permissionship permissionship = 5;
- Returns:
- This builder for chaining.
-