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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PermissionChange.Builder>
    • clear

      public PermissionChange.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PermissionChange.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PermissionChange.Builder>
    • getDefaultInstanceForType

      public PermissionChange getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public PermissionChange build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PermissionChange buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PermissionChange.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PermissionChange.Builder>
    • mergeFrom

      public PermissionChange.Builder mergeFrom(PermissionChange other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface PermissionChangeOrBuilder
      Returns:
      Whether the revision field is set.
    • getRevision

      public ZedToken getRevision()
       revision represents the revision at which the change occurred.
       
      .authzed.api.v1.ZedToken revision = 1;
      Specified by:
      getRevision in interface PermissionChangeOrBuilder
      Returns:
      The revision.
    • setRevision

      public PermissionChange.Builder setRevision(ZedToken value)
       revision represents the revision at which the change occurred.
       
      .authzed.api.v1.ZedToken revision = 1;
    • setRevision

      public PermissionChange.Builder setRevision(ZedToken.Builder builderForValue)
       revision represents the revision at which the change occurred.
       
      .authzed.api.v1.ZedToken revision = 1;
    • mergeRevision

      public PermissionChange.Builder mergeRevision(ZedToken value)
       revision represents the revision at which the change occurred.
       
      .authzed.api.v1.ZedToken revision = 1;
    • clearRevision

      public PermissionChange.Builder clearRevision()
       revision represents the revision at which the change occurred.
       
      .authzed.api.v1.ZedToken revision = 1;
    • getRevisionBuilder

      public ZedToken.Builder getRevisionBuilder()
       revision represents the revision at which the change occurred.
       
      .authzed.api.v1.ZedToken revision = 1;
    • getRevisionOrBuilder

      public ZedTokenOrBuilder getRevisionOrBuilder()
       revision represents the revision at which the change occurred.
       
      .authzed.api.v1.ZedToken revision = 1;
      Specified by:
      getRevisionOrBuilder in interface PermissionChangeOrBuilder
    • 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 interface PermissionChangeOrBuilder
      Returns:
      Whether the resource field is set.
    • getResource

      public ObjectReference getResource()
       resource is the resource that the permission change is related to.
       
      .authzed.api.v1.ObjectReference resource = 2;
      Specified by:
      getResource in interface PermissionChangeOrBuilder
      Returns:
      The resource.
    • setResource

      public PermissionChange.Builder setResource(ObjectReference value)
       resource is the resource that the permission change is related to.
       
      .authzed.api.v1.ObjectReference resource = 2;
    • setResource

      public PermissionChange.Builder setResource(ObjectReference.Builder builderForValue)
       resource is the resource that the permission change is related to.
       
      .authzed.api.v1.ObjectReference resource = 2;
    • mergeResource

      public PermissionChange.Builder mergeResource(ObjectReference value)
       resource is the resource that the permission change is related to.
       
      .authzed.api.v1.ObjectReference resource = 2;
    • clearResource

      public PermissionChange.Builder clearResource()
       resource is the resource that the permission change is related to.
       
      .authzed.api.v1.ObjectReference resource = 2;
    • getResourceBuilder

      public ObjectReference.Builder getResourceBuilder()
       resource is the resource that the permission change is related to.
       
      .authzed.api.v1.ObjectReference resource = 2;
    • getResourceOrBuilder

      public ObjectReferenceOrBuilder getResourceOrBuilder()
       resource is the resource that the permission change is related to.
       
      .authzed.api.v1.ObjectReference resource = 2;
      Specified by:
      getResourceOrBuilder in interface PermissionChangeOrBuilder
    • getPermission

      public String getPermission()
       permission is the permission that has changed.
       
      string permission = 3;
      Specified by:
      getPermission in interface PermissionChangeOrBuilder
      Returns:
      The permission.
    • getPermissionBytes

      public com.google.protobuf.ByteString getPermissionBytes()
       permission is the permission that has changed.
       
      string permission = 3;
      Specified by:
      getPermissionBytes in interface PermissionChangeOrBuilder
      Returns:
      The bytes for permission.
    • setPermission

      public PermissionChange.Builder setPermission(String value)
       permission is the permission that has changed.
       
      string permission = 3;
      Parameters:
      value - The permission to set.
      Returns:
      This builder for chaining.
    • clearPermission

      public PermissionChange.Builder clearPermission()
       permission is the permission that has changed.
       
      string permission = 3;
      Returns:
      This builder for chaining.
    • setPermissionBytes

      public PermissionChange.Builder setPermissionBytes(com.google.protobuf.ByteString value)
       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 interface PermissionChangeOrBuilder
      Returns:
      Whether the subject field is set.
    • getSubject

      public SubjectReference getSubject()
       subject is the subject that the permission change is related to.
       
      .authzed.api.v1.SubjectReference subject = 4;
      Specified by:
      getSubject in interface PermissionChangeOrBuilder
      Returns:
      The subject.
    • setSubject

      public PermissionChange.Builder setSubject(SubjectReference value)
       subject is the subject that the permission change is related to.
       
      .authzed.api.v1.SubjectReference subject = 4;
    • setSubject

      public PermissionChange.Builder setSubject(SubjectReference.Builder builderForValue)
       subject is the subject that the permission change is related to.
       
      .authzed.api.v1.SubjectReference subject = 4;
    • mergeSubject

      public PermissionChange.Builder mergeSubject(SubjectReference value)
       subject is the subject that the permission change is related to.
       
      .authzed.api.v1.SubjectReference subject = 4;
    • clearSubject

      public PermissionChange.Builder clearSubject()
       subject is the subject that the permission change is related to.
       
      .authzed.api.v1.SubjectReference subject = 4;
    • getSubjectBuilder

      public SubjectReference.Builder getSubjectBuilder()
       subject is the subject that the permission change is related to.
       
      .authzed.api.v1.SubjectReference subject = 4;
    • getSubjectOrBuilder

      public SubjectReferenceOrBuilder getSubjectOrBuilder()
       subject is the subject that the permission change is related to.
       
      .authzed.api.v1.SubjectReference subject = 4;
      Specified by:
      getSubjectOrBuilder in interface PermissionChangeOrBuilder
    • 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 interface PermissionChangeOrBuilder
      Returns:
      The enum numeric value on the wire for permissionship.
    • setPermissionshipValue

      public PermissionChange.Builder setPermissionshipValue(int value)
       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

      public PermissionChange.Permissionship 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 interface PermissionChangeOrBuilder
      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

      public PermissionChange.Builder 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.