Class WatchedPermission.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WatchedPermission.Builder>
com.authzed.api.materialize.v0.WatchedPermission.Builder
All Implemented Interfaces:
WatchedPermissionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
WatchedPermission

public static final class WatchedPermission.Builder extends com.google.protobuf.GeneratedMessage.Builder<WatchedPermission.Builder> implements WatchedPermissionOrBuilder
Protobuf type authzed.api.materialize.v0.WatchedPermission
  • 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<WatchedPermission.Builder>
    • clear

      public WatchedPermission.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<WatchedPermission.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<WatchedPermission.Builder>
    • getDefaultInstanceForType

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

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

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

      public WatchedPermission.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<WatchedPermission.Builder>
    • mergeFrom

      public WatchedPermission.Builder mergeFrom(WatchedPermission other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<WatchedPermission.Builder>
    • mergeFrom

      public WatchedPermission.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<WatchedPermission.Builder>
      Throws:
      IOException
    • getResourceType

      public String getResourceType()
       resource_type is the type of the resource to watch for changes.
       
      string resource_type = 1;
      Specified by:
      getResourceType in interface WatchedPermissionOrBuilder
      Returns:
      The resourceType.
    • getResourceTypeBytes

      public com.google.protobuf.ByteString getResourceTypeBytes()
       resource_type is the type of the resource to watch for changes.
       
      string resource_type = 1;
      Specified by:
      getResourceTypeBytes in interface WatchedPermissionOrBuilder
      Returns:
      The bytes for resourceType.
    • setResourceType

      public WatchedPermission.Builder setResourceType(String value)
       resource_type is the type of the resource to watch for changes.
       
      string resource_type = 1;
      Parameters:
      value - The resourceType to set.
      Returns:
      This builder for chaining.
    • clearResourceType

      public WatchedPermission.Builder clearResourceType()
       resource_type is the type of the resource to watch for changes.
       
      string resource_type = 1;
      Returns:
      This builder for chaining.
    • setResourceTypeBytes

      public WatchedPermission.Builder setResourceTypeBytes(com.google.protobuf.ByteString value)
       resource_type is the type of the resource to watch for changes.
       
      string resource_type = 1;
      Parameters:
      value - The bytes for resourceType to set.
      Returns:
      This builder for chaining.
    • getPermission

      public String getPermission()
       permission is the permission to watch for changes.
       
      string permission = 2;
      Specified by:
      getPermission in interface WatchedPermissionOrBuilder
      Returns:
      The permission.
    • getPermissionBytes

      public com.google.protobuf.ByteString getPermissionBytes()
       permission is the permission to watch for changes.
       
      string permission = 2;
      Specified by:
      getPermissionBytes in interface WatchedPermissionOrBuilder
      Returns:
      The bytes for permission.
    • setPermission

      public WatchedPermission.Builder setPermission(String value)
       permission is the permission to watch for changes.
       
      string permission = 2;
      Parameters:
      value - The permission to set.
      Returns:
      This builder for chaining.
    • clearPermission

      public WatchedPermission.Builder clearPermission()
       permission is the permission to watch for changes.
       
      string permission = 2;
      Returns:
      This builder for chaining.
    • setPermissionBytes

      public WatchedPermission.Builder setPermissionBytes(com.google.protobuf.ByteString value)
       permission is the permission to watch for changes.
       
      string permission = 2;
      Parameters:
      value - The bytes for permission to set.
      Returns:
      This builder for chaining.
    • getSubjectType

      public String getSubjectType()
       subject_type is the type of the subject to watch for changes.
       
      string subject_type = 3;
      Specified by:
      getSubjectType in interface WatchedPermissionOrBuilder
      Returns:
      The subjectType.
    • getSubjectTypeBytes

      public com.google.protobuf.ByteString getSubjectTypeBytes()
       subject_type is the type of the subject to watch for changes.
       
      string subject_type = 3;
      Specified by:
      getSubjectTypeBytes in interface WatchedPermissionOrBuilder
      Returns:
      The bytes for subjectType.
    • setSubjectType

      public WatchedPermission.Builder setSubjectType(String value)
       subject_type is the type of the subject to watch for changes.
       
      string subject_type = 3;
      Parameters:
      value - The subjectType to set.
      Returns:
      This builder for chaining.
    • clearSubjectType

      public WatchedPermission.Builder clearSubjectType()
       subject_type is the type of the subject to watch for changes.
       
      string subject_type = 3;
      Returns:
      This builder for chaining.
    • setSubjectTypeBytes

      public WatchedPermission.Builder setSubjectTypeBytes(com.google.protobuf.ByteString value)
       subject_type is the type of the subject to watch for changes.
       
      string subject_type = 3;
      Parameters:
      value - The bytes for subjectType to set.
      Returns:
      This builder for chaining.
    • getOptionalSubjectRelation

      public String getOptionalSubjectRelation()
       optional_subject_relation is the relation on the subject to watch for changes.
       
      string optional_subject_relation = 4;
      Specified by:
      getOptionalSubjectRelation in interface WatchedPermissionOrBuilder
      Returns:
      The optionalSubjectRelation.
    • getOptionalSubjectRelationBytes

      public com.google.protobuf.ByteString getOptionalSubjectRelationBytes()
       optional_subject_relation is the relation on the subject to watch for changes.
       
      string optional_subject_relation = 4;
      Specified by:
      getOptionalSubjectRelationBytes in interface WatchedPermissionOrBuilder
      Returns:
      The bytes for optionalSubjectRelation.
    • setOptionalSubjectRelation

      public WatchedPermission.Builder setOptionalSubjectRelation(String value)
       optional_subject_relation is the relation on the subject to watch for changes.
       
      string optional_subject_relation = 4;
      Parameters:
      value - The optionalSubjectRelation to set.
      Returns:
      This builder for chaining.
    • clearOptionalSubjectRelation

      public WatchedPermission.Builder clearOptionalSubjectRelation()
       optional_subject_relation is the relation on the subject to watch for changes.
       
      string optional_subject_relation = 4;
      Returns:
      This builder for chaining.
    • setOptionalSubjectRelationBytes

      public WatchedPermission.Builder setOptionalSubjectRelationBytes(com.google.protobuf.ByteString value)
       optional_subject_relation is the relation on the subject to watch for changes.
       
      string optional_subject_relation = 4;
      Parameters:
      value - The bytes for optionalSubjectRelation to set.
      Returns:
      This builder for chaining.