public static SetAclAction fromProto ( File . PSetAclAction pSetAclAction ) { if ( pSetAclAction == null ) { throw new IllegalStateException ( "Null proto set acl action." ) ; } switch ( pSetAclAction ) { case REPLACE : return SetAclAction . REPLACE ; case MODIFY : return SetAclAction . MODIFY ; case REMOVE : return SetAclAction . REMOVE ; case REMOVE_ALL : return SetAclAction . REMOVE_ALL ; case REMOVE_DEFAULT : return SetAclAction . REMOVE_DEFAULT ; default : throw new IllegalStateException ( "Unrecognized proto set acl action: " + pSetAclAction ) ; } }
Converts proto type to wire type .