Class ExpPermission.Builder

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

public static final class ExpPermission.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExpPermission.Builder> implements ExpPermissionOrBuilder
 ExpPermission is the representation of a permission in the schema.
 
Protobuf type authzed.api.v1.ExpPermission
  • 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<ExpPermission.Builder>
    • clear

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

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

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

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

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

      public ExpPermission.Builder mergeFrom(ExpPermission other)
    • isInitialized

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

      public ExpPermission.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<ExpPermission.Builder>
      Throws:
      IOException
    • getName

      public String getName()
      string name = 1;
      Specified by:
      getName in interface ExpPermissionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
      string name = 1;
      Specified by:
      getNameBytes in interface ExpPermissionOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ExpPermission.Builder setName(String value)
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ExpPermission.Builder clearName()
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public ExpPermission.Builder setNameBytes(com.google.protobuf.ByteString value)
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getComment

      public String getComment()
       comment is a human-readable comments on the permission. Will include
       delimiter characters.
       
      string comment = 2;
      Specified by:
      getComment in interface ExpPermissionOrBuilder
      Returns:
      The comment.
    • getCommentBytes

      public com.google.protobuf.ByteString getCommentBytes()
       comment is a human-readable comments on the permission. Will include
       delimiter characters.
       
      string comment = 2;
      Specified by:
      getCommentBytes in interface ExpPermissionOrBuilder
      Returns:
      The bytes for comment.
    • setComment

      public ExpPermission.Builder setComment(String value)
       comment is a human-readable comments on the permission. Will include
       delimiter characters.
       
      string comment = 2;
      Parameters:
      value - The comment to set.
      Returns:
      This builder for chaining.
    • clearComment

      public ExpPermission.Builder clearComment()
       comment is a human-readable comments on the permission. Will include
       delimiter characters.
       
      string comment = 2;
      Returns:
      This builder for chaining.
    • setCommentBytes

      public ExpPermission.Builder setCommentBytes(com.google.protobuf.ByteString value)
       comment is a human-readable comments on the permission. Will include
       delimiter characters.
       
      string comment = 2;
      Parameters:
      value - The bytes for comment to set.
      Returns:
      This builder for chaining.
    • getParentDefinitionName

      public String getParentDefinitionName()
      string parent_definition_name = 3;
      Specified by:
      getParentDefinitionName in interface ExpPermissionOrBuilder
      Returns:
      The parentDefinitionName.
    • getParentDefinitionNameBytes

      public com.google.protobuf.ByteString getParentDefinitionNameBytes()
      string parent_definition_name = 3;
      Specified by:
      getParentDefinitionNameBytes in interface ExpPermissionOrBuilder
      Returns:
      The bytes for parentDefinitionName.
    • setParentDefinitionName

      public ExpPermission.Builder setParentDefinitionName(String value)
      string parent_definition_name = 3;
      Parameters:
      value - The parentDefinitionName to set.
      Returns:
      This builder for chaining.
    • clearParentDefinitionName

      public ExpPermission.Builder clearParentDefinitionName()
      string parent_definition_name = 3;
      Returns:
      This builder for chaining.
    • setParentDefinitionNameBytes

      public ExpPermission.Builder setParentDefinitionNameBytes(com.google.protobuf.ByteString value)
      string parent_definition_name = 3;
      Parameters:
      value - The bytes for parentDefinitionName to set.
      Returns:
      This builder for chaining.